#NEWLINE# def __init__( self , parent , controller ) : #NEWLINE# #INDENT# wx . Panel . __init__ ( self , parent , style = wx . SUNKEN_BORDER ) #NEWLINE# self . controller = controller #NEWLINE# self . sizer = wx . GridBagSizer ( vgap = 2 , hgap = 2 ) #NEWLINE# self . header = wx . StaticText ( self , label = 'Current Status' ) #NEWLINE# self . sizer . Add ( self . header , ( 0 , 0 ) , ( 1 , 2 ) , ( wx . EXPAND | wx . ALL ) , 4 ) #NEWLINE# self . sizer . Add ( wx . StaticLine ( self ) , ( 1 , 0 ) , ( 1 , 2 ) , ( wx . EXPAND | wx . ALL ) , 4 ) #NEWLINE# self . l1 = wx . StaticText ( self , label = 'Location Info:' ) #NEWLINE# self . sizer . Add ( self . l1 , ( 2 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l2 = wx . StaticText ( self , label = 'Latitude:' ) #NEWLINE# self . sizer . Add ( self . l2 , ( 3 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t2 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t2 , ( 3 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l3 = wx . StaticText ( self , label = 'Longitude:' ) #NEWLINE# self . sizer . Add ( self . l3 , ( 4 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t3 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t3 , ( 4 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l4 = wx . StaticText ( self , label = 'Compass Heading:' ) #NEWLINE# self . sizer . Add ( self . l4 , ( 5 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t4 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t4 , ( 5 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l5 = wx . StaticText ( self , label = 'GPS Heading:' ) #NEWLINE# self . sizer . Add ( self . l5 , ( 6 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t5 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t5 , ( 6 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l6 = wx . StaticText ( self , label = 'GPS Speed (knots):' ) #NEWLINE# self . sizer . Add ( self . l6 , ( 7 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t6 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t6 , ( 7 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l7 = wx . StaticText ( self , label = 'GPS Altitude:' ) #NEWLINE# self . sizer . Add ( self . l7 , ( 8 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t7 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t7 , ( 8 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . cb_fix = wx . CheckBox ( self , label = 'GPS fix?' ) #NEWLINE# self . cb_fix . SetValue ( False ) #NEWLINE# self . sizer . Add ( self . cb_fix , ( 9 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l8 = wx . StaticText ( self , label = '# satellites:' ) #NEWLINE# self . sizer . Add ( self . l8 , ( 10 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t8 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t8 , ( 10 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . sizer . Add ( wx . StaticLine ( self ) , ( 11 , 0 ) , ( 1 , 2 ) , ( wx . EXPAND | wx . ALL ) , 4 ) #NEWLINE# self . l9 = wx . StaticText ( self , label = 'Other Info:' ) #NEWLINE# self . sizer . Add ( self . l9 , ( 12 , 0 ) , ( 1 , 1 ) , ( wx . EXPAND | wx . ALL ) , 4 ) #NEWLINE# self . l10 = wx . StaticText ( self , label = 'Time:' ) #NEWLINE# self . sizer . Add ( self . l10 , ( 13 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t10 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t10 , ( 13 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l11 = wx . StaticText ( self , label = 'Date:' ) #NEWLINE# self . sizer . Add ( self . l11 , ( 14 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t11 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t11 , ( 14 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . l12 = wx . StaticText ( self , label = 'Temperature:' ) #NEWLINE# self . sizer . Add ( self . l12 , ( 15 , 0 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . t12 = wx . TextCtrl ( self , value = '----' , style = wx . TE_READONLY ) #NEWLINE# self . sizer . Add ( self . t12 , ( 15 , 1 ) , ( 1 , 1 ) , ( ( wx . EXPAND | wx . LEFT ) | wx . RIGHT ) , 2 ) #NEWLINE# self . sizer . AddGrowableCol ( 0 ) #NEWLINE# self . SetSizerAndFit ( self . sizer )