Avdump GUI: Difference between revisions

Jump to navigation Jump to search
v 1.03 fix for log, export and done pathes with spaces
(v1.03 added parent for the dialogs so they die with the program and can't stay open anymore)
(v 1.03 fix for log, export and done pathes with spaces)
Line 76: Line 76:
                             self.__options['param'] += ' -' + elem + ':' + self.__options[elem]
                             self.__options['param'] += ' -' + elem + ':' + self.__options[elem]
             '''debug option to see what avdump actually get's fed'''
             '''debug option to see what avdump actually get's fed'''
             #self.child.info(('%s%s -ac:%s:%s %s') %(self.__options['avdump'], self.__options['param'], self.__options['user'], self.__options['pass'], self.__options['scanpath']))
             self.child.info(('%s%s -ac:%s:%s %s') %(self.__options['avdump'], self.__options['param'], self.__options['user'], self.__options['pass'], self.__options['scanpath']))
             subprocess.call(('%s%s -ac:%s:%s %s') %(self.__options['avdump'], self.__options['param'], self.__options['user'], self.__options['pass'], self.__options['scanpath']))
             subprocess.call(('%s%s -ac:%s:%s %s') %(self.__options['avdump'], self.__options['param'], self.__options['user'], self.__options['pass'], self.__options['scanpath']))


Line 182: Line 182:
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.filepath.Clear()
             self.filepath.Clear()
             self.filepath.write('"' + dialog.GetPath().rstrip("\\") + '"')
             self.filepath.write(dialog.GetPath().rstrip("\\"))


     def selectlogClick(self, event):
     def selectlogClick(self, event):
Line 188: Line 188:
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.logpath.Clear()
             self.logpath.Clear()
             self.logpath.write('"' + dialog.GetPath().rstrip("\\") + '"')
             self.logpath.write(dialog.GetPath().rstrip("\\"))


     def selectexpClick(self, event):
     def selectexpClick(self, event):
Line 194: Line 194:
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.exppath.Clear()
             self.exppath.Clear()
             self.exppath.write('"' + dialog.GetPath().rstrip("\\") + '"')
             self.exppath.write(dialog.GetPath().rstrip("\\"))


     def selectdoneClick(self, event):
     def selectdoneClick(self, event):
Line 200: Line 200:
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.donepath.Clear()
             self.donepath.Clear()
             self.donepath.write('"' + dialog.GetPath().rstrip("\\") + '"')
             self.donepath.write(dialog.GetPath().rstrip("\\"))


     def saveClick(self,event):
     def saveClick(self,event):
Line 259: Line 259:


     def update(self):
     def update(self):
         self.__options['avdump'] = self.filepath.GetValue()
         self.__options['avdump'] = '"' + self.filepath.GetValue() + '"'
         self.__options['user'] = self.username.GetValue()
         self.__options['user'] = self.username.GetValue()
         self.__options['pass'] = self.password.GetValue()
         self.__options['pass'] = self.password.GetValue()
Line 292: Line 292:
         except:
         except:
             self.__options['retries'] = 6
             self.__options['retries'] = 6
         self.__options['exp'] = self.exppath.GetValue()
         self.__options['exp'] = '"' + self.exppath.GetValue() + '"'
         self.__options['log'] = self.logpath.GetValue()
         self.__options['log'] = '"' + self.logpath.GetValue() + '"'
         self.__options['done'] = self.donepath.GetValue()
         self.__options['done'] = '"' + self.donepath.GetValue() + '"'
         self.__box['ext'] = self.ext.GetValue()
         self.__box['ext'] = self.ext.GetValue()
         self.__box['log'] = self.log.GetValue()
         self.__box['log'] = self.log.GetValue()

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.