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())
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)
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())