3,699
edits
No edit summary |
(→Source) |
||
Line 39: | Line 39: | ||
class mainFrame(wx.Frame): | class mainFrame(wx.Frame): | ||
__simple = ['p','z','r','m','c','o','9'] | __simple = ['p','z','r','m','c','o','9'] | ||
__options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048: | __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048:16','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'} | ||
__configfile='config.ini' | __configfile='config.ini' | ||
Line 120: | Line 120: | ||
class OptionsFrame(wx.Frame): | class OptionsFrame(wx.Frame): | ||
__box = {'ext':False,'log':False,'exp':False,'port':False,'done':False,'bsize':False,'tout':False,'c':False,'m':False,'p':False,'r':False,'z':False,'o': | __box = {'ext':False,'log':False,'exp':False,'port':False,'done':False,'bsize':False,'tout':False,'c':False,'m':False,'p':False,'r':False,'z':False,'o':True,'9':False} | ||
__options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048: | __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048:16','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'} | ||
__configfile='config.ini' | __configfile='config.ini' | ||
Line 308: | Line 308: | ||
if not temp % 8: | if not temp % 8: | ||
temp = temp - (temp%8) | temp = temp - (temp%8) | ||
'''make sure the buffernumber is between 1 and | '''make sure the buffernumber is between 1 and 16''' | ||
if temp2 > | if temp2 > 16 or temp2 <1: | ||
temp2 = 1 | temp2 = 1 | ||
temp = ("%s:%s") %(temp, temp2) | temp = ("%s:%s") %(temp, temp2) | ||
except: | except: | ||
temp = "2048: | temp = "2048:16" | ||
self.__options['bsize'] = unicode(temp) | self.__options['bsize'] = unicode(temp) | ||
try: | try: |