Exemple #1
0
    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)
Exemple #2
0
 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()
Exemple #3
0
 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)
Exemple #4
0
    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)
Exemple #5
0
 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)
Exemple #6
0
    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)
Exemple #7
0
    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)