11# -*- coding: utf-8 -*-
22
3- # ##########################################################################
4- # # Python code generated with wxFormBuilder (version Feb 26 2014)
3+ ###########################################################################
4+ ## Python code generated with wxFormBuilder (version Jun 5 2014)
55## http://www.wxformbuilder.org/
66##
77## PLEASE DO "NOT" EDIT THIS FILE!
1111import wx .xrc
1212import wx .lib .masked as masked
1313
14+
1415###########################################################################
1516## Class clsDataFilters
1617###########################################################################
1718
1819class clsDataFilters (wx .Dialog ):
19-
20-
2120 def __init__ (self , parent ):
22-
2321 wx .Dialog .__init__ (self , parent , id = wx .ID_ANY , title = u"Data Filter" , pos = wx .Point (599 , 384 ),
24- size = wx .Size (382 , 500 ), style = wx .DEFAULT_DIALOG_STYLE | wx . RESIZE_BORDER )
22+ size = wx .Size (382 , 547 ), style = wx .DEFAULT_DIALOG_STYLE )
2523
2624 self .SetSizeHintsSz (wx .Size (358 , 452 ), wx .DefaultSize )
2725
@@ -55,16 +53,16 @@ def __init__(self, parent):
5553 self .txtThreshValLT = wx .TextCtrl (self , wx .ID_ANY , wx .EmptyString , wx .DefaultPosition , wx .Size (248 , - 1 ), 0 )
5654 fgSizer1 .Add (self .txtThreshValLT , 1 , wx .ALL | wx .EXPAND , 5 )
5755
58- sbThreshold .Add (fgSizer1 , 0 , wx .EXPAND , 5 )
56+ sbThreshold .Add (fgSizer1 , 1 , wx .EXPAND , 5 )
5957
60- bsValueThresh .Add (sbThreshold , 1 , 0 , 5 )
58+ bsValueThresh .Add (sbThreshold , 1 , wx . EXPAND , 5 )
6159
6260 bSizer3 .Add (bsValueThresh , 1 , wx .EXPAND , 5 )
6361
6462 bsGaps = wx .BoxSizer (wx .HORIZONTAL )
6563
6664 self .rbDataGaps = wx .RadioButton (self , wx .ID_ANY , wx .EmptyString , wx .DefaultPosition , wx .DefaultSize , 0 )
67- bsGaps .Add (self .rbDataGaps , 1 , wx .ALL , 5 )
65+ bsGaps .Add (self .rbDataGaps , 0 , wx .ALL , 5 )
6866
6967 sbGaps = wx .StaticBoxSizer (wx .StaticBox (self , wx .ID_ANY , u"Data Gaps" ), wx .VERTICAL )
7068
@@ -76,23 +74,23 @@ def __init__(self, parent):
7674 self .lblGapsVal .Wrap (- 1 )
7775 fgSizer2 .Add (self .lblGapsVal , 0 , wx .ALL , 5 )
7876
79- self .txtGapsVal = wx .TextCtrl (self , wx .ID_ANY , wx .EmptyString , wx .DefaultPosition , wx .Size (230 , - 1 ), 0 )
77+ self .txtGapsVal = wx .TextCtrl (self , wx .ID_ANY , wx .EmptyString , wx .DefaultPosition , wx .Size (220 , - 1 ), 0 )
8078 fgSizer2 .Add (self .txtGapsVal , 0 , wx .ALL , 5 )
8179
8280 self .lblGapsTime = wx .StaticText (self , wx .ID_ANY , u"Time Period:" , wx .DefaultPosition , wx .DefaultSize , 0 )
8381 self .lblGapsTime .Wrap (- 1 )
8482 fgSizer2 .Add (self .lblGapsTime , 0 , wx .ALL , 5 )
8583
8684 cbGapTimeChoices = [u"second" , u"minute" , u"hour" , u"day" ]
87- self .cbGapTime = wx .ComboBox (self , wx .ID_ANY , u"second" , wx .DefaultPosition , wx .Size (230 , - 1 ), cbGapTimeChoices ,
85+ self .cbGapTime = wx .ComboBox (self , wx .ID_ANY , u"second" , wx .DefaultPosition , wx .Size (220 , - 1 ), cbGapTimeChoices ,
8886 wx .CB_READONLY )
8987 fgSizer2 .Add (self .cbGapTime , 0 , wx .ALL , 5 )
9088
9189 sbGaps .Add (fgSizer2 , 1 , wx .EXPAND , 5 )
9290
93- bsGaps .Add (sbGaps , 0 , 0 , 5 )
91+ bsGaps .Add (sbGaps , 1 , wx . EXPAND , 5 )
9492
95- bSizer3 .Add (bsGaps , 0 , 0 , 5 )
93+ bSizer3 .Add (bsGaps , 1 , wx . EXPAND , 5 )
9694
9795 bsDate = wx .BoxSizer (wx .HORIZONTAL )
9896
@@ -134,13 +132,14 @@ def __init__(self, parent):
134132 self .tpBefore = masked .TimeCtrl (self , wx .ID_ANY , pos = wx .DefaultPosition , size = wx .Size (80 , - 1 ),
135133 name = "24 hour control" ,
136134 fmt24hr = True , spinButton = self .sbBefore , oob_color = 'White' )
137- fgSizer3 .Add ( self .tpBefore , 0 , wx .ALL , 5 )
138- fgSizer3 .Add ( self .sbBefore , 0 , wx .ALL , 5 )
135+ fgSizer3 .Add (self .tpBefore , 0 , wx .ALL , 5 )
136+ fgSizer3 .Add (self .sbBefore , 0 , wx .ALL , 5 )
137+
139138 sbDate .Add (fgSizer3 , 1 , wx .EXPAND , 5 )
140139
141- bsDate .Add ( sbDate , 1 , wx .EXPAND , 5 )
140+ bsDate .Add (sbDate , 1 , wx .EXPAND , 5 )
142141
143- bSizer3 .Add (bsDate , 0 , wx .EXPAND , 5 )
142+ bSizer3 .Add (bsDate , 1 , wx .EXPAND , 5 )
144143
145144 bsValChange = wx .BoxSizer (wx .HORIZONTAL )
146145
@@ -169,13 +168,16 @@ def __init__(self, parent):
169168
170169 sbValChange .Add (fgSizer4 , 1 , wx .EXPAND , 5 )
171170
172- bsValChange .Add (sbValChange , 1 , 0 , 5 )
171+ bsValChange .Add (sbValChange , 1 , wx . EXPAND , 5 )
173172
174173 bSizer3 .Add (bsValChange , 1 , wx .EXPAND , 5 )
175174
175+ self .rbDuplicate = wx .RadioButton (self , wx .ID_ANY , u" Duplicate Values" , wx .Point (10 , 8 ), wx .DefaultSize , 0 )
176+ bSizer3 .Add (self .rbDuplicate , 0 , wx .ALL , 5 )
177+
176178 self .chkToggleFilterSelection = wx .CheckBox (self , wx .ID_ANY , u"Filter from previous filter" , wx .DefaultPosition ,
177179 wx .DefaultSize , 0 )
178- bSizer3 .Add (self .chkToggleFilterSelection , 1 , wx .ALL | wx .EXPAND , 5 )
180+ bSizer3 .Add (self .chkToggleFilterSelection , 0 , wx .ALL | wx .EXPAND , 5 )
179181
180182 bsButtons = wx .BoxSizer (wx .HORIZONTAL )
181183
@@ -191,14 +193,16 @@ def __init__(self, parent):
191193 self .btnClear = wx .Button (self , wx .ID_ANY , u"Clear Filter" , wx .DefaultPosition , wx .Size (64 , 23 ), 0 )
192194 bsButtons .Add (self .btnClear , 1 , wx .ALL | wx .EXPAND , 5 )
193195
194- bSizer3 .Add (bsButtons , 1 , wx .EXPAND , 0 )
196+ bSizer3 .Add (bsButtons , 0 , wx .EXPAND , 0 )
195197
196198 bSizer1 .Add (bSizer3 , 1 , wx .EXPAND , 5 )
197199
198200 self .SetSizer (bSizer1 )
199201 self .Layout ()
200202
201- self .Centre (wx .BOTH ) # Connect Events
203+ self .Centre (wx .BOTH )
204+
205+ # Connect Events
202206 self .txtThreshValGT .Bind (wx .EVT_SET_FOCUS , self .onSetFocus )
203207 self .txtThreshValLT .Bind (wx .EVT_SET_FOCUS , self .onSetFocus )
204208 self .txtGapsVal .Bind (wx .EVT_SET_FOCUS , self .onSetFocus )
@@ -212,19 +216,17 @@ def __init__(self, parent):
212216 self .txtVChangeGT .Bind (wx .EVT_SET_FOCUS , self .onSetFocus )
213217 self .txtVChangeLT .Bind (wx .EVT_SET_FOCUS , self .onSetFocus )
214218 self .chkToggleFilterSelection .Bind (wx .EVT_CHECKBOX , self .onCheckBox )
215- self .btnClear .Bind (wx .EVT_BUTTON , self .onBtnClearButton )
216219 self .btnOK .Bind (wx .EVT_BUTTON , self .onBtnOKButton )
217220 self .btnCancel .Bind (wx .EVT_BUTTON , self .onBtnCancelButton )
218221 self .btnApply .Bind (wx .EVT_BUTTON , self .onBtnApplyButton )
222+ self .btnClear .Bind (wx .EVT_BUTTON , self .onBtnClearButton )
219223
220224
221225 def __del__ (self ):
222226 pass
223227
224228
225- # Virtual event handlers, overide them in your derived class
226-
227-
229+ # Virtual event handlers, overide them in your derived class
228230 def onSetFocus (self , event ):
229231 event .Skip ()
230232
@@ -233,10 +235,6 @@ def onCheckBox(self, event):
233235 event .Skip ()
234236
235237
236- def onBtnClearButton (self , event ):
237- event .Skip ()
238-
239-
240238 def onBtnOKButton (self , event ):
241239 event .Skip ()
242240
@@ -248,8 +246,14 @@ def onBtnCancelButton(self, event):
248246 def onBtnApplyButton (self , event ):
249247 event .Skip ()
250248
249+
250+ def onBtnClearButton (self , event ):
251+ event .Skip ()
252+
253+
254+
251255 # self.dpAfter = wx.DatePickerCtrl(self, wx.ID_ANY, wx.DefaultDateTime, wx.DefaultPosition, wx.Size(150, -1),
252- # wx.DP_DROPDOWN | wx.DP_SHOWCENTURY)
256+ # wx.DP_DROPDOWN | wx.DP_SHOWCENTURY)
253257 # fgSizer3.Add(self.dpAfter, 0, wx.ALL, 5)
254258 #
255259 # self.sbAfter = wx.SpinButton(self, wx.ID_ANY, wx.DefaultPosition, wx.Size(15, -1), 0)
0 commit comments