mirror of
https://github.com/LC044/WeChatMsg
synced 2024-11-16 15:11:41 +08:00
16 lines
528 B
Python
16 lines
528 B
Python
|
from PyQt5.QtWidgets import *
|
||
|
|
||
|
from .userinfoUi import Ui_Frame
|
||
|
|
||
|
|
||
|
class UserinfoController(QWidget, Ui_Frame):
|
||
|
def __init__(self, contact, parent=None):
|
||
|
super().__init__(parent)
|
||
|
self.setupUi(self)
|
||
|
self.l_remark.setText(contact.remark)
|
||
|
self.l_avatar.setPixmap(contact.avatar)
|
||
|
self.l_nickname.setText(f'昵称:{contact.nickName}')
|
||
|
self.l_username.setText(f'微信号:{contact.alias}')
|
||
|
self.lineEdit.setText(contact.remark)
|
||
|
self.progressBar.setVisible(False)
|