def join(self): self.joinButton.text = "WAITING" self.joinButton.callback = None sock = Socket.Client() print('i am client') self.sock = sock ctx['imHost'] = False ctx['sock'] = sock sock.connect() Scene.game.setScene(MainScene())
import Socket client=Socket.Client()
import Socket import os Socket.Client().run_client()