def load_scan(self, ScanNotebookPageBT, filename): #clear previous entries before loading *ubt self.clear(ScanNotebookPageBT) status = io.io().load(filename) if(str(status)!="None"): ScanNotebookPageBT.progb.set_text("0%") ScanNotebookPageBT.progb.set_fraction(0) message_id = ScanNotebookPageBT.status_bar.push(ScanNotebookPageBT.context_id, "File Load Error Encountered") return self.map(ScanNotebookPageBT) ScanNotebookPageBT.progb.set_text("100%") ScanNotebookPageBT.progb.set_fraction(1) message_id = ScanNotebookPageBT.status_bar.push(ScanNotebookPageBT.context_id, "File Loaded")
def load_scan(self, ScanNotebookPageBT, filename): #clear previous entries before loading *ubt self.clear(ScanNotebookPageBT) status = io.io().load(filename) if (str(status) != "None"): ScanNotebookPageBT.progb.set_text("0%") ScanNotebookPageBT.progb.set_fraction(0) message_id = ScanNotebookPageBT.status_bar.push( ScanNotebookPageBT.context_id, "File Load Error Encountered") return self.map(ScanNotebookPageBT) ScanNotebookPageBT.progb.set_text("100%") ScanNotebookPageBT.progb.set_fraction(1) message_id = ScanNotebookPageBT.status_bar.push( ScanNotebookPageBT.context_id, "File Loaded")
def save_scan(self, ScanNotebookPageBT): io.io().save() ScanNotebookPageBT.progb.set_text("100%") ScanNotebookPageBT.progb.set_fraction(1) message_id = ScanNotebookPageBT.status_bar.push( ScanNotebookPageBT.context_id, "File Saved")
def save_scan(self, ScanNotebookPageBT): io.io().save() ScanNotebookPageBT.progb.set_text("100%") ScanNotebookPageBT.progb.set_fraction(1) message_id = ScanNotebookPageBT.status_bar.push(ScanNotebookPageBT.context_id, "File Saved")