Ver Fonte

installer python-qt

xubo há 1 ano atrás
pai
commit
b968b20264
2 ficheiros alterados com 8 adições e 0 exclusões
  1. 3 0
      livepocket/302_poc_2.py
  2. 5 0
      livepocket/tkinter_gui.py

+ 3 - 0
livepocket/302_poc_2.py

@@ -1,4 +1,5 @@
 import json
+import multiprocessing
 import re
 import time
 from urllib import parse
@@ -177,4 +178,6 @@ def poc_2(account, passwd, target_url):
 
 
 if __name__ == '__main__':
+    # 新增下面一行代码即可打包多进程
+    multiprocessing.freeze_support()
     poc_2('no2es@huatcn.com', 'panyue666', 'https://t.livepocket.jp/e/pp20240515')

+ 5 - 0
livepocket/tkinter_gui.py

@@ -0,0 +1,5 @@
+import tkinter
+
+top = tkinter.Tk(className='tkinter')
+
+top.mainloop()