Skip to content

Commit

Permalink
增加提示词
Browse files Browse the repository at this point in the history
  • Loading branch information
LC044 committed Dec 2, 2023
1 parent 5329f3f commit d60e60e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 91 deletions.
3 changes: 1 addition & 2 deletions app/person_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, contact_info: Dict):
self.smallHeadImgUrl = contact_info.get('smallHeadImgUrl')
self.smallHeadImgBLOG = b''
self.avatar = QPixmap()
self.avatar_path = ':/icons/icons/default_avatar.svg'
self.avatar_path = Icon.Default_avatar_path

def set_avatar(self, img_bytes):
if not img_bytes:
Expand All @@ -59,7 +59,6 @@ def set_avatar(self, img_bytes):
self.avatar.loadFromData(img_bytes, format='PNG')
else:
self.avatar.loadFromData(img_bytes, format='jfif')

self.avatar.scaled(60, 60, Qt.IgnoreAspectRatio, Qt.SmoothTransformation)


Expand Down
18 changes: 15 additions & 3 deletions app/ui_pc/contact/contactInfo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import pyqtSignal, QUrl
from PyQt5.QtWidgets import QWidget, QMenu, QAction, QToolButton, QMessageBox

from app.DataBase.output_pc import Output
from app.ui_pc.Icon import Icon
Expand All @@ -25,6 +25,9 @@ def init_ui(self):
self.btn_report.setIcon(Icon.Annual_Report_Icon)
self.btn_analysis.setIcon(Icon.Analysis_Icon)
self.btn_emotion.setIcon(Icon.Emotion_Icon)
self.btn_report.clicked.connect(self.annual_report)
self.btn_analysis.clicked.connect(self.analysis)
self.btn_emotion.clicked.connect(self.emotionale_Analysis)
self.label_remark.setText(self.contact.remark)
self.stackedWidget.addWidget(self.view_userinfo)
self.stackedWidget.setCurrentWidget(self.view_userinfo)
Expand All @@ -48,6 +51,11 @@ def toolButton_show(self):
self.toolButton_output.showMenu()

def analysis(self):
QMessageBox.warning(self,
"别急别急",
"马上就实现该功能"
)
return
self.stackedWidget.setCurrentWidget(self.view_analysis)
if 'room' in self.contact.wxid:
QMessageBox.warning(
Expand All @@ -68,6 +76,11 @@ def annual_report(self):
# self.report.show()

def emotionale_Analysis(self):
QMessageBox.warning(self,
"别急别急",
"马上就实现该功能"
)
return
self.stackedWidget.setCurrentWidget(self.view_emotion)
if 'room' in self.contact.wxid:
QMessageBox.warning(
Expand Down Expand Up @@ -121,6 +134,5 @@ def output_progress(self, value):
self.view_userinfo.progressBar.setProperty('value', value)

def set_progressBar_range(self, value):
print('进度条范围', value)
self.view_userinfo.progressBar.setVisible(True)
self.view_userinfo.progressBar.setRange(0, value)
1 change: 0 additions & 1 deletion app/ui_pc/mainview.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def load_data(self, flag=True):
me.name = dic.get('name')
me.mobile = dic.get('mobile')
me.wx_dir = dic.get('wx_dir')
print('wx_dir', me.wx_dir)
self.set_my_info(wxid)
self.load_flag = True
else:
Expand Down
2 changes: 1 addition & 1 deletion app/ui_pc/tool/pc_decrypt/decryptUi.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ def retranslateUi(self, Dialog):
self.label_8.setText(_translate("Dialog", "微信路径"))
self.btn_getinfo.setText(_translate("Dialog", "获取信息"))
self.btn_db_dir.setText(_translate("Dialog", "设置微信路径"))
self.pushButton_3.setText(_translate("Dialog", "开始解密"))
self.pushButton_3.setText(_translate("Dialog", "开始启动"))
self.label_tip.setText(_translate("Dialog", "TextLabel"))
self.label_ready.setText(_translate("Dialog", "未就绪"))
2 changes: 1 addition & 1 deletion app/ui_pc/tool/pc_decrypt/decryptUi.ui
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
</size>
</property>
<property name="text">
<string>开始解密</string>
<string>开始启动</string>
</property>
</widget>
</item>
Expand Down
80 changes: 0 additions & 80 deletions main.spec

This file was deleted.

3 changes: 0 additions & 3 deletions main_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import time
import traceback

from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import *

from app.log import logger
Expand All @@ -16,8 +15,6 @@
class ViewController(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('解密')
self.setWindowIcon(QIcon(':/icons/icons/logo.png'))
self.viewMainWIndow = None
self.viewDecrypt = None

Expand Down

0 comments on commit d60e60e

Please sign in to comment.