# Based on iwidgets2.2.0/tests/buttonbox.test code.
(c
.add
, 'Yes', Tkinter
.Button
),
(c
.add
, 'No', Tkinter
.Button
),
(Test
.num_options
, (), 5),
('Button_activebackground', '#ececec'),
('Button_activeforeground', 'Black'),
('hull_background', '#d9d9d9'),
('hull_cursor', 'gumby'),
('Button_background', 'aliceblue'),
('Button_disabledforeground', '#a3a3a3'),
('Button_foreground', 'Black'),
('Button_highlightcolor', 'Black'),
('Button_highlightthickness', 2),
(c
.index
, Pmw
.DEFAULT
, 0),
(c
.add
, 'Maybe', Tkinter
.Button
),
(c
.insert
, ('Never', 0), {'text' : 'Never Never'}, Tkinter
.Button
),
(c
.invoke
, Pmw
.DEFAULT
, ''),
(c
.index
, 12, 'ValueError: index "12" is out of range'),
(c
.index
, 'bogus', 'ValueError: bad index "bogus": ' + \
'must be a name, a number, Pmw.END or Pmw.DEFAULT'),
'label_text' : 'Vertical\nButtonBox',
(c
.add
, 'Hello', Tkinter
.Button
),
(c
.insert
, ('GoodBye', Pmw
.END
), Tkinter
.Button
),
(c
.setdefault
, 'GoodBye'),
(c
.index
, Pmw
.DEFAULT
, 'ValueError: ButtonBox has no default'),
testData
= ((c
, alltests
),)
if __name__
== '__main__':