UCL_LIU icon indicating copy to clipboard operation
UCL_LIU copied to clipboard

python 3.12.1 x86 版肥米雛型

Open shadowjohn opened this issue 1 year ago • 2 comments

今晚弄了很久,把肥米改寫成 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

shadowjohn avatar Jan 18 '24 18:01 shadowjohn

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

Benson9954029 avatar Jan 24 '24 08:01 Benson9954029

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

shadowjohn avatar Jan 24 '24 08:01 shadowjohn