def get_settings(self): # private """ Use this method to obtain application's network settings. """ self.settings = QSettings() network = TabNetwork() network.loadSettings(self.settings) host = network.addressHttpServer.text() port = network.portHttpServer.text() return (host, port)
def get_settings(self): # private """ Loads application settings, which had been previously saved and returns host and port to connect to. Intended to be used in L{connect} method. @rtype : (string, string) @return: Returns host and port, where server is supposed to listen. """ self.settings = QSettings() network = TabNetwork() network.loadSettings(self.settings) host = network.addressHttpServer.text() port = network.portHttpServer.text() return (host, port)