diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-07-22 16:15:10 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-07-22 16:15:10 +0000 |
commit | 989d70ccc6b8ebbd0802c17e75b7c2f59de85cd7 (patch) | |
tree | 246fd1fa51030b7a976523ddd34a99ea24c41361 /tests/test_radiobutton.py | |
parent | d55c68d7bf476b434aa95d72f2be4ada2f5223c2 (diff) | |
download | pygobject-989d70ccc6b8ebbd0802c17e75b7c2f59de85cd7.tar.gz pygobject-989d70ccc6b8ebbd0802c17e75b7c2f59de85cd7.tar.xz pygobject-989d70ccc6b8ebbd0802c17e75b7c2f59de85cd7.zip |
Re-enablePYGTK_2_7_1
* tests/test_radiobutton.py (RadioToolButtonTest): Re-enable
* tests/test_dialog.py (MessageDialogTest.testSubclass): Add tests, for
#311226.
Diffstat (limited to 'tests/test_radiobutton.py')
-rw-r--r-- | tests/test_radiobutton.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/test_radiobutton.py b/tests/test_radiobutton.py index cf63958..98d86dd 100644 --- a/tests/test_radiobutton.py +++ b/tests/test_radiobutton.py @@ -71,21 +71,20 @@ class RadioActionTest(RadioTest): def newLabel(self, label): return gtk.RadioAction('RadioAction', label, '', '', 0) -# Depends on bug 309836 -# class RadioToolButtonTest(RadioTest): -# widget_type = gtk.RadioToolButton +class RadioToolButtonTest(RadioTest): + widget_type = gtk.RadioToolButton -# def compareGroups(self, group1, group2): -# # GtkRadioToolButton.set/get_groups return GtkRadioButtons, -# # so instead of doing a normal cmp, compare ids -# return cmp(map(id, group1), map(id, group2)) + def compareGroups(self, group1, group2): + # GtkRadioToolButton.set/get_groups return GtkRadioButtons, + # so instead of doing a normal cmp, compare ids + return cmp(map(id, group1), map(id, group2)) -# def newLabel(self, label): -# # We don't have a constructor for which we can pass in a label -# # for, so just call set_label instead -# radio = gtk.RadioToolButton(None) -# radio.set_label(label) -# return radio + def newLabel(self, label): + # We don't have a constructor for which we can pass in a label + # for, so just call set_label instead + radio = gtk.RadioToolButton(None) + radio.set_label(label) + return radio class RadioMenuItem(RadioTest): widget_type = gtk.RadioMenuItem |