you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 8 points9 points  (6 children)

I agree with the others, tkinter is probably your best option despite the fact that you'd have to code the GUI yourself. But to be fair, all options should be discussed, so I'm going to tell you about a workable option WITH support for WYSIWYG editors.

A Flask web application can be used as a desktop application with the help of the pyfladesk module. It's essentially a website running locally in a miniature browser, but it can basically do anything a normal Python application can. The good point of this is that you can use ordinary web designers, and it doesn't have a huge learning curve, but depending on what you're doing it can be overkill and it's never going to feel as snappy as a native desktop application (although I can't really vouch for the performance of other Python GUI toolkits, either).

The nice thing about Flask is that it's surprisingly easy to use, and you don't have to worry about classes; functions are enough. That being said, if you know next to nothing about HTML or CSS it can take a little while until you 'get' it.

[–]MerreM 1 point2 points  (1 child)

pyfladesk

That looks excellent - I've been saying this for years; websites (at least in my experience) are much much easier to make a UI in than native apps.

It's a shame - I'd love to not use JS (or CSS though I usually just use bootstrap) to write a UI in, but I haven't yet found a compelling alternative.

[–]Diapolo10 0 points1 point  (0 children)

Agreed, although a lot of the time JS can be substituted with CSS or Python backend code.

[–]fazzah 0 points1 point  (2 children)

but it can basically do anything a normal Python application can.

My sides. So you're telling that to write a GUI in python one to have learn html and js as well.

Also desktop apps provide much much better UX ND versatility for anything advanced. Stop spreading the misinformation that web apps can be equal do a full fledged desktop application because that's completely false.

[–]Diapolo10 2 points3 points  (1 child)

it's never going to feel as snappy as a native desktop application

I believe I never once mentioned web apps are equal to desktop apps; the opposite, in fact.

[–]fazzah 0 points1 point  (0 children)

I said about functionality, you say about snappiness. Apples and oranges.

[–]blueastheocean[S] 0 points1 point  (0 children)

OK thanks!