Re: Standard Python GUI builder?

Dietmar Schwertberger <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 19.04.2016 20:20, Carsten Grohmann wrote:
> Good point. We (the users on the ML and I) should discuss and define
> the objective. From my current perspective wxGlade is only a GUI
> designer for people who unterstood the sizer concept of wxWidgets
> already. It's currently not for beginners.
Well, this is not against sizers. Even though I would see it as an advantage
fora beginner if he optionally could start with pixel-placement, I
think that the sizer conceptis easy enough to understand.
It's just that the handling in wxGladeshould then be intuitive enough.
As the sizers are a hierarchical structure, the structure really needs
tobe editable directly (i.e. in the tree control).

IMHO, with the right implementation it should be possible to explain the
sizer concept and wxGlade usage on one or two A4 pages.


> The lack of structure is probably a big usability issue. I'm glad
> about your suggestion of a new palette window.

I will send you the patch / modified files via PM. It's just a quick hack,
but maybe you can use some of it.

> I don't know the answer to all of this questions. Generally the sizer
> handling is inconsistent and needs an improvement - at least prevent
> deleting of the last slot and add the slots to the widget tree (to
> allow drag and drop).
> A general rework of the sizer handling is to much for me.
My look at the sources was not too close, but if I got it right, the
data model is tightly integrated into the Tree control.
Maybe it would be the best to decouple this a bit such that it might
be easier to decouple model and view structures, e.g. for visualization
of sizer slots.


> The extra code is just for adding some "glue" code e.g. to add custom
> imports. Not more.
For sure no business logic should be written in a GUI builder directly,
but there are more useful examples than just imports:
  - glue code in event handlers:
     - e.g. if radio selected, enable/disable some other controls
     - forwarding to callbacks of the business model
  - in general: at least for the most important events it should be possible
    to create an empty handler in wxGlade and enter the glue code
  - for a main window: import and creation of a data model

I'm willing to help out. Unfortunately your reply came only after my
vacation, so I did something else as vacation project and currently
I'm busy with some other projects.
After that I will have a look again.
My priority would be drag & drop in the tree control and the visualization
of the sizer slots - and of course Phoenix support.


Regards,

Dietmar


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.