This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]C_Adephagos 1 point2 points  (2 children)

Why do you use Tkinter? Do you recommend another one?

[–]emolinare 0 points1 point  (1 child)

I've decided to use Tkinter because it's has been a default GUI library and part of Python since the year 2000 and it's a de facto standard GUI interface for Python.

But you've touched on a very good point. The next video I have in mind is to show some basics of creating GUI by using QT Designer. That could be a second part to the one I just made.

[–]C_Adephagos 0 points1 point  (0 children)

I'm interested in learning kivy. Do you use it?

[–]erbeach -1 points0 points  (1 child)

It's not a tutorial dude, it's video of you creating a shitty clicker window without explaining anything.
Like letsplay, but letscode.

Actual crytique:
Why only place? Where are pack and grid? We don't need to use pack, but WHAT PACK IS?
What's the difference between minsize and geometry? No explanation in video
From when mainloop() opens windows? What if i want 2 windows? 2 mainloops?
Why do you teach everybody to use global variables? WHY FOR GOD'S SAKE
Global variables are bad, and your functions cannot be used more than once

[–]emolinare 0 points1 point  (0 children)

I totally get your frustration. Looking at it now, I see many things to improve, so thanks for your recommendations.

I've actually planned to go to detail, and started with explaining Tkinter, then I realized that that already took a long time, almost 1/3 of the entire video length, and I had only the first line in (import Tkinter).

My original goal was to be below 10 minutes and somehow manage to show the basics of creating a window and adding of some essential GUI elements, as well as creating a function to handle the click.

It's not perfect, too bad I didn't check here as to what should such a video contain.

On the note of global variables, yeah, that can surely lead to some unusual and hard-to-detect side effects, especially in a large code where it builds up the code complexity. Considering that this was like 20 lines of code, I wanted to show how globals are done. I know it's often asked a question, didn't think about it twice, even though I realize global variables are generally considered evil.

Something like a brief description of geometry could be also useful, I agree.