def onSave(self, event): """ """ options.Save() self.drawPanel() self.saveOptionsBtn.Enable(False) self.startBtn.Enable(True)
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()
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()
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()
def onSaveOptions(self, event): """ """ options.Save() self.Close()
def onFileSave(self, event): """ """ options.Save()