News for hackers. Stuff that matters.
Re:Guietta – Python module to create simple GUIs by alfiopuglisi on Friday July 03, 2020 @05:31AM (#23722479)
Actually I started to develop Guietta exactly because using the QT GUI builder (Qt designer) was often too time consuming for simple applications.

Designer works great for GUIs with complex layouts. Having an intermediate XML representation puts a lot of distance between your code and your GUI. Sometimes this is good, other times is not. I rant a bit about this at the start of the introduction: https://guietta.readthedocs.io/en/latest/intro.html

Re:Guietta – Python module to create simple GUIs by analog31 on Friday July 03, 2020 @09:08AM (#23723638)
I like the concept. I spent nearly a decade with Visual Basic, and got sick of building GUI's on the screen. It was a lot of repetitive manual labor when I didn't all that much care what my layouts looked like. Most of my programs are for limited use -- glorified scripts. I'd rather just sling a few lines of code and have it generate an ugly but functional layout for me.

One thing to add is a graph.

Re:Guietta – Python module to create simple GUIs by alfiopuglisi on Friday July 03, 2020 @09:11AM (#23723663)
It has matplotlib support: https://guietta.readthedocs.io/en/latest/tutorial.html#matpl...

or were you thinking of something else?

Re:Guietta – Python module to create simple GUIs by analog31 on Friday July 03, 2020 @09:18AM (#23723720)
Aha, I didn't see that. Nice!
Re:Guietta – Python module to create simple GUIs by murgindrag on Friday July 03, 2020 @10:21AM (#23724292)
Delphi wasn't like that.

There'a a gap a mile wide between

1) tools like Delphi, VisualBasic (the classic version, not .net), and to some extent, HyperCard

2) GUI builders, which were popularized by Visual C++

#1 doesn't have (visible) layers or abstractions. It's a different way to represent your program. You place a few controls, tie them to actions (code), and that's your system.

#2 is like onions, with lots of messy layers, and tend to be way more cumbersome to deal with than the code itself.

I don't know of modern-day graphical programming systems. I haven't kept up with Delphi, but people who have claim the last useful version is Version 7 from 2002. After that, it went through some messy transition.

Re:Guietta – Python module to create simple GUIs by user5994461 on Friday July 03, 2020 @12:53PM (#23725525)
There is one GUI builder in Java I forgot the name, a plugin for Eclipse from Google, that allows to build GUI by drag and drop and jump into the code. It works directly by reading and writing any java code file, there are no extra files and layers of abstraction. It could understand Swing, SWT and a couple other major UI frameworks.

That's the only thing I know that's really seamless like old times.

Re:Guietta – Python module to create simple GUIs by yCombLinks on Friday July 03, 2020 @05:53PM (#23727964)
WindowBuilder
Re:Guietta – Python module to create simple GUIs by m_mueller on Friday July 03, 2020 @11:06AM (#23724632)
It's been a while (I've never done autolayout and up) but I found Xcode Interface Builder to work in the fashion you describe. Probably not an accident as it descends from NeXT devtools which inspired e.g. VB (not sure about Delphi).
Re:Guietta – Python module to create simple GUIs by allo37 on Friday July 03, 2020 @12:54PM (#23725534)
How well would these tools have worked with source control? Interface builder effectively uses XML files, but they are not meant to be edited/understood by humans. This effectively hides a layer of the "onion", but it makes it tricky to follow changes checked into VCS...
Re:Guietta – Python module to create simple GUIs by m_mueller on Friday July 03, 2020 @01:30PM (#23725819)
Well XML is still better for that than binary, which I suspect VB was. We did have Xcode project files in git and it was ok.
Re:Guietta – Python module to create simple GUIs by pjmlp on Friday July 03, 2020 @04:06PM (#23727024)
VB FRM files were text based.
Re:Guietta – Python module to create simple GUIs by boznz on Saturday July 04, 2020 @08:41PM (#23735869)
went through a few bad patches but Latest Version is Very enjoyable to code in, and far superior to Delphi 7. Lazarus does a good job too and GPL
Re:Guietta – Python module to create simple GUIs by punnerud on Friday July 03, 2020 @06:55AM (#23722905)
What is your thoughts/wishes for further development?
Re:Guietta – Python module to create simple GUIs by alfiopuglisi on Friday July 03, 2020 @07:17AM (#23723010)
In no particular order:

radio buttons still basically unsupported - no way of grouping them.

Add optional astropy units for values, maybe extending the tuple syntax: ('__a__', u.km). More difficult than it seems, because one needs to parse input strings. But very useful in a scientific environment.

'with' syntax still very limited, in particular locals() and globals() refer to the Gui class scope so for example anything imported at the beginning of the script is not available inside the with block.

Unit tests almost completely missing, also I have no idea how to properly test GUI code.

Meta-level: add this list to github :)