How to create a custom GUI for a python program?

后端 未结 5 738

I want to create a GUI for a python program with a custom design, I have a mock-up in Photoshop and I\'m looking for a library that supports theme or any other library that can

5条回答
  •  广开言路
    2021-02-09 00:51

    Custom GUIs with wxPython/wxWidgets

    You are correct that in general wxWidgets aims to provide a native look and feel by usually and by default using standard controls however the option exists not to do so. Install wxPython, in a recent version, then install the Docs & Demos package for the same version, and then run the demo and navigate to the Advanced Generic Widgets tab and you will find just about all of the features you are asking for demonstrated in the AUI demo. It does mention custom close, minimise, etc., the only thing you mention that is not in that one demo is gradient buttons. You will also find demos of gradient & aqua buttons, and a Zoom Bar - a la Mac but platform independent. screenshots of the AUI demo & the demo package on zoom bar are attached:

    wxPython AGW AUI Screenshot:

    wxPython AGW AUI Screenshot

    Demo on Zoom Bar:

    Zoom Bar

    Note on file sizes:

    I have been using wxPython for several years and my current main project provides a huge amount of functionality in 15-20 executables but py2exe gives me a set of distributable files that zip to under 35 Megabytes including documentation & re-distributable libraries - I had one very experienced person come up to me and demand to know where the rest of my deliverable package was hidden - was it on-line or was I pre-installing it in some other way - he was shocked to learn that it was all in the single zip file.

提交回复
热议问题