예제 #1
0
 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
예제 #2
0
    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
예제 #3
0
 def __init__(self):
     port = int(getInfoFromCFG("manager", "port"))
     self.startServerThread(port)