コード例 #1
0
ファイル: http.py プロジェクト: 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)
コード例 #2
0
ファイル: http.py プロジェクト: mabragor/foobar
    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)