#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# Sink . __init__ ( self ) #NEWLINE# disabledButton = Button ( 'Disabled Button' ) #NEWLINE# disabledCheck = CheckBox ( 'Disabled Check' ) #NEWLINE# normalButton = Button ( 'Normal Button' ) #NEWLINE# normalCheck = CheckBox ( 'Normal Check' ) #NEWLINE# panel = VerticalPanel ( ) #NEWLINE# radio0 = RadioButton ( 'group0' , 'Choice 0' ) #NEWLINE# radio1 = RadioButton ( 'group0' , 'Choice 1' ) #NEWLINE# radio2 = RadioButton ( 'group0' , 'Choice 2 (Disabled)' ) #NEWLINE# radio3 = RadioButton ( 'group0' , 'Choice 3' ) #NEWLINE# hp = HorizontalPanel ( ) #NEWLINE# panel . add ( hp ) #NEWLINE# hp . setSpacing ( 8 ) #NEWLINE# hp . add ( normalButton ) #NEWLINE# hp . add ( disabledButton ) #NEWLINE# hp = HorizontalPanel ( ) #NEWLINE# panel . add ( hp ) #NEWLINE# hp . setSpacing ( 8 ) #NEWLINE# hp . add ( normalCheck ) #NEWLINE# hp . add ( disabledCheck ) #NEWLINE# hp = HorizontalPanel ( ) #NEWLINE# panel . add ( hp ) #NEWLINE# hp . setSpacing ( 8 ) #NEWLINE# hp . add ( radio0 ) #NEWLINE# hp . add ( radio1 ) #NEWLINE# hp . add ( radio2 ) #NEWLINE# hp . add ( radio3 ) #NEWLINE# disabledButton . setEnabled ( False ) #NEWLINE# disabledCheck . setEnabled ( False ) #NEWLINE# radio2 . setEnabled ( False ) #NEWLINE# panel . setSpacing ( 8 ) #NEWLINE# self . initWidget ( panel )