Avdump GUI: Difference between revisions

Jump to navigation Jump to search
No change in size ,  13 May 2007
v1.03 added parent for the dialogs so they die with the program and can't stay open anymore
(v1.03 option 9 added (experimental mp3 hashing for ostdb))
(v1.03 added parent for the dialogs so they die with the program and can't stay open anymore)
Line 37: Line 37:
     def selectClick(self, event,path=''):
     def selectClick(self, event,path=''):
         if self.scantype.GetStringSelection() == 'Files':
         if self.scantype.GetStringSelection() == 'Files':
             dialog = wx.FileDialog ( None, message = 'Pick a directory.', style= wx.FD_MULTIPLE)
             dialog = wx.FileDialog ( self, message = 'Pick a directory.', style= wx.FD_MULTIPLE)
             if dialog.ShowModal() == wx.ID_OK:
             if dialog.ShowModal() == wx.ID_OK:
                 temp = dialog.GetPaths()
                 temp = dialog.GetPaths()
Line 46: Line 46:
                     path = '"' + temp[0].rstrip("\\") + '"'
                     path = '"' + temp[0].rstrip("\\") + '"'
         else:
         else:
             dialog = wx.DirDialog ( None, message = 'Pick a directory.' )
             dialog = wx.DirDialog ( self, message = 'Pick a directory.' )
             if dialog.ShowModal() == wx.ID_OK:
             if dialog.ShowModal() == wx.ID_OK:
                 path = '"' + dialog.GetPath().rstrip("\\") + '"'
                 path = '"' + dialog.GetPath().rstrip("\\") + '"'
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 -ac:%s:%s%s %s') %(self.__options['avdump'], self.__options['user'], self.__options['pass'], self.__options['param'], 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 -ac:%s:%s%s %s') %(self.__options['avdump'], self.__options['user'], self.__options['pass'], self.__options['param'], 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']))


     def optionsClick(self, event):
     def optionsClick(self, event):
Line 179: Line 179:


     def selectavdClick(self, event):
     def selectavdClick(self, event):
         dialog = wx.FileDialog ( None, message = 'Pick a directory.')
         dialog = wx.FileDialog ( self, message = 'Pick a directory.')
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.filepath.Clear()
             self.filepath.Clear()
Line 185: Line 185:


     def selectlogClick(self, event):
     def selectlogClick(self, event):
         dialog = wx.FileDialog ( None, message = 'Pick a directory.')
         dialog = wx.FileDialog ( self, message = 'Pick a directory.')
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.logpath.Clear()
             self.logpath.Clear()
Line 191: Line 191:


     def selectexpClick(self, event):
     def selectexpClick(self, event):
         dialog = wx.FileDialog ( None, message = 'Pick a directory.')
         dialog = wx.FileDialog ( self, message = 'Pick a directory.')
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.exppath.Clear()
             self.exppath.Clear()
Line 197: Line 197:


     def selectdoneClick(self, event):
     def selectdoneClick(self, event):
         dialog = wx.FileDialog ( None, message = 'Pick a directory.')
         dialog = wx.FileDialog ( self, message = 'Pick a directory.')
         if dialog.ShowModal() == wx.ID_OK:
         if dialog.ShowModal() == wx.ID_OK:
             self.donepath.Clear()
             self.donepath.Clear()

Navigation menu

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