Python GUI with Tkinter - 8 - Using Classes

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

calm, informal, straight to the point, no crazy acronymns, no confusing jargon, tailored to everybody. just what i was looking for

maindepth
Автор

Best python tutorials I have ever seen!

venom
Автор

Man, I was just looing for a tutorial to help, I wasn't expecting to watch this channel. I watched your Java tutorials all the way back in like 2012 and I thought I recognized the voice. This is awesome!

LeAbstracted
Автор

Thanks a ton was having some trouble understanding this stuff in my class and after watching the tutorial I got it working in about 5 minutes.

MrJimboABC
Автор

These tutorials are great thenewboston, you communicate very well!

ro
Автор

Just want to take a second to thank you dude! I've been learning Python for a while now and i've always been put off by 'Classes', purely because in other videos no one explained the use of them or what '__init__', actually does.

So good job with the videos man, your 're a good teacher!

illuminatiCorgi
Автор

Works just fine for me. Great tutorial!

Cronikgamers
Автор

i really enjoy all the videos. need more!

zinkaghost
Автор

..i know this video is really old but I just HAVE to say this even if you don't see this comment.
@thenewboston you helped me understand Classes WAYY BETTER than any online tutorials (on youtube) i have ever watched and this isn't even a Class tutorial video🤦‍♂️😄...THANK YOU SOO MUCH MAN!

sol
Автор

frame.quit doesn't work.
But master.destroy does.

Is it due to the fact that im using python 3.5.2 and this video is using an older version? (wich would be most likely the answer)

stew
Автор

Eyyy really well explained!! I've just have a doubt: if I wanna run the class in a thread, what I should put inside the definition of the function run?? 'def run(self): ¿? '
Thanks ;)

estefaniam
Автор

Hi Bucky,
            Your all tutorials are really excellent.  I am greatly benefited from it, particularly for C, C ++ and Python. You have added two new tutorials for Python and Tkinter. Only one serious issue about newly added tutorials are, even in full HD (1080 P), due to very small font size, code which you typed is little difficult to read. Your older python tutorials are easily readable. Thanks.

dhananjaymandalkar
Автор

"An object allows us to access the crap inside the class"....hahahaha Incredible tutorial!!

incalite
Автор

Quick question, as I've see this done different ways online.

Why use 'self' when creating the buttons but not when creating the frame?

Should you use 'self' when creating any item within the frame?

Thanks for help and the great tutorials!

ispete
Автор

how to i make my application window fullscreen and hide the top toolbar with the minimize, maximize and close buttons? I want to have a dedicated quit button instead.

adriandeveraaa
Автор

I got the program sort of working I didn't indent the second def this is very easy to overlook crucial details

lll_Life_lll
Автор

I feel super late to the party, but I'll throw this question out there anyway.

I tried passing width and height arguments to the Frame class under __init__, but for some reason the frame stays the same size. This works fine in other contexts, so I'm not sure what I need to do differently:

``
def __init__(self, master):
frame = Frame(master, width = 1000, height = 1000)
``

kenmoretoast
Автор

hey bucky. I've got a question. on line 7 inside your buttons class. if the variable frame is inside the class why is it not "self.frame= Frame(master)? why just "frame=Frame(master)"?

halcyonramirez
Автор

This is awesome! Thanks. Could you show us how to change properties of objects like buttons after you have created and placed them. Also how do you remove and delete objects?

MCTimTime
Автор

So would handling inputs all be done in the __init__ function for Tkinter GUIs? Say, for a class to fill in a book's info such as titles, author name and publisher, would the labels and entries all be made and packed in the __init__ function? Or would having other methods with their own frames, labels and entries connected to __init__ be a better approach?

areallyboredindividual