Live data from Hacker News

Kivy – a cross platform Python UI framework

kivy.org

71–80 of 107 posts

Re: Kivy – a cross platform Python UI framework

#71

One cross platform Python framework I found interesting is flet https://flet.dev/ It's powered by Flutter behind the scenes and familiar enough so that you can translate most things from Flutter/Dart tutorials to Flet. I haven't used it and I'll most likely never will (Flutter developer trying to pivot to real native development), but it seems to have an active community, and in theory, it enables developers to write…

Last time I looked at Flet, it gave the impression that you had to use the wrapped Flutter widgets, making it hard to use widgets and packages from pub.dev in a Flet application.

That seems to be the case even today: https://flet.dev/roadmap.

As I see, you can use pure python packages, but not Flutter packages or Python packages with some other languages in the mix.

Re: Kivy – a cross platform Python UI framework

#72
All these types of frameworks, ones that have code to make their own UI are fine, but what I really want is to have a declarative UI, like HTML or XAML, bound with some user interaction event engine and access to the underlying OS.

Hopefully, we can have that someday, without the likes of Electron or whatnot.

I would like to write a react app, with all its progress in UI/UX and thousands of libraries, package them into a Python app and distribute it as a desktop application.

Re: Kivy – a cross platform Python UI framework

#73

One cross platform Python framework I found interesting is flet https://flet.dev/ It's powered by Flutter behind the scenes and familiar enough so that you can translate most things from Flutter/Dart tutorials to Flet. I haven't used it and I'll most likely never will (Flutter developer trying to pivot to real native development), but it seems to have an active community, and in theory, it enables developers to write…

Why do people keep doing things like investing in a framework, written by one set of developers, built on another framework, written by another set of developers, and acting like that is not insane? Unless both stacks are written by huge software companies that have an extreme vested interest in keeping them running, there is a huge risk of abandonment. Maybe Google just decides maintaining flutter is a pain in the a…

While the risks you mentioned are indeed valid risks, it doesn't automatically mean that these risks (however small or huge they be) outweigh the benefits the Flet project offers.

It's somewhat of a niche project, and certainly not for everyone, or for every project, but it's an active project with some real users.

Re: Kivy – a cross platform Python UI framework

#74
post #32

I feel like an old grandpa while using tkinter!

I still use tkinter for apps that I make for my own use. Those are often for lab automation, where a primitive GUI lets me avoid needing 3 hands while running an experiment, and the support for live graphs is extremely useful. For stuff that I'm likely to share with others, I've been moving over to Flet, because it lets me build things like webapps and stand-alone Windows apps. Both of those things can eliminate the…

I think it's possible to use tkinter to develop even modern apps which don't look primitive, there are many open source projects which have done that including the IDLE editor itself, a part of core python project. The only issue is that it sometimes becomes excruciatingly difficult or painful to even perform some very little non-trivial things (like customizing a data-grid with a different style or having multiple tabbed pages) which are quite a simple task in other toolkits as they're already available in the form of a widget or component.

If ever I decide to leave tkinter, I think a viable alternative I will try is free-pascal[1]. It's a more comprehensive and well-thought toolkit for creating GUIs, more importantly it is also open source and cross-platform. It's the FOSS version of Delphi IDE.

[1]: https://www.freepascal.org/

Re: Kivy – a cross platform Python UI framework

#75

Earlier quoted context omitted.

Are you just describing something close to Nix?? In any case, Nix solves a lot of these problems.

Kind of, but not really. Nix is extremely complicated. Programs / projects including their dependencies is exceedingly simple. Also, Windows is my primary dev environment. Any solution must work cross-platform and cross-distro. Telling everyone to use a specific distro is not a solution.

Nix != NixOS. It runs on WSL: https://github.com/nix-community/NixOS-WSL

Re: Kivy – a cross platform Python UI framework

#76

Earlier quoted context omitted.

Kind of, but not really. Nix is extremely complicated. Programs / projects including their dependencies is exceedingly simple. Also, Windows is my primary dev environment. Any solution must work cross-platform and cross-distro. Telling everyone to use a specific distro is not a solution.

Nix != NixOS. It runs on WSL: https://github.com/nix-community/NixOS-WSL

Less than zero interest in WSL.

Nix fans are becoming as obnoxious as Rust fans. And I say that as an times annoying Rust fan.

Re: Kivy – a cross platform Python UI framework

#77

All these types of frameworks, ones that have code to make their own UI are fine, but what I really want is to have a declarative UI, like HTML or XAML, bound with some user interaction event engine and access to the underlying OS. Hopefully, we can have that someday, without the likes of Electron or whatnot. I would like to write a react app, with all its progress in UI/UX and thousands of libraries, package them in…

Pywebview + Pyinstaller gives you just that.

https://pywebview.flowrl.com https://pyinstaller.org/en/stable/

Re: Kivy – a cross platform Python UI framework

#80
post #47
post #38

out of all cross platform tools - dart / flutter is probably the easiest one. performant comes with all the widgets you want. web, mobile etc. react paid my rent but never again.

Flet doesn't seem to have a Treeview. I find that actually few cross platform GUI toolkits do. Qt, Swing, Wx, but the trendy ones?

Maybe Flet doesn’t but there are free view packages for Flutter (which was what GP mentioned).
Post reply on HN