I built a thing
-
I'm interested in both constructive criticism and funny comments, but please make it clear which one you're making.
-
@marczellm said in I built a thing:
I'm interested in both constructive criticism and funny comments, but please make it clear which one you're making.
i shall have to investigate this more closely. i've been wanting to make a python GUI lately and my usual go-to of wxwidgets (mostly because i know it) isn't cutting it. i shall have to give this library a try.
-
@accalia said in I built a thing:
@marczellm said in I built a thing:
I'm interested in both constructive criticism and funny comments, but please make it clear which one you're making.
i shall have to investigate this more closely. i've been wanting to make a python GUI lately and my usual go-to of wxwidgets (mostly because i know it) isn't cutting it. i shall have to give this library a try.
It's a work in progress. I plan to maintain it and respond to feature requests but I've never done this open source thing before.
-
@accalia What is wrong with wxwidgets?
-
@marczellm said in I built a thing:
@accalia What is wrong with wxwidgets?
other than the fact that the only version of wxpython that supports python3 is still in alpha, and is basically a complete rewrite which means none of the old way of doing things work the same way anymore (or at least enough of them change that i's worth reevaluating my usage of it)
well, layout is annoying and a half, particularly layout when dealing with dynamic text. I've got an app that runs on a TV to display a random background as well as the time and temperature. it's pretty simple, some of the texxt is anchored to the tip left and some is to the bottom right, and updating the text sometimes does very odd things such that i have to reflow the layout multiple times to get the correct layout. and my layout isn't complicated! it's FOUR text field (well technically twenty because i needed a drop shadow so i hide four copies of the text in black behind the white text and offset them to give the outline, but still!)
so now i want a data entry app with some dynamic text as well and because i want to get the data on a raspberry pi that means my usual C# is out (okay it's out because this isn't work too but still!)
so yeah. i like how tk lays stuff out but working with TK raw is annoying, so i'll give your library a shot, and if it's good i'll use it.
-
@accalia said in I built a thing:
i've been wanting to make a python GUI lately and my usual go-to of wxwidgets (mostly because i know it) isn't cutting it.
Did you try this ?
-
@marczellm Is "TK" the same thing as GTK+? Because if so, you've just alienated all Windows users.
-
@blakeyrat no, it's a completely different toolkit for drawing widgets because Linux didn't have enough already.
-
@arantor Well good thing they didn't pick a confusing name for it.
-
@blakeyrat said in I built a thing:
@arantor Well good thing they didn't pick a confusing name for it.
I think it's the other way around. If Wikipedia is to be believed, Tk precedes Gtk by 7 years.
-
@blakeyrat I mean, GTK works on Windows, but admittedly I wouldn't want to use it there.
-
@magus said in I built a thing:
@blakeyrat I mean, GTK works on Windows, but admittedly I wouldn't want to use it
thereanywhere.FTFY
-
@timebandit said in I built a thing:
@accalia said in I built a thing:
i've been wanting to make a python GUI lately and my usual go-to of wxwidgets (mostly because i know it) isn't cutting it.
Did you try this ?
I have used that an PySide (same code works there, more lightweight). It works fine on Linux, Windows and OSX. Since it is Qt, the look and feel is native to the OS so @blakeyrat would not be triggered by yet another half arsed GUI toolset with buttons from the early 90s (like TK)
-
@dse said in I built a thing:
so @blakeyrat would not be triggered
He would get triggered anyway since Qt is open source
-
@magus said in I built a thing:
@blakeyrat I mean, GTK works on Windows, but admittedly I wouldn't want to use it there.
For sufficiently low values of "works"...
-
@masonwheeler said in I built a thing:
@magus said in I built a thing:
@blakeyrat I mean, GTK works on Windows, but admittedly I wouldn't want to use it there.
For sufficiently low values of "works"...
GTK looks like crap on Windows (well, not as shitty as TK). Qt is the only one that works well cross platform.
-
@marczellm why? Is it an exercise or did you need anything you could not do with PyQt/PySide and QML?
-
@dse said in I built a thing:
Since it is Qt, the look and feel is native to the OS
I've been using some Qt apps (MuseScore, TeXMaker) and while okay, they definitely do not appear native. Not even the menus. MuseScore even has rendering glitches. Or is this because of the developers forcing some bespoke theme?
@dse said in I built a thing:
buttons from the early 90s (like TK)
@dse said in I built a thing:
shitty as TK
Tk has native themes, which, I believe, call through to the OS toolkit and render the widgets natively. (Except on Linux where there's no such thing as the OS toolkit.)
And here's my screenshot on Windows 10:
@dse said in I built a thing:
@marczellm why? Is it an exercise or did you need anything you could not do with PyQt/PySide and QML?
I never tried Qt, but does it do data binding? MVVM? How frictionless is the interfacing between Python and QML's inline JavaScript? Also, inline Javascript in the markup?
Main reasons for this project are:
- I like WPF
- I like that Tkinter is shipped built-in with Python (at least on Windows) so no need to install Qt-anything separately
So yes, it is partly an exercise. It probably will never be as mature as Qt (Tkinter has limitations, for example it doesn't even have drag-and-drop AFAIK, you'd have to build it from scratch).
-
@dse Also the specific project for which I started to build this really needed a very simple GUI. I'd have used Tkinter anyway instead of Qt. But Tkinter didn't do declarative and data binding. Thus tkpf.
-
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
-
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
-
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks Sorry! Just offering a suggestion!
-
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
-
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
Duck for lunch sounds great! Where at?
-
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
Duck for lunch sounds great! Where at?
well...... where are you at? :salt: :pepper:
-
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
Duck for lunch sounds great! Where at?
well...... where are you at? :salt: :pepper:
Oh, but see, then I'd need to buy the 🦆
-
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
Duck for lunch sounds great! Where at?
well...... where are you at? :salt: :pepper:
Oh, but see, then I'd need to buy the 🦆
I think we can find one without having to go to the store..... :zwj:
-
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
@sloosecannon said in I built a thing:
@accalia said in I built a thing:
i want to get the data on a raspberry pi that means my usual C# is out
Not true, you can use IOT core
HISSSSSSSSS!
...... i WANT to use nix. if i din't i would be doing this as a actual x86 PC or throwing it on azure.
ducks
oh. sorry. i didn't realize you were a duck..... join me for lunch?
Duck for lunch sounds great! Where at?
well...... where are you at? :salt: :pepper:
Oh, but see, then I'd need to buy the 🦆
I think we can find one without having to go to the store..... :zwj:
Well then we have a plan!
-
@accalia The Mono framework is available on at least some distros for the Raspberry Pi.
-
@accalia said in I built a thing:
HISSSSSSSSS!
...... i WANT to use nix.
...says the person with the thread about slowly going insane.
-
@marczellm XAML Standard is on the way!
-
@marczellm said in I built a thing:
Except on Linux where there's no such thing as the OS toolkit
Sure there is. For example, GTK+ is the OS toolkit of Ubuntu, and QT is the OS toolkit of Kubuntu.
(Isn't user choice cool? Why have one standard when you can have dozens!)
-
@anonymous234 said in I built a thing:
GTK+ is the OS toolkit of
UbuntuGnome, and QT is the OS toolkit ofKubuntuKDE.Get your facts straight
-
@timebandit We were talking about OS toolkits. QT is the toolkit of KDE, and KDE is the desktop environment of Kubuntu, therefore QT is the toolkit of Kubuntu.
Same with Ubuntu --> Unity+GNOME --> GTK+.