コード例 #1
0
ファイル: btcore.py プロジェクト: aregee/network-scanner
 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")
コード例 #2
0
 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")
コード例 #3
0
 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")
コード例 #4
0
ファイル: btcore.py プロジェクト: aregee/network-scanner
 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")