示例#1
0
 def __init__(self):
     self.configobj = wx.wxConfig('BitTorrent_T-make',
                                  style=wx.wxCONFIG_USE_LOCAL_FILE)
     self.getConfig()
     self.currentTHost = self.config['thost']
     #        self.d = AdvancedDownloadInfo(self.config, self.getCalls())
     self.d = BasicDownloadInfo(self.config, self.getCalls())
示例#2
0
   def __init__ (self):
     self.user = '' 
     self.password = '' 
     self.error = 0 
     self.config = None
     self.API_URL = None
     self.PROXY_STRING = ''

     self.sysconfig = wxConfig()
     proxy = self.sysconfig.Read('proxy', '')
     port  = self.sysconfig.Read('port', '')
     if len(proxy) > 0 or len(port) > 0:
        self.setProxy(proxy + ':' + port)
示例#3
0
 def __init__(self):
     self.configobj = wx.wxConfig("BitTorrent_T-make", style=wx.wxCONFIG_USE_LOCAL_FILE)
     self.getConfig()
     self.currentTHost = self.config["thost"]
     #        self.d = AdvancedDownloadInfo(self.config, self.getCalls())
     self.d = BasicDownloadInfo(self.config, self.getCalls())