<s> import wx <EOL> import wx . combo <EOL> import wx . xrc <EOL> class clsCreateVariable ( wx . Dialog ) : <EOL> def __init__ ( self , parent ) : <EOL> wx . Dialog . __init__ ( self , parent , id = wx . ID_ANY , title = wx . EmptyString , pos = wx . DefaultPosition , <EOL> size = wx . Size ( <NUM_LIT> , <NUM_LIT> ) , style = wx . DEFAULT_DIALOG_STYLE ) <EOL> self . SetSizeHintsSz ( wx . DefaultSize , wx . DefaultSize ) <EOL> fgSizer11 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer11 . SetFlexibleDirection ( wx . VERTICAL ) <EOL> fgSizer11 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_ALL ) <EOL> fgSizer1 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:2> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer1 . SetFlexibleDirection ( wx . HORIZONTAL ) <EOL> fgSizer1 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_ALL ) <EOL> self . stCode = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stCode . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer1 . Add ( self . stCode , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . txtVarCode = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> fgSizer1 . Add ( self . txtVarCode , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stName = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stName . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer1 . Add ( self . stName , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbVarNameChoices = [ ] <EOL> self . cbVarName = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbVarNameChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer1 . Add ( self . cbVarName , <NUM_LIT:0> , wx . ALIGN_CENTER_HORIZONTAL | wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stUnits = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stUnits . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer1 . Add ( self . stUnits , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> bSizer21 = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> cbVarUnitsChoices = [ ] <EOL> self . cbVarUnits = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbVarUnitsChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> bSizer21 . Add ( self . cbVarUnits , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stSpeciation = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stSpeciation . Wrap ( - <NUM_LIT:1> ) <EOL> bSizer21 . Add ( self . stSpeciation , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbSpeciationChoices = [ ] <EOL> self . cbSpeciation = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbSpeciationChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> bSizer21 . Add ( self . cbSpeciation , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> fgSizer1 . Add ( bSizer21 , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> fgSizer11 . Add ( fgSizer1 , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> sbSizer3 = wx . StaticBoxSizer ( wx . StaticBox ( self , wx . ID_ANY , u"<STR_LIT>" ) , wx . HORIZONTAL ) <EOL> fgSizer3 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:4> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer3 . SetFlexibleDirection ( wx . HORIZONTAL ) <EOL> fgSizer3 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_SPECIFIED ) <EOL> self . stValue = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stValue . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer3 . Add ( self . stValue , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> self . txtTSValue = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> fgSizer3 . Add ( self . txtTSValue , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stTSUnits = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stTSUnits . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer3 . Add ( self . stTSUnits , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbTSUnitsChoices = [ ] <EOL> self . cbTSUnits = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbTSUnitsChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer3 . Add ( self . cbTSUnits , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> sbSizer3 . Add ( fgSizer3 , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> fgSizer11 . Add ( sbSizer3 , <NUM_LIT:1> , wx . ALIGN_CENTER | wx . ALL | wx . EXPAND | wx . LEFT , <NUM_LIT:10> ) <EOL> fgSizer6 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:4> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer6 . SetFlexibleDirection ( wx . BOTH ) <EOL> fgSizer6 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_ALL ) <EOL> self . stValType = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stValType . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stValType , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbValueTypeChoices = [ ] <EOL> self . cbValueType = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbValueTypeChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer6 . Add ( self . cbValueType , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stDataType = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stDataType . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stDataType , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbDataTypeChoices = [ ] <EOL> self . cbDataType = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbDataTypeChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer6 . Add ( self . cbDataType , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stGenCat = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stGenCat . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stGenCat , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbGenCatChoices = [ ] <EOL> self . cbGenCat = wx . ComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , cbGenCatChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer6 . Add ( self . cbGenCat , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stNoDV = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stNoDV . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stNoDV , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> self . txtNoDV = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> fgSizer6 . Add ( self . txtNoDV , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stSampMed = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stSampMed . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stSampMed , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> cbSampleMediumChoices = [ ] <EOL> self . cbSampleMedium = wx . combo . OwnerDrawnComboBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <EOL> cbSampleMediumChoices , wx . CB_READONLY | wx . CB_SORT ) <EOL> fgSizer6 . Add ( self . cbSampleMedium , <NUM_LIT:0> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . stReg = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . stReg . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer6 . Add ( self . stReg , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> self . cbIsRegular = wx . CheckBox ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> fgSizer6 . Add ( self . cbIsRegular , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> fgSizer11 . Add ( fgSizer6 , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> bSizer2 = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . m_panel2 = wx . Panel ( self , wx . ID_ANY , wx . DefaultPosition , wx . DefaultSize , wx . TAB_TRAVERSAL ) <EOL> bSizer2 . Add ( self . m_panel2 , <NUM_LIT:1> , wx . EXPAND | wx . ALL , <NUM_LIT:5> ) <EOL> self . btnCreate = wx . Button ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> bSizer2 . Add ( self . btnCreate , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> self . btnCancel = wx . Button ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> bSizer2 . Add ( self . btnCancel , <NUM_LIT:0> , wx . ALIGN_RIGHT | wx . ALL , <NUM_LIT:5> ) <EOL> fgSizer11 . Add ( bSizer2 , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . SetSizer ( fgSizer11 ) <EOL> self . Layout ( ) <EOL> self . Centre ( wx . BOTH ) <EOL> self . btnCreate . Bind ( wx . EVT_BUTTON , self . OnBtnCreateButton ) <EOL> self . btnCancel . Bind ( wx . EVT_BUTTON , self . OnBtnCancelButton ) <EOL> def __del__ ( self ) : <EOL> pass <EOL> def OnBtnCreateButton ( self , event ) : <EOL> event . Skip ( ) <EOL> def OnBtnCancelButton ( self , event ) : <EOL> event . Skip ( ) </s>
