Exemplo n.º 1
0
Arquivo: http.py Projeto: RaD/qtclient
    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)
Exemplo n.º 2
0
    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)