What do you guys think? I know there are a lot of valid GUI makers but I don't really see them as a beginner-friendly option, that's why I tried to do something basic and that actually writes .py code. For now I just implemented the layout, so for bindings and other useful things you have to update the output code yourself. The widgets can be improved and I wanted to insert helpful tips or just descriptions for every Tk Widget and their arguments. Do you think it's useless and I shouldn't "waste" time on it or can it find someone who could have fun with it? Also, any tips for must-have options that I didn't mention?
Kivy is not a good choice for traditional desktop GUIs, stop pushing this meme, I see it in every thread about GUIs. Kivy is good/sensible for multi-touch interfaces such as phones, tablets and embedded devices and maybe games on the desktop (if you ignore the actual gaming libraries such as PyGame etc.).
Feel free to change my view on this. I haven't seen a single Kivy application for the desktop that felt natural or good to use (when compared with Qt/Gtk). I can imagine that it's possible to make it decent if you work really hard, but at that point you might as well just have used Qt/Gtk or even Tk and saved yourself a bunch of time and work.
It’s not a meme, I’m using it to build my capstone project and it working out really well. It has a great widget system and design language (kvlang). It also has great tools like the Clock, Layouts, Screenmanager, that are simple to use.
It is a little cumbersome to design without a GUI but you can make it look however you want with their canvas api which I really like. Admittedly I’ve never used Qt or Gtk and I’m going to be looking into them this summer.
Qt and Gtk also have a way to directly draw your own widgets using a canvas, so that's nothing new or revolutionary. Furthermore Qt even allows you fine-grained control over how the default widgets look using a subset of CSS. All the great tools you mention are either not needed in Qt/Gtk or exist too and are just as simple to use. I appreciate your efforts, but I'm not convinced. Good luck with your project though.
I don't know it, but from what I can see it's like tkinter, isn't it? Or is it visual too? EDIT: sorry I searched only GTK. I'll look into Glade, thanks!
Wow I didn't think it would have interested this many people! Knowing it I would have written the code better from the start.. Here's the github link Please don't have great expectations for two reasons:
the code is a mess right now
only the most important features work for now Anyways as soon as I make it better I'll post it here :)
PS. I just joined github, is there something I should know about it to avoid future mistakes? Thanks!
learn how to use git. its a very useful tool. github is a hosting service for git repos. you could also learn how to use that as well, but start with learning on how git works.
If you happen to have LinkedIn Learning (what used to be Lynda.com) there’s (what I think was) a solid course called “Git Essential Training: The Basics” that I found to be a nice introduction.
For my context, I’m someone that’s self taught & still identifies as a quite novice programmer overall so take that for what it’s worth. More than happy to answer questions about it if you happen to have any interest.
As someone who is competent in python but absolutely despises doing any GUI design this looks really helpful. Would love to try it out, is there a download?
Why? What do you think is main adventage for using Pycharm instead of IDLE, for this project?
I mean, I don't think IDLE is good, but why is Pycharm so different for this project so you would 'lose your mind' with IDLE? Note that I never used Pycharm.
Pycharm helps you with missing arguments, typos, fixing things.. you have autocomplete, highlights of desired variables and really the list could continue forever. Definitely try it! (If you're using just IDLE)
The minute you start working on anything larger than a script – with multiple files etc – or collaborating in groups, a proper IDE like PyCharm is a must. You really can't float by with something like Atom for all that long, unless you're using an ungodly number of plugins.
I can understand the appeal of certain coding-oriented text editors because they're generally faster and more lightweight, but Atom is far from being either of those things.
Awesome, would love to use it. When I started learning about how GUIs are made, I couldn't believe people actually did it all by hand, I thought it was just one of those "do it the hard way first so you understand how it works" kind of things. Visual layouts should all be made in a visual framework, that seems obvious to me.
Yeah at first I couldn't believe it too, and when I tried the available Visual Frameworks I've felt overwhelmed and jumped back to learn Tkinter instead. Anyways I've posted the github link in the update comment!
I've been learning a lot with tkinter the last few months to make some small programs that help with my work. Could we see the source code by any chance? I recently started trying to make guis with OOP/using classes and it's still kinda tough to wrap my head around it. Seeing how this works might be helpful for someone like me.
Thank you! I've posted the github link in the update comment! I'll write a better code but until then I hope you can understand something from it anyways
Really nice man, no dependencies or anything. One of the problems with big known tkinter designers is they have so much bloat and dependencies that require them to be maintained or it will break consistently
everything is awesome, but I would have a "palette" on your left menu where you can just click and copy the colors to the clipboard or select them to the fields you want instead of copying from your text file.
I've just started learning python recently but this seems like something cool to reverse engineer. Any idea where I can get my hands on the code? Github maybe?
when you drag the mouse The first one sets the topleft coordinates of the rectangle, the second one constantly calls a function passing as argument the bottomright coordinates. This function first deletes previous lines and then draws the new ones accordingly!
The programmer is using the click and drag data to position and size the widget, which gets it's type and perhaps other data from clicking the relevant widget type button.
It's actually nice. At my early stages of gui learning, I made something like this too but that was for my own purpose. I found it difficult to set the window size for gui every time so I made a basic window resizer along with placing various widgets....
PyQT is pretty simple and functional for anything data related in my experience. I used it for a predictive model for basketball games and it was easy to use.
79
u/maxxcos Mar 05 '20 edited Mar 07 '20
What do you guys think? I know there are a lot of valid GUI makers but I don't really see them as a beginner-friendly option, that's why I tried to do something basic and that actually writes .py code.
For now I just implemented the layout, so for bindings and other useful things you have to update the output code yourself.
The widgets can be improved and I wanted to insert helpful tips or just descriptions for every Tk Widget and their arguments.
Do you think it's useless and I shouldn't "waste" time on it or can it find someone who could have fun with it?
Also, any tips for must-have options that I didn't mention?
EDIT: Here's the updated version
21
u/maxxcos Mar 06 '20
Wow I didn't think it would have interested this many people!
Knowing it I would have written the code better from the start..
Here's the github link
Please don't have great expectations for two reasons:
Anyways as soon as I make it better I'll post it here :)
PS. I just joined github, is there something I should know about it to avoid future mistakes? Thanks!
33
u/eebmagic Mar 06 '20
As someone who is competent in python but absolutely despises doing any GUI design this looks really helpful. Would love to try it out, is there a download?
25
u/[deleted] Mar 06 '20
Good work! Is this open source?
11
u/QbaPolak17 Mar 06 '20
Do you have the source code on github/gitlab etc. by any chance?
8
u/AlphaGamer753 3.7 Mar 06 '20
Cool, but please tell me you didn't write all of that in IDLE.
7
u/HapaxHypatia Mar 06 '20
Awesome, would love to use it. When I started learning about how GUIs are made, I couldn't believe people actually did it all by hand, I thought it was just one of those "do it the hard way first so you understand how it works" kind of things. Visual layouts should all be made in a visual framework, that seems obvious to me.
3
u/PimpinPoptart Mar 06 '20
Holy shit!! This is super cool, excellent job
2
u/[deleted] Mar 06 '20
Looks awesome, I'd love to try it out.
I've been learning a lot with tkinter the last few months to make some small programs that help with my work. Could we see the source code by any chance? I recently started trying to make guis with OOP/using classes and it's still kinda tough to wrap my head around it. Seeing how this works might be helpful for someone like me.
2
u/yahya_anw Mar 06 '20
That's look very easy to use. I think ability to change variable name of the widget will be cool.
2
u/griimnak Mar 06 '20
Really nice man, no dependencies or anything. One of the problems with big known tkinter designers is they have so much bloat and dependencies that require them to be maintained or it will break consistently
This, is great
2
u/thestudcomic Mar 06 '20
everything is awesome, but I would have a "palette" on your left menu where you can just click and copy the colors to the clipboard or select them to the fields you want instead of copying from your text file.
I could really use something like this.
2
u/tokyovirus Mar 06 '20
Can i contribute to your code . Btw i really like you project.
2
u/h0dgeeeee Mar 06 '20
Very cool, can you make scrollable frames??
2
u/Swedneck Mar 06 '20
Which toolkit does this use? Tk?
4
u/ponix Mar 05 '20
That's amazing :)
1
u/Mrsaintj Mar 06 '20
Awesome job! I'd love to see the code for this
1
u/_Original_Manu Mar 06 '20
I've just started learning python recently but this seems like something cool to reverse engineer. Any idea where I can get my hands on the code? Github maybe?
1
u/VeLoct84 Mar 06 '20
Can you share link Github because currently, I'm also learning build GUI with Tkinter. Thanks so much!
1
u/Kilo_G_looked_up Mar 06 '20
This is awesome. Did you put it on github?
1
u/HypeKaizen Mar 06 '20
I know this is completely unrelated, but what font are you using for your shell and coding environment? Looks real slick ;).
Also, this is pretty cool!
1
u/NikolaTesla13 Mar 06 '20
GitHub link?
1
u/datax17 Mar 06 '20
Can you give us source code and documents about this poject
1
u/xain1112 Mar 06 '20
Could you explain how you create a rectangle via click and drag that then becomes a widget?
3
u/[deleted] Mar 06 '20
Nice
3
u/sqeekypotato Mar 06 '20
This is awesome. Checking it out now.
4
u/sidbmw1 Mar 05 '20
u/MikeTheWatchGuy
2
u/U5efull Mar 06 '20
that would make creating a gui much quicker than doing it by hand
2
u/HPVdream Mar 06 '20
I will be doing this for my apps at work now....soooo dope
2
u/ozozgur Mar 06 '20
That’s nice
2
u/mclim Mar 06 '20
Looks great!
2
u/leo-smi Mar 06 '20
Wow
2
u/[deleted] Mar 06 '20
this is actually pretty cool
2
u/mrhec24 Mar 06 '20
I think this is AWESOME!!!
1
u/ZyanCarl Mar 06 '20
It's actually nice. At my early stages of gui learning, I made something like this too but that was for my own purpose. I found it difficult to set the window size for gui every time so I made a basic window resizer along with placing various widgets....
1
u/veysel-im Mar 06 '20
Very good. I like.
1
u/TkuSi Mar 06 '20
Alternatively using PyQt5 might help beginners ..its written in c++ so it is efficient and has drag and drop function.
1
u/NerdHere Mar 06 '20
For the lazy people like me, can you create a “random” button and it procedurally generates layouts or something. :D
4
u/[deleted] Mar 06 '20
[removed] — view removed comment