Exemplo n.º 1
0
 def refresh_show(self):
     message_type = self.comboBox.currentText()
     self.pushButton.setText(message_type)
     database = DB()
     print(signup.login_user)
     if message_type == 'Personal':
         display = database.message_looking(signup.login_user)
         self.textEdit.setPlainText(display)
     if message_type == 'Group':
         display = database.group_message_looking(signup.login_user)
         self.textEdit.setPlainText(display)
     if message_type == 'ALL':
         display = database.message_looking('all')
         self.textEdit.setPlainText(display)
Exemplo n.º 2
0
 def refresh_msgs(self):
     database = DB()
     display = database.message_looking('all')
     self.textEdit.setPlainText(display)