예제 #1
0
class ChatApp(mp.Process):
    def __init__(self, model, jid):
        super(ChatApp, self).__init__()

        self.win = ChatWindow(model, jid)

    def run(self):
        app = QtWidgets.QApplication([])
        self.win.show()
        app.exec_()
예제 #2
0
파일: chat.py 프로젝트: binyuj/deepin-talk
class ChatApp(mp.Process):
    
    def __init__(self, model, jid):
        super(ChatApp, self).__init__()
        
        self.win = ChatWindow(model, jid)
        
    def run(self):    
        app = QtWidgets.QApplication([])
        self.win.show()
        app.exec_()
예제 #3
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_()
예제 #4
0
    def __init__(self, model, jid):
        super(ChatApp, self).__init__()

        self.win = ChatWindow(model, jid)
예제 #5
0
파일: chat.py 프로젝트: binyuj/deepin-talk
 def __init__(self, model, jid):
     super(ChatApp, self).__init__()
     
     self.win = ChatWindow(model, jid)