Python 3 Programming Tutorial - tkinter module making windows

preview_player
Показать описание
In this video, we begin discussion of the tkinter module. The tkinter module is a wrapper around tk, which is a wrapper around tcl, which is what is used to create windows and graphical user interfaces. Here, we show how simple it is to create a very basic window in just 8 lines. Here, we get a window that we can resize, minimize, maximize, and close!

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

Your tutorials are extremely well explained. You are doing an absolutely brilliant job. Thanks!

Simonnz
Автор

I just want to say this is the best tutorial for python that I have found across all of youtube. Great Job, you are awesome

emmettfountain
Автор

Thank you, your tutorial quality improved a lot, I viewed one video of the newer intermediate series, and your explanation is so much improved

allawhussein
Автор

i have been learning python for the past two days (i'm familiar with other programming languages though) and somehow everytime i google a problem, i end up at this channel. i'm definitely gonna have to subscribe, i think :')

violenceisfun
Автор

the tutorial is getting more and more interesting, thanks a lot again.

wenwu-xu
Автор

I looked for a while for this tkinter as a module, but I wanted to mention it is included with python in the install that would have been pertinent info said that I love these videos!!!! I can knock out a few a day in like 20 minutes and learn a ton!!!

seriously like a whole semester of content in like 3 hours and I don't need to keep my notes as they are in the tutorials I did for this

newsogn
Автор

I just love it when Edward Snowden teaches me programming!

ishouldhavetried
Автор

He guys I want to tell you why he uses these method:-
root = tk() # this is used to pop up a window
app = frame(root) #it make a organise window
root.mainloop() ''' tk() function is used to pop up a window but it can be close after open once so we need to make a infinite
loop to keep window on screen and close only when we press the X button

shrad
Автор

Just a small tip ;)
You searched for 'def tk' (at 5:55). Probably 'def tk(' would've brought you where you wanted to get.
Same counts for finding paragraphs in the html-sourcecode (relating to prev.tuts 37 & 39): searching for '<p>' (or maybe '<p'?) should bring a readable part into focus.

nilspasman
Автор

Hey Harrison I've been following along on your videos and this is the first one in this series where I've felt lost. At this point you haven't really explained 'self' or given much detail on the __init__ syntax. Perhaps you rushed a little on this one because it covers so many videos. I don't mean to sound like I'm complaining, I'm a huge fan of your videos and think you're an excellent teacher - keep it up man!

RonMartinJr
Автор

I am an avid fan of your channel and specially this python 3 tutorial series and I have watched, followed and learned the content in all 39 tutorials prior to this, but I didn't understand a thing in this tutorial. Can please you point me to some followup reading to help me understand the commands you used in the tutorial. Thanks

farzadkhadem
Автор

Great video looking forward to watching your next python videos.
I typed in your code and run it but it gave me an error with the line:
    app = Window(root)
I removed that line and run it again this time it popped up with a window, do i need to keep the line of code I initially got rid of or is there an alternative.
An answer would be appreciated.

jamiereason
Автор

A less complicated form of making a simple window is as follows:


from tkinter import * <- Imports Tkinter


root = Tk() <- Makes the window
label = Label(root, text="This is Pretty Cool") <- Text inside the window
label.pack() <- Packs the text in anywhere it will fit.
root.mainloop() <- Loops process until you close the window.

johnhartshorne
Автор

hello sir, what do these lines mean actually??

def __init__(self, master=None):
Frame.__init__(self, master)
self.master = master

fa
Автор

You make really good videos, thanks so much!

bsaxon
Автор

from tkinter import *
root = Tk()
master = Frame(root, borderwidth = 5, width=500, height=500)
master.pack()

boom 4 lines


good job btw

nalinjain
Автор

I love your videos, but I am not very smart at this stuff yet and I have a question. I have tried to run this code in Anaconda, and I tried a similar way in Pycharm and it hasn't worked either way, I was wondering if you had any insight? I figured tinter should come with both versions, but it doesn't seem to recognize it. Thanks.

cccmusicality
Автор

Am i the only one to not really understand what the code lines mean in this video? Did i miss something?
All i know is that it creates a window that's for sure. Is it normal or i need to go back to basics or smt?

EDIT I'm reading the lib __init__ file and it's a little bit more clear now.

Diplodocuses
Автор

Great! I don't need to install extra things now. Thanks

灌水狗
Автор

I will just skip the part of apologizing for my possibly dumb question, but on minute 4:51 you're creating a method within the class Window, but this method already exists on the parent class Frame. So why didn't you creat an object in the class window and then with this object pick the method from the parent class? 

moscovita
welcome to shbcf.ru