2023-11-04 21:21:26 +08:00
|
|
|
from PyQt5.QtWidgets import *
|
|
|
|
|
|
|
|
from .userinfoUi import Ui_Frame
|
|
|
|
|
|
|
|
|
|
|
|
class UserinfoController(QWidget, Ui_Frame):
|
2023-11-08 00:13:12 +08:00
|
|
|
def __init__(self, contact, parent=None):
|
2023-11-04 21:21:26 +08:00
|
|
|
super().__init__(parent)
|
|
|
|
self.setupUi(self)
|
|
|
|
self.l_remark.setText(contact.conRemark)
|
|
|
|
self.l_avatar.setPixmap(contact.avatar)
|
|
|
|
self.l_nickname.setText(f'昵称:{contact.nickname}')
|
|
|
|
self.l_username.setText(f'微信号:{contact.alias}')
|
|
|
|
self.lineEdit.setText(contact.conRemark)
|
2023-11-05 21:14:14 +08:00
|
|
|
self.progressBar.setVisible(False)
|