Add insensitive button to buttons testcase - SL #4172

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
Manuel Quiñones 2012-11-13 12:45:27 -03:00
parent f3f72a7b16
commit 2d9e9ec526

View File

@ -46,6 +46,13 @@ button = Gtk.Button('Button')
vbox.pack_start(button, False, False, 1) vbox.pack_start(button, False, False, 1)
button.show() button.show()
# test Gtk.Button insensitive:
insensitive_button = Gtk.Button('Insensitive Button')
vbox.pack_start(insensitive_button, False, False, 1)
insensitive_button.props.sensitive = False
insensitive_button.show()
# test Gtk.ToggleButton: # test Gtk.ToggleButton:
toggle_button = Gtk.ToggleButton('ToggleButton') toggle_button = Gtk.ToggleButton('ToggleButton')