<s> import wx <EOL> import wx . xrc <EOL> import wx . lib . masked as masked <EOL> class clsDataFilters ( wx . Dialog ) : <EOL> def __init__ ( self , parent ) : <EOL> wx . Dialog . __init__ ( self , parent , id = wx . ID_ANY , title = u"<STR_LIT>" , pos = wx . Point ( <NUM_LIT> , <NUM_LIT> ) , <EOL> size = wx . Size ( <NUM_LIT> , <NUM_LIT> ) , style = wx . DEFAULT_DIALOG_STYLE | wx . RESIZE_BORDER ) <EOL> self . SetSizeHintsSz ( wx . Size ( <NUM_LIT> , <NUM_LIT> ) , wx . DefaultSize ) <EOL> bSizer1 = wx . BoxSizer ( wx . VERTICAL ) <EOL> bSizer3 = wx . BoxSizer ( wx . VERTICAL ) <EOL> bsValueThresh = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . rbThreshold = wx . RadioButton ( self , wx . ID_ANY , wx . EmptyString , wx . Point ( <NUM_LIT:10> , <NUM_LIT:8> ) , wx . DefaultSize , wx . RB_GROUP ) <EOL> self . rbThreshold . SetValue ( True ) <EOL> bsValueThresh . Add ( self . rbThreshold , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbThreshold = wx . StaticBoxSizer ( wx . StaticBox ( self , wx . ID_ANY , u"<STR_LIT>" ) , wx . VERTICAL ) <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_SPECIFIED ) <EOL> self . lblChangegt = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblChangegt . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer1 . Add ( self . lblChangegt , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . txtThreshValGT = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> fgSizer1 . Add ( self . txtThreshValGT , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . lblChangelt = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblChangelt . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer1 . Add ( self . lblChangelt , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . txtThreshValLT = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> fgSizer1 . Add ( self . txtThreshValLT , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> sbThreshold . Add ( fgSizer1 , <NUM_LIT:0> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsValueThresh . Add ( sbThreshold , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:5> ) <EOL> bSizer3 . Add ( bsValueThresh , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsGaps = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . rbDataGaps = wx . RadioButton ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> bsGaps . Add ( self . rbDataGaps , <NUM_LIT:1> , wx . ALL , <NUM_LIT:5> ) <EOL> sbGaps = wx . StaticBoxSizer ( wx . StaticBox ( self , wx . ID_ANY , u"<STR_LIT>" ) , wx . VERTICAL ) <EOL> fgSizer2 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:2> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer2 . SetFlexibleDirection ( wx . HORIZONTAL ) <EOL> fgSizer2 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_SPECIFIED ) <EOL> self . lblGapsVal = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblGapsVal . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer2 . Add ( self . lblGapsVal , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . txtGapsVal = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> fgSizer2 . Add ( self . txtGapsVal , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . lblGapsTime = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblGapsTime . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer2 . Add ( self . lblGapsTime , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> cbGapTimeChoices = [ u"<STR_LIT>" , u"<STR_LIT>" , u"<STR_LIT>" , u"<STR_LIT>" ] <EOL> self . cbGapTime = wx . ComboBox ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , cbGapTimeChoices , <EOL> wx . CB_READONLY ) <EOL> fgSizer2 . Add ( self . cbGapTime , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbGaps . Add ( fgSizer2 , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsGaps . Add ( sbGaps , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:5> ) <EOL> bSizer3 . Add ( bsGaps , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:5> ) <EOL> bsDate = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . rbDate = wx . RadioButton ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> bsDate . Add ( self . rbDate , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbDate = wx . StaticBoxSizer ( wx . StaticBox ( self , wx . ID_ANY , u"<STR_LIT>" ) , wx . VERTICAL ) <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 . lblDateAfter = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblDateAfter . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer3 . Add ( self . lblDateAfter , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . dpAfter = wx . DatePickerCtrl ( self , wx . ID_ANY , wx . DefaultDateTime , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <EOL> wx . DP_DROPDOWN | wx . DP_SHOWCENTURY ) <EOL> fgSizer3 . Add ( self . dpAfter , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . sbAfter = wx . SpinButton ( self , wx . ID_ANY , wx . DefaultPosition , wx . Size ( <NUM_LIT:15> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> self . tpAfter = masked . TimeCtrl ( self , wx . ID_ANY , pos = wx . DefaultPosition , size = wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <EOL> name = "<STR_LIT>" , <EOL> fmt24hr = True , spinButton = self . sbAfter , oob_color = "<STR_LIT>" ) <EOL> fgSizer3 . Add ( self . tpAfter , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> fgSizer3 . Add ( self . sbAfter , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . lblDateBefore = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblDateBefore . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer3 . Add ( self . lblDateBefore , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . dpBefore = wx . DatePickerCtrl ( self , wx . ID_ANY , wx . DefaultDateTime , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <EOL> wx . DP_DROPDOWN | wx . DP_SHOWCENTURY ) <EOL> fgSizer3 . Add ( self . dpBefore , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . sbBefore = wx . SpinButton ( self , wx . ID_ANY , wx . DefaultPosition , wx . Size ( <NUM_LIT:15> , - <NUM_LIT:1> ) , wx . SP_WRAP ) <EOL> self . tpBefore = masked . TimeCtrl ( self , wx . ID_ANY , pos = wx . DefaultPosition , size = wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <EOL> name = "<STR_LIT>" , <EOL> fmt24hr = True , spinButton = self . sbBefore , oob_color = '<STR_LIT>' ) <EOL> fgSizer3 . Add ( self . tpBefore , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> fgSizer3 . Add ( self . sbBefore , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbDate . Add ( fgSizer3 , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsDate . Add ( sbDate , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bSizer3 . Add ( bsDate , <NUM_LIT:0> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsValChange = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . rbVChangeThresh = wx . RadioButton ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> bsValChange . Add ( self . rbVChangeThresh , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbValChange = wx . StaticBoxSizer ( wx . StaticBox ( self , wx . ID_ANY , u"<STR_LIT>" ) , wx . VERTICAL ) <EOL> fgSizer4 = wx . FlexGridSizer ( <NUM_LIT:0> , <NUM_LIT:2> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> fgSizer4 . SetFlexibleDirection ( wx . HORIZONTAL ) <EOL> fgSizer4 . SetNonFlexibleGrowMode ( wx . FLEX_GROWMODE_SPECIFIED ) <EOL> self . lblChangeGT = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblChangeGT . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer4 . Add ( self . lblChangeGT , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . txtVChangeGT = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> fgSizer4 . Add ( self . txtVChangeGT , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . lblChangeLT = wx . StaticText ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . DefaultSize , <NUM_LIT:0> ) <EOL> self . lblChangeLT . Wrap ( - <NUM_LIT:1> ) <EOL> fgSizer4 . Add ( self . lblChangeLT , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> self . txtVChangeLT = wx . TextCtrl ( self , wx . ID_ANY , wx . EmptyString , wx . DefaultPosition , wx . Size ( <NUM_LIT> , - <NUM_LIT:1> ) , <NUM_LIT:0> ) <EOL> fgSizer4 . Add ( self . txtVChangeLT , <NUM_LIT:0> , wx . ALL , <NUM_LIT:5> ) <EOL> sbValChange . Add ( fgSizer4 , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> bsValChange . Add ( sbValChange , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:5> ) <EOL> bSizer3 . Add ( bsValChange , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> self . chkToggleFilterSelection = wx . CheckBox ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , <EOL> wx . DefaultSize , <NUM_LIT:0> ) <EOL> bSizer3 . Add ( self . chkToggleFilterSelection , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> bsButtons = wx . BoxSizer ( wx . HORIZONTAL ) <EOL> self . btnOK = wx . Button ( self , wx . ID_ANY , u"<STR_LIT:OK>" , wx . DefaultPosition , wx . Size ( <NUM_LIT:64> , <NUM_LIT> ) , <NUM_LIT:0> ) <EOL> bsButtons . Add ( self . btnOK , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . btnCancel = wx . Button ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . Size ( <NUM_LIT:64> , <NUM_LIT> ) , <NUM_LIT:0> ) <EOL> bsButtons . Add ( self . btnCancel , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . btnApply = wx . Button ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . Size ( <NUM_LIT:64> , <NUM_LIT> ) , <NUM_LIT:0> ) <EOL> bsButtons . Add ( self . btnApply , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> self . btnClear = wx . Button ( self , wx . ID_ANY , u"<STR_LIT>" , wx . DefaultPosition , wx . Size ( <NUM_LIT:64> , <NUM_LIT> ) , <NUM_LIT:0> ) <EOL> bsButtons . Add ( self . btnClear , <NUM_LIT:1> , wx . ALL | wx . EXPAND , <NUM_LIT:5> ) <EOL> bSizer3 . Add ( bsButtons , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:0> ) <EOL> bSizer1 . Add ( bSizer3 , <NUM_LIT:1> , wx . EXPAND , <NUM_LIT:5> ) <EOL> self . SetSizer ( bSizer1 ) <EOL> self . Layout ( ) <EOL> self . Centre ( wx . BOTH ) <EOL> self . txtThreshValGT . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . txtThreshValLT . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . txtGapsVal . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . cbGapTime . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . dpAfter . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . tpAfter . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . sbAfter . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . dpBefore . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . tpBefore . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . sbBefore . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . txtVChangeGT . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . txtVChangeLT . Bind ( wx . EVT_SET_FOCUS , self . onSetFocus ) <EOL> self . chkToggleFilterSelection . Bind ( wx . EVT_CHECKBOX , self . onCheckBox ) <EOL> self . btnClear . Bind ( wx . EVT_BUTTON , self . onBtnClearButton ) <EOL> self . btnOK . Bind ( wx . EVT_BUTTON , self . onBtnOKButton ) <EOL> self . btnCancel . Bind ( wx . EVT_BUTTON , self . onBtnCancelButton ) <EOL> self . btnApply . Bind ( wx . EVT_BUTTON , self . onBtnApplyButton ) <EOL> def __del__ ( self ) : <EOL> pass <EOL> def onSetFocus ( self , event ) : <EOL> event . Skip ( ) <EOL> def onCheckBox ( self , event ) : <EOL> event . Skip ( ) <EOL> def onBtnClearButton ( self , event ) : <EOL> event . Skip ( ) <EOL> def onBtnOKButton ( self , event ) : <EOL> event . Skip ( ) <EOL> def onBtnCancelButton ( self , event ) : <EOL> event . Skip ( ) <EOL> def onBtnApplyButton ( self , event ) : <EOL> event . Skip ( ) </s>
