示例#1
0
 def onSave(self, event):
     """
     """
     options.Save()
     self.drawPanel()
     self.saveOptionsBtn.Enable(False)
     self.startBtn.Enable(True)
示例#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()
    def saveMonitorConfiguration(self):
        """
        """

        options.SetMonitor(self.monitor_number, self.thumbnail.sourceType,
                           self.thumbnail.source + 1, self.thumbnail.track,
                           self.mask_file, self.trackType,
                           self.thumbnail.mon.isSDMonitor)
        options.Save()
示例#4
0
    def onFileSaveAs(self, event):
        """
        """
        filename = DEFAULT_CONFIG
        wildcard = "pySolo Video config file (*.cfg)|*.cfg"

        dlg = wx.FileDialog(self,
                            message="Save file as ...",
                            defaultDir=os.getcwd(),
                            defaultFile=filename,
                            wildcard=wildcard,
                            style=wx.SAVE)

        #dlg.SetFilterIndex(2)

        if dlg.ShowModal() == wx.ID_OK:
            path = dlg.GetPath()
            options.Save(filename=path)

        dlg.Destroy()
示例#5
0
    def onFileSaveAs(self, event):
        filename = DEFAULT_CONFIG
        wildcard = "pySolo Video config file (*.cfg)|*.cfg |" \
                    "All files (*.*)|*.*"

        # opens the file explorer for user to choose file path and name.
        dlg = wx.FileDialog(self,
                            message="Save file as ...",
                            defaultDir=os.getcwd(),
                            defaultFile=filename,
                            wildcard=wildcard,
                            style=wx.SAVE)

        # dlg.SetFilterIndex(2)

        # If user clicks "OK", save the file to the chosen path and name
        if dlg.ShowModal() == wx.ID_OK:
            path = dlg.GetPath()
            options.Save(filename=path)

        dlg.Destroy()
示例#6
0
 def onSaveOptions(self, event):
     """
     """
     options.Save()
     self.Close()
示例#7
0
 def onFileSave(self, event):
     """
     """
     options.Save()