Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.12.1 x86 版肥米雛型 #56

Open
6 tasks
shadowjohn opened this issue Jan 18, 2024 · 2 comments
Open
6 tasks

python 3.12.1 x86 版肥米雛型 #56

shadowjohn opened this issue Jan 18, 2024 · 2 comments

Comments

@shadowjohn
Copy link
Owner

shadowjohn commented Jan 18, 2024

今晚弄了很久,把肥米改寫成 python 3.12.1 x86 版可以編譯使用
比較大的變更是
GUI 移除 pygtk 改用 wxpython
然後增裝 screeninfo 可以取螢幕數相關資訊

還好改起來仍可以正常打字,但還有很多小細節要再測試調整 🥹
python27 x86 官方不維護,連 pip 都用不了

python 寫起來也是麻煩啊~~~~

編譯方式詳見:
https://github.com/shadowjohn/UCL_LIU/tree/master/python3

待測試

  • tab 檔->cin->json
  • 打字音
  • 短版模式 UI 跑版待修
  • 待修:右下角 SystemTray Icon 未顯示正常
  • 覺得 wxPython 好像不是很好,編完 exe 接近 19mb,再改傳統 Tkinter tk 看看會不會省些
  • about_uclliu 關於肥米,彈出畫面仍是 gtk 要改成 tkinter 或 wxpython gui
@Benson9954029
Copy link

要把python3 跟python2 當不同語言 辛苦了
當時3不兼容2 也是被當成笑話 哈哈

@shadowjohn
Copy link
Owner Author

@Benson9954029
wxPython 編出來 19mb , tk 編出來 16mb , 也是有點難寫
查了 chatgpt 跑pyinstaller 可以用 upx-dir 再瘦身一些些,但似乎也沒差很多
空的 python 編出 exe 約 5mb 看來要在 python3 要作到輕量化還有很長的路要走

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants