Exemplo n.º 1
0
    def __init__(self, client):
        self.client = client

        self.dialog = NotificationDialog(self.client)
        self.events = []
        self.disabledStartup = True
        self.lock = Lock()

        self.settings = NsSettingsDialog(self.client)

        self.user = util.icon("client/user.png", pix=True)
Exemplo n.º 2
0
    def __init__(self, client, gameset, playerset, me):
        self.client = client
        self.me = me

        self.settings = NsSettingsDialog(self.client)
        self.dialog = NotificationDialog(self.client, self.settings)
        self.events = []
        self.disabledStartup = True
        self.game_running = False

        client.gameEnter.connect(self.gameEnter)
        client.gameExit.connect(self.gameExit)
        client.gameFull.connect(self._gamefull)
        gameset.newLobby.connect(self._newLobby)
        playerset.playerAdded.connect(self._newPlayer)

        self.user = util.THEME.icon("client/user.png", pix=True)