1 # Based on iwidgets2.2.0/tests/messagedialog.test code.
12 'message_text' : 'Are you sure you want to do that?',
13 'buttons' : ('OK', 'Cancel'),
14 'icon_bitmap' : 'questhead',
20 (Test.num_options, (), 13),
21 ('message_anchor', 'center'),
22 ('message_justify', 'center'),
23 ('message_wraplength', 0),
24 ('hull_background', '#d9d9d9'),
25 ('icon_bitmap', 'warning'),
26 ('hull_cursor', 'gumby'),
27 ('icon_image', Test.flagup),
28 ('message_font', Test.font['variable']),
29 ('message_foreground', 'red'),
33 (c.title, 'MessageDialog 1: new title', ''),
34 (c.interior, (), Tkinter.Frame),
35 ('defaultbutton', 'OK'),
39 'message_text' : 'On the left',
40 'buttons' : ('OK', 'Cancel'),
47 (c.title, 'MessageDialog 2', ''),
55 testData = ((c, alltests),)
57 if __name__ == '__main__':
58 Test.runTests(testData)