Skip to content

Commit

Permalink
现在可以一次性实现多个定时时间的输入,降低了重复操作的繁琐性。
Browse files Browse the repository at this point in the history
  • Loading branch information
LTEnjoy committed Jul 22, 2024
1 parent ee96aac commit 23868a2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PC端微信助手(非web微信版):定时发送信息;群发信息;自动回复等。直接下载文件目录内的exe即可使用。

最新编辑日期:2024/07/11
最新编辑日期:2024/07/22

有疑问推荐在Issues上提出以供他人参考。

Expand All @@ -13,6 +13,9 @@ PC端微信助手(非web微信版):定时发送信息;群发信息;自
## 更新日志
<details open><summary><b></b></summary>

#### 2024/07/22
- 现在可以一次性实现多个定时时间的输入,降低了重复操作的繁琐性。

#### 2024/07/11
- 上传了打包函数,用户现在可以自己打包exe文件。运行``python pack.py``即可。

Expand Down
Binary file modified wechat_gui.exe
Binary file not shown.
15 changes: 11 additions & 4 deletions wechat_gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import time

import itertools

from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
Expand Down Expand Up @@ -132,7 +132,7 @@ def init_clock(self):
# 按钮响应:增加时间
def add_contact():
inputs = [
" (例:2024)",
"注:在每一个时间输入框内都可以使用英文逗号“,“来一次性区分多个数值进行多次定时。\n (例:2024)",
"月 (1~12)",
"日 (1~31)",
"小时(0~23)",
Expand Down Expand Up @@ -161,8 +161,15 @@ def add_contact():
return

else:
input = f"{year} {month} {day} {hour} {min} {st}-{ed}"
self.time_view.addItem(input)
year_list = year.split(',')
month_list = month.split(',')
day_list = day.split(',')
hour_list = hour.split(',')
min_list = min.split(',')

for year, month, day, hour, min in itertools.product(year_list, month_list, day_list, hour_list, min_list):
input = f"{year} {month} {day} {hour} {min} {st}-{ed}"
self.time_view.addItem(input)

# 按钮响应:删除时间
def del_contact():
Expand Down

0 comments on commit 23868a2

Please sign in to comment.