[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Python GUI with Tkinter – 5 – More on the Grid Layout
by
Tags:
Comments
40 responses to “Python GUI with Tkinter – 5 – More on the Grid Layout”
-
How would you move the checkbutton to the middle of the page???
-
What does that 2 after columnspan really do?
-
You make the best Python tutorials I've ever seen. They're so easy to understand and remember. Thanks so much!
-
can i add buttons to that?
-
i have just one question, can you make a table? i want to fill it with data from my mysql database, and idk how to make a neat looking table, with fixed spaces and everything, can you give me a link where i can learn it? or just tell me how? Much thanks, love the videos btw
-
But pyhton GUI codes are not availabe in your GitHub repository.
-
code is here//
from tkinter import*
root=Tk()
label_1=Label(root , text="Name:")
label_2=Label(root , text="Password:")entry1=Entry(root)
entry2=Entry(root)label_1.grid(row=0,sticky=E)
label_2.grid(row=1,sticky=E)entry1.grid(row=0,column=1)
entry2.grid(row=1,column=1)chek=Checkbutton(root,text="Keep me logged in")
chek.grid(columnspan=2)root.mainloop()
-
check it out! I appreciate the friggen videos
-
i know this is an old video, but why didn't you have to specify the row, when doing the checkbox, bc there was no frames either,,, sorry man probably a dumb question, I've only been trying to learn programming for a month, and I'm pretty lost all the time, but screw it, I'm lost most of the time anyway and i find a way through, so why would this be any different.
-
python 2.x:
YOU MUST PUT "Tkinter." BEFORE EVERY WIDGET > *Tkinter.*Label(root, text="Hello World!")
-
really good tkinter module teaching .i loved it the way of easiness
-
thanks man!
-
sticky=E did not work for me I had to go sticky="E"
not sure why but it worked with the quotes for me -
is it possable to center a label using the sticky cmd..
for exemple: .grid(root, sticky=CENTER)
or something like that..
Help please -
hey, thanks for this awesome videos
-
how about if i increase the size of the window and want to place the login details in the center?
-
how to use fill=X with grid().I tried but it was showing error
-
Im on episode 5 so far, and i must say its been brilliant. very clear and informative. Im a beginner to python and coding in general and i was looking for something to bridge the gap between running the scripts in pycharm and putting them in a GUI. Great work so far. would love to pick your brains further!
-
Many thankx for your explanation !
-
When I run my program all I get is a white screen. Here is my code. Did i miss something?
from tkinter import *
root = Tk()
label_1 = Label(root, text="Name")
label_2 = Label(root, text="Password")
entry_1 = Entry(root)
entry_2 = Entry(root)label_1.grid(row=0)
label_2.grid(row=1)entry_1.grid(row=0, column=1)
entry_2.grid(row=1, column=1)root.mainloop()
Have some of the commands changed since publishing? I am using PyCharm2016.3.2.
-
how come the checkButton knows to stay at the bottom? I would assume, since no grid location was specified it would result in (0,0).
-
i got a sticky situation, can never remember my right or left
-
Awesome. I learn python from many docs. But understand with your videos. Thank You Bucky 😉
-
Heyyy, I was wondering what type of program you are using to write your python in (within this clip). It differs from the software that there is available on the python site right? Would you be so kind to inform me? I am just getting started!
-
very helpful!
-
Amazing videos! I keep writing notes in ### from what you say and it sticks!.. sticky=E 😉
-
Yo guys can anyone tell me why is the answer not being displayed on the same tkinter window? Here is the code:
# let's create a program that will * 7 and get the result ##
import sys
from tkinter import *
def MU():
mtext = m.get()
textLable = Label(root, text=mtext)
print(textLable)
root = Tk()
m = StringVar()root.geometry("450×450+500+300")
root.title("Lets get it !! ")first = Label(root, text = "What you put here will be * 7 ").pack()
Buttoncheck = Button(root, text = "Check answer", command = MU).pack()
Enter_first = Entry(root, textvariable = m).pack()root.mainloop()
-
Is there any way to use .pack(fill=BOTH) or X or Y with .grid()?
-
#Code is:
from tkinter import*root = Tk()
label1 = Label(root, text="Username:")
label2 = Label(root , text="Password:")label1.grid(row=0, sticky=E)
label2.grid(row=1, sticky=E)entry1 = Entry(root)
entry2 = Entry(root)entry1.grid = (row=0, column=1)
entry2.grid = (row=1, column=1)checkbox_1 = Checkbutton(root, text="Keep me logged in.")
checkbox_1.grid(columnspan=2)root.mainloop()
-
can you please replace my python college teacher ? imagine or not she gave us the ENTIRE tk tutorials in 4 mins
-
boom.
-
Thank you so much man, your videos are awesome!
-
How u can make the password in the textbox with '*' ?
-
I can so tell your left handed ;D
-
Very good tutorial! thank you.
-
Is it possible to specify which 2(or more) columns to span over if there are more columns than the amount specified to span over?
-
I like your tutorials but one thing, it won't help anyone if someone is just going to copy & paste the code, good thing that you don't share codes in description, one won't learn until he types the code himself.
-
thats really easy and cool.I tried gui with java and its really hard! Thanks Bucky!
-
why columnspan(and other things) arent part of autocomplete
-
I've got the biggest cheesy grin 😀
Leave a Reply