def initTrialSecs(self):
secsSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
trainTrialSecsControlBox = widgets.ControlBox(self,
label='Train Trial Secs', orient=wx.VERTICAL)
self.trainTrialSecsFloatSpin = agwfs.FloatSpin(self, min_val=2.00, max_val=60.0,
increment=1/4.0, value=self.pg.trainTrialSecs)
self.trainTrialSecsFloatSpin.SetFormat('%f')
self.trainTrialSecsFloatSpin.SetDigits(3)
self.Bind(agwfs.EVT_FLOATSPIN, self.setTrialSecs, self.trainTrialSecsFloatSpin)
self.offlineControls += [self.trainTrialSecsFloatSpin]
trainTrialSecsControlBox.Add(self.trainTrialSecsFloatSpin, proportion=1,
flag=wx.ALL | wx.EXPAND, border=10)
secsSizer.Add(trainTrialSecsControlBox, proportion=1,
flag=wx.LEFT | wx.BOTTOM | wx.RIGHT | wx.EXPAND, border=10)
pauseSecsControlBox = widgets.ControlBox(self, label='Pause Secs', orient=wx.VERTICAL)
self.pauseSecsFloatSpin = agwfs.FloatSpin(self, min_val=0.25, max_val=10.0,
increment=1/4.0, value=self.pg.pauseSecs)
self.pauseSecsFloatSpin.SetFormat('%f')
self.pauseSecsFloatSpin.SetDigits(3)
self.Bind(agwfs.EVT_FLOATSPIN, self.setPauseSecs, self.pauseSecsFloatSpin)
self.offlineControls += [self.pauseSecsFloatSpin]
pauseSecsControlBox.Add(self.pauseSecsFloatSpin, proportion=1,
flag=wx.ALL | wx.EXPAND, border=10)
secsSizer.Add(pauseSecsControlBox, proportion=1,
flag=wx.BOTTOM | wx.RIGHT | wx.EXPAND, border=10)
self.sizer.Add(secsSizer, proportion=0, flag=wx.EXPAND)
评论列表
文章目录