Python Tkinter Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Title

A

self.master.title(‘WELCOME’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Geometry

A

self.master.geometry(‘800x400+100+200’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Label

A

self.WelcomeLabel=Label(self.master,text=”Welcome!”,fg=’blue’).grid(row=0,column=3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Button

A

self.View=Button(self.master,text=’Histogram’,fg=’blue’,command=self.Histogram).grid(row=14,column=0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Entry

A

self.usernameinput = StringVar()

self.usernamein = Entry(self.master,textvariable=self.usernameinput).grid(row=3,column=2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Place

A

top = Toplevel(self.master)
top.geometry(“400x200”)
top.title(“Success”)
Label(top, text=”The order has been restored!”).place(x=25,y=15)
Button(top, text=”Return to menu”,command=self.Returningtoadminmenu_restoreordeleteorder).place(x=25,y=95)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CreatingClassConnections

A

root=Tk()
myGUIMain=Welcome(root)
root.mainloop()

root2=Toplevel(self.master)
muGUI=Main_Menu(root2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Pack

A

root = Tk()
root.geometry(‘600x400’)
self.my_listbox = Listbox(root)
self.my_listbox.pack(pady=15)
z = 0
for items in CustomerFinalProducts:
cur.execute(“SELECT ProductName FROM Products WHERE ProductID = ‘” + str(CustomerFinalProducts[z][0]) + “’”)
y = cur.fetchall()
y = y[0]
y = str(y)
CustomerFinalProductsAlternative = str(CustomerFinalProducts[z][1]) + ‘ ‘ + y
self.my_listbox.insert(END, CustomerFinalProductsAlternative,)
count += 2
Othercount += 2
z += 1
Del=Label(root,text=”Type in the number of the product you want deleting…”)
Del.pack(pady=5)
self.OtherDel = Entry(root,textvariable=self.DeletedProduct)
self.OtherDel.pack(pady=10)
CustomerBasketButton = Button(root,text=”Delete”,fg=’blue’,command=self.DeleteAProduct)
CustomerBasketButton.pack(pady=15)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly