def onChangeCheckBox(self, target, event=None): self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) value = event.IsChecked() section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)
def onSaveApply(self, event): """ Save ROIs to file and apply to current monitor """ path = self.onSaveMask(None) mn = self.monitor_name.replace(' ','') options.setValue(mn, 'maskfile', path) options.Save()
def onChangeCheckBox(self, target, event=None): """ """ self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) value = event.IsChecked() section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)
def onChangeDropDown(self, target, event=None): self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) value = event.GetString() if "Camera " in value: value = int(value.split(" ")[1]) section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)
def onChangeDropDown(self, target, event=None): """ """ self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) value = event.GetString() if "Camera " in value: value = int(value.split(" ")[1]) section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)
def onChangeValue(self, target, event=None): self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) if event.GetEventType() == wx.EVT_CHECKBOX.evtType: value = event.IsChecked() #if event.GetEventType() == wx.EVT_COMBOBOX.evtType: else: value = event.GetString() if "Camera " in value: value = int(value.split(" ")[1]) section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)
def onChangeValue(self, target, event=None): """ """ self.saveOptionsBtn.Enable(True) self.startBtn.Enable(False) if event.GetEventType() == wx.EVT_CHECKBOX.evtType: value = event.IsChecked() #if event.GetEventType() == wx.EVT_COMBOBOX.evtType: else: value = event.GetString() if "Camera " in value: value = int(value.split(" ")[1]) section = "Monitor%s" % target[0] keyname = target[1] options.setValue(section, keyname, value)