Пример #1
0
    def request_private_room_dismember(self, room):

        if not self.is_private_room_member(room):
            return

        self.queue.append(slskmessages.PrivateRoomDismember(room))
        del self.private_rooms[room]
Пример #2
0
    def on_popup_private_room_dismember(self, *args):

        if self.is_private_room_member(self.popup_room):
            self.frame.np.queue.append(
                slskmessages.PrivateRoomDismember(self.popup_room))
            del self.private_rooms[self.popup_room]
Пример #3
0
    def on_popup_private_room_dismember(self, widget):

        if self.is_private_room_member(self.popup_room):
            self.frame.np.queue.put(
                slskmessages.PrivateRoomDismember(self.popup_room))
            del self.private_rooms[self.popup_room]