Hello.
I’m a new user of wxpython but not a beginner with python.
I want to create an interface with the spécification given in the image ![]()
I don’t know how to chose the good architecture for my program !
Is it possible to have some help please ?
Hello.
I’m a new user of wxpython but not a beginner with python.
I want to create an interface with the spécification given in the image ![]()
I don’t know how to chose the good architecture for my program !
Is it possible to have some help please ?
I would strongly suggest a GUI builder for your purposes. I doubt anyone will design your interface for you, but a few GUI builders out there are quite powerful and I believe it’s going to take you 10 minutes to design your interface like that.
After you’re done, I would strongly suggest you study the generated code.
There are many GUI builders out there, but I’d suggest wxGlade (GitHub - wxGlade/wxGlade: wxGlade is a GUI builder written in Python for the GUI toolkit wxWidgets / wxPython. Documentation snapshot: http://wxglade.sourceforge.net/docs/index.html) as I find it very powerful and intuitive.
Thanks for the recommendation ![]()
I would like to add that the wxGlade documentation contains documentation about the wx basics and a tutorial.
(The documentation is available from the help menu or you can find a snapshot here. Welcome to wxGlade’s documentation! — wxGlade 1.1.1 documentation )
If you need examples of the controls just ask ChatGPT. I have found the wxPython docs almost impossible to use as a tutorial. As a reference? Yes. But quite often you just want to know how to do something simple.
Hello
Thanks for your answer,
My interface will be very simple, i don’t think GUI builder is very useful for me (dynamic image/button build with a loop), only 2 lists,2 buttons and 1 input.
My problem is to clear/reseting all the elements of the interface when I chose another profile and rebuild a new interface.
Each element has EVENTS which can trigger functions.
So the Combo box for Profiles can trigger an “On change” event which can be linked to a python function which will load and then populated the data you need in the other boxes
Your drawing isn’t all that simple. I’ve done GUI design manually, and am now using wxGlade. Get it. You won’t be disappointed.