03 - Desktop GUI Frameworks for Python

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 6

  • @SHONNER
    @SHONNER Год назад

    I have been playing with various DarkTheme repositories for Python. Most of them are only half implemented. Fonts I'm using for PyQt5 are overridden when a dark theme (or light theme) is overlayed onto an existing GUI generated by Qt Designer. I've also played with QtPy, which tries to solve the problem of not needing a particular GUI installed to use a program. It will detect PyQt or PySide if installed. But then QtPy uses UIC for loading .UI files. And PyInstaller doesn't like .UI files.

    • @MouseVsPython
      @MouseVsPython  Год назад

      I didn't know that. Thanks for mentioning that.
      Did you find a good tool that does work with UI files?

    • @SHONNER
      @SHONNER Год назад

      @@MouseVsPython For distributing Python EXE files, I'm guessing installers like Inno Setup are fine.
      Or just send ZIP files. That would have the UI files where they belong. But the user would need Python and all the site-packages installed to use the script.

    • @MouseVsPython
      @MouseVsPython  Год назад

      @@SHONNER Oh. Yes, you could build the exe with Py2Exe or PyInstaller and then use Inno Setup to distribute the UI files and anything else your app needs

    • @SHONNER
      @SHONNER Год назад

      @@MouseVsPython The trick with PyInstaller is telling it about the UI files. It assumes they will be in a temp folder created when the EXE is run. That's where I get stuck at.

  • @SHONNER
    @SHONNER Год назад

    I've used wxGlade (yuck!). I've used wxFormBuilder (a lot better). But Qt Designer is so much quicker for me to design GUIs with. And has more features. I would never try to do PyQt5 code by hand, though. You do need a PyQt license if you are selling software. I'm writing for myself. Hobbyist.