I've come up with a hacked up way to design windows in realtime, within a PSG window - And offload the layout design once you're done. Wondering if this is something you'd be interested in having, or have done so yourself already? (i.e. should I spend more time on it) It's basically a POC right now but works fine.
Sure! I'm sure others would be interested in seeing it, getting ideas, etc.
Ok cool. I鈥檒l work some more on it and get a decent base going. There are a lot of elements in PSG so I鈥檒l have some common ones (buttons, inputs, etc...) and then leave it up for contributions.
Oops I didn鈥檛 mean to close this.
You raised my curiosity! I am always interested in Visual Designer-like initiatives. Looking forward to see the result of your work!
Thanks but I found that it requires a lot of over engineering to go beyond what I started with which is placement of basic elements. Possible sure, I just don't have the time right now until I finish up this other project.
But having a console window which has the controls to select type of element, placement, size etc... (A lot of granular stuff in there). With a generate button. Generating turns the selections into a layout list and spawns a second Build window which displays your layouts. It could even be realtime with enough exception catching.
Tracking the elements you have built already, keeping locations, etc... That's the over engineering part.
Early on, just after 1.0 was released, I designed a "text based" way of defining window layouts.
Then I discovered I had created something that required MORE writing than writing directly in Python. The Python code was easier to understand than the text based version.
Generating the code for a single Element will be straightforward, it's designing how to describe their relationship to one another in a 2-D space that is the difficult part.
This one was suggested a while back too...
Yea the comment about generating the code is key. It's a large undertaking. Once done though it could be a good seller. But yea, the code for it (unless greatly abstracted if possible) would be huge.
We've got some movement on the designer front!
https://youtu.be/dN7gXwnNoBA
Looks really good. Is this only for QT? Is there a Github for this?
It will work for all ports as it generates PySimpleGUI code. It may add Stretch elements to try and do orientation. I dunno if it's that smart yet.
It's the Transcompiler that needs to be released somewhere on a GitHub. That seems to be the thing that does the magic, taking a UI file and turning it into a PySimpleGUI layout.
Most helpful comment
Early on, just after 1.0 was released, I designed a "text based" way of defining window layouts.
Then I discovered I had created something that required MORE writing than writing directly in Python. The Python code was easier to understand than the text based version.
Generating the code for a single Element will be straightforward, it's designing how to describe their relationship to one another in a 2-D space that is the difficult part.