<s> """<STR_LIT>""" <EOL> from traits . api import HasTraits , Button , Int <EOL> from traitsui . api import View <EOL> class ButtonEditorDemo ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> my_button_trait = Button ( '<STR_LIT>' ) <EOL> click_counter = Int <EOL> def _my_button_trait_fired ( self ) : <EOL> self . click_counter += <NUM_LIT:1> <EOL> traits_view = View ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> title = '<STR_LIT>' , <EOL> buttons = [ '<STR_LIT:OK>' ] , <EOL> resizable = True <EOL> ) <EOL> demo = ButtonEditorDemo ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> demo . configure_traits ( ) </s>
