@ -6,57 +6,57 @@ import common
test = common . Test ( )
test = common . Test ( )
test . show ( )
test . show ( )
v box = Gtk . V Box( )
box = Gtk . Box( orientation = Gtk . Orientation . VERTICAL )
test . pack_start ( v box, True , True , 0 )
test . pack_start ( box, True , True , 0 )
v box. show ( )
box. show ( )
# test Gtk.SpinButton:
# test Gtk.SpinButton:
adj = Gtk . Adjustment ( 0 , 0 , 10 , 1 , 32 , 0 )
adj = Gtk . Adjustment ( 0 , 0 , 10 , 1 , 32 , 0 )
spin = Gtk . SpinButton ( )
spin = Gtk . SpinButton ( )
spin . set_adjustment ( adj )
spin . set_adjustment ( adj )
v box. pack_start ( spin , False , False , 1 )
box. pack_start ( spin , False , False , 1 )
spin . show ( )
spin . show ( )
# test Gtk.RadioButton:
# test Gtk.RadioButton:
radio_1 = Gtk . RadioButton . new_with_label_from_widget ( None , ' Radio 1 ' )
radio_1 = Gtk . RadioButton . new_with_label_from_widget ( None , ' Radio 1 ' )
v box. pack_start ( radio_1 , False , False , 1 )
box. pack_start ( radio_1 , False , False , 1 )
radio_1 . show ( )
radio_1 . show ( )
radio_2 = Gtk . RadioButton . new_with_label_from_widget ( radio_1 , ' Radio 2 ' )
radio_2 = Gtk . RadioButton . new_with_label_from_widget ( radio_1 , ' Radio 2 ' )
v box. pack_start ( radio_2 , False , False , 1 )
box. pack_start ( radio_2 , False , False , 1 )
radio_2 . show ( )
radio_2 . show ( )
radio_3 = Gtk . RadioButton . new_with_label_from_widget ( radio_1 , ' Radio 3 ' )
radio_3 = Gtk . RadioButton . new_with_label_from_widget ( radio_1 , ' Radio 3 ' )
v box. pack_start ( radio_3 , False , False , 1 )
box. pack_start ( radio_3 , False , False , 1 )
radio_3 . show ( )
radio_3 . show ( )
# test Gtk.CheckButton:
# test Gtk.CheckButton:
check_1 = Gtk . CheckButton ( ' Check 1 ' )
check_1 = Gtk . CheckButton ( ' Check 1 ' )
v box. pack_start ( check_1 , False , False , 1 )
box. pack_start ( check_1 , False , False , 1 )
check_1 . show ( )
check_1 . show ( )
check_2 = Gtk . CheckButton ( ' Check 2 ' )
check_2 = Gtk . CheckButton ( ' Check 2 ' )
v box. pack_start ( check_2 , False , False , 1 )
box. pack_start ( check_2 , False , False , 1 )
check_2 . show ( )
check_2 . show ( )
# test Gtk.Button:
# test Gtk.Button:
button = Gtk . Button ( ' Button ' )
button = Gtk . Button ( ' Button ' )
v box. pack_start ( button , False , False , 1 )
box. pack_start ( button , False , False , 1 )
button . show ( )
button . show ( )
# test Gtk.Button insensitive:
# test Gtk.Button insensitive:
insensitive_button = Gtk . Button ( ' Insensitive Button ' )
insensitive_button = Gtk . Button ( ' Insensitive Button ' )
v box. pack_start ( insensitive_button , False , False , 1 )
box. pack_start ( insensitive_button , False , False , 1 )
insensitive_button . props . sensitive = False
insensitive_button . props . sensitive = False
insensitive_button . show ( )
insensitive_button . show ( )
# test Gtk.ToggleButton:
# test Gtk.ToggleButton:
toggle_button = Gtk . ToggleButton ( ' ToggleButton ' )
toggle_button = Gtk . ToggleButton ( ' ToggleButton ' )
v box. pack_start ( toggle_button , False , False , 1 )
box. pack_start ( toggle_button , False , False , 1 )
toggle_button . show ( )
toggle_button . show ( )