示例#1
0
 def onSendBtn(self, event):
     user = appSettings.userID
     nickname = appSettings.nickname
     msgToSend = self.msgText.GetValue()
     if msgToSend:
         sendMessageToServer(self, 'sendMsg',
                             ChatMsg(user, nickname, msgToSend))
         self.msgText.SetValue("")
     event.Skip()
示例#2
0
    def onCollectBtn(self, event):
        if self.productNbr.GetValue():
            productID = self.productList.GetSelection()
            productQty = int(self.productNbr.GetValue())
            collectMsg = CollectMsg(productID, productQty)
            self.productNbr.SetValue(0)
            if productQty:
                sendMessageToServer(self, 'productAdd', collectMsg)

        event.Skip()
示例#3
0
 def onPingBtn(self, event):
     sendMessageToServer(self, 'pingAll', True)
     event.Skip()
示例#4
0
 def onPingUser03Btn(self, event):
     sendMessageToServer(self, 'pingUser', "user03")
     event.Skip()
示例#5
0
 def onCnxBtn03(self, event):
     userCnx = "user03"
     appSettings.userID = userCnx
     sendMessageToServer(self, 'userCnx', UserCnx(userCnx, userCnx))
     event.Skip()
示例#6
0
 def onMenuQuit(self, event):
     sendMessageToServer(self, 'userQuit', True)
     event.Skip()