コード例 #1
0
    def btn_connect_clicked(self):
        """ The method would process when the user click on the connect button """
        # when connect button is clicked, show the chat pane
        self.window.setCentralWidget(self.giver_pane)

        self.connection = Networking.Connection(
            self.inp_connection_address.text(), 5000)
        print("Connecting into port 5000")
        self.player = 1