#NEWLINE# def __init__( self , app ) : #NEWLINE# #INDENT# wx . Frame . __init__ ( self , None , ( - 1 ) , 'wxPython/Autobahn WebSocket Demo' ) #NEWLINE# self . _app = app #NEWLINE# self . Bind ( wx . EVT_MOVE , self . OnMove ) #NEWLINE# panel = wx . Panel ( self , ( - 1 ) ) #NEWLINE# label1 = wx . StaticText ( panel , ( - 1 ) , 'WebSocket messages received:' ) #NEWLINE# label2 = wx . StaticText ( panel , ( - 1 ) , 'Window position:' ) #NEWLINE# self . sizeCtrl = wx . TextCtrl ( panel , ( - 1 ) , '' , style = wx . TE_READONLY ) #NEWLINE# self . posCtrl = wx . TextCtrl ( panel , ( - 1 ) , '' , style = wx . TE_READONLY ) #NEWLINE# self . panel = panel #NEWLINE# sizer = wx . FlexGridSizer ( 2 , 2 , 5 , 5 ) #NEWLINE# sizer . Add ( label1 ) #NEWLINE# sizer . Add ( self . sizeCtrl ) #NEWLINE# sizer . Add ( label2 ) #NEWLINE# sizer . Add ( self . posCtrl ) #NEWLINE# border = wx . BoxSizer ( ) #NEWLINE# border . Add ( sizer , 0 , wx . ALL , 15 ) #NEWLINE# panel . SetSizerAndFit ( border ) #NEWLINE# self . Fit ( )