Live data from Hacker News

Guietta – Python module to create simple GUIs

github.com

91–100 of 166 posts

Re: Guietta – Python module to create simple GUIs

#91

Earlier quoted context omitted.

What do you mean by the ecosystem?

The available libraries. For Python/JS, I can find libraries to do basically anything I want, but not so for Lazarus libraries.

I guess that depends on what you do. I've never felt that I do not have enough ecosystem in Delphi/FreePascal but I know there are areas where I would not be lucky if I ever went there. Then again on few occasions I had no problems creating pascal headers from C libraries I wanted to use. There are tools that depending on particulars can make it almost automatic.

Re: Guietta – Python module to create simple GUIs

#92
post #43
post #32

Earlier quoted context omitted.

Ah I came to comment this. Loved the GUI builder in Delphi, it's where I cut my teeth learning to program as a teenager. Since then, I've seen .NET within Visual Studio almost get to the same quality we had with Delphi in 1995, but still way off. Now that everything's a web app wrapped in something like Electron, it should be so much easier to have tooling like this, but yet we're all still building hugely complicate…

I personally think the real reason those types of tools seem less common and popular today is that people remember for example the reputation that Visual Basic programmers got (by the way, I was one). Basically, any really convenient RAD/GUI tool has an association with beginner programmers or even users. The last thing programmers want to be identified with is a user. Programming is manipulating cryptic colorful tex…

You sure its not because of the explosion of web apps?

Re: Guietta – Python module to create simple GUIs

#93

Honestly this looks hacky and "magical". E.g. what makes 'result' different from 'Enter numbers:'? Is PyQt really that difficult?

'result' and 'Enter numbers:' are exactly the same thing - two QT labels. The example code just changes the first one's text. If you run the code, you'll see it by yourself.

PyQt is not really difficult, just boring. And a bit of magic was indeed the intended effect :)

Re: Guietta – Python module to create simple GUIs

#94

Earlier quoted context omitted.

Too bad, Pascal is not really popular. If only there were similar thing (cross-platform GUI library) but for Go or Rust languages.

Popularity shouldn't be the deciding factor for tools of any kind.

I guess thats how I got stuck with some niche framework with no proper documentation and almost no answers on Stack Overflow when I am stuck.

Re: Guietta – Python module to create simple GUIs

#95
post #4

Every time I see something like this I think back to the glorious days of Borland Delphi with it's beautiful drag&drop GUI builder.

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.readth…

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

#96

Earlier quoted context omitted.

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.readth…

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.

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

#98

Earlier quoted context omitted.

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.

It has matplotlib support: https://guietta.readthedocs.io/en/latest/tutorial.html#matpl... or were you thinking of something else?

Aha, I didn't see that. Nice!

Re: Guietta – Python module to create simple GUIs

#100
post #4

Every time I see something like this I think back to the glorious days of Borland Delphi with it's beautiful drag&drop GUI builder.

I remember equivalent tools for Python, e.g. Boa Constructor: http://boa-constructor.sourceforge.net/ It kind of popped up out of nowhere, fully-formed, or at least I became aware of it when it was pretty mature. It's basically Visual Basic for Python, and worked really well. I have no idea why it wasn't more popular.

I played around with Boa Constructor and WxWidgets back in the day, in fact it was the first cross platform GUI library I seriously looked at for Python, but in the end settled on PyQt. It's a lot more complete and capable, with excellent documentation.

I have always preferred to code my UIs though, rather than use a GUI designer. I just find the back-and-forth between graphical designer and code an annoying extra context switch every time. Also in code I can position elements exactly, or use sizers very fluidly where GUI designers are fiddly and imprecise. They can be useful to do an initial mockup, but not much more so than pencil and paper. YMMV, we all have different visual and mental cognitive models for these things.

Post reply on HN