Exemplo n.º 1
0
 def showChatWindow(self, jid, loadMessages=False):    
     if jid not in self.chatWindowManager:
         w = ChatWindow(model=self.createModel(jid, loadMessages), jid=jid)
         w.requestClose.connect(self.onChatWindowClose)
         w.setContextProperty("commonManager", commonManager)
         self.chatWindowManager[jid] = w
         w.showCenter()
     else:    
         self.chatWindowManager[jid].raise_()
Exemplo n.º 2
0
    def __init__(self, model, jid):
        super(ChatApp, self).__init__()

        self.win = ChatWindow(model, jid)