def __init__(self, hostname=None, port=None): """Constructor. Supply a hostname to connect to another computer.""" if not hostname: hostname = getInfoFromCFG("database", "host") if not port: port = int(getInfoFromCFG("network", "port")) self.hostname = hostname self.port = port
def __init__(self): QWidget.__init__(self) self.setupUi(self) self.host = getInfoFromCFG("database", "host") self.databaseName = getInfoFromCFG("database", "db") self.port = int(getInfoFromCFG("database", "port")) QObject.connect(self.loginButton, SIGNAL("clicked()"), self.loginButtonHandler) self.loginSuccess = False
def __init__(self): port = int(getInfoFromCFG("manager", "port")) self.startServerThread(port)