Похожие чаты

From tkinter import * from tkinter.ttk import Combobox from tkinter import ttk from

tkinter import messagebox as msg

window = Tk()
var = StringVar()

L1=Label(window, text="Customer Name :", width =15)
L1.grid(column=0, row=0)
E1 = Entry(window, font=("Arial Black", 12))
E1.grid(column=1,row=0)

window.title("Pizza Place")
window.geometry("600x500")

v0 = IntVar()
v0 = IntVar()
v0 = IntVar()
v0 = IntVar()
v0.set(1)
v0.set(2)
v0.set(3)
v0.set(4)
r1 = Radiobutton(window, text="Pizza Size", variable=v0, value=1).grid(column=0, row=2)
r2 = Radiobutton(window, text="Small", variable=v0, value=2).grid(column=1, row=2)
r1 = Radiobutton(window, text="Medium", variable=v0, value=3).grid(column=2, row=2)
r2 = Radiobutton(window, text="Large", variable=v0, value=4).grid(column=3, row=2)


v1 = IntVar()
v2 = IntVar()
v3 = IntVar()
v4 = IntVar()
v0.set(1)
v0.set(2)
v0.set(3)
v0.set(4)
C1 = Checkbutton(window, text="Extras", variable=v1).grid(column=0, row=3)
C2 = Checkbutton(window, text="BreakSticks", variable=v2).grid(column=1,row=3)
C1 = Checkbutton(window, text="Salad", variable=v3).grid(column=2, row=3)
C2 = Checkbutton(window, text="Soda", variable=v4).grid( column=3, row=3)

var.set("one")
Toppings = ("Pepperoni", "Sausage", "Green Peppers", "Onions", "Tomatoes", "Anchovies")
cb = Combobox(window, values=Toppings)
cb.grid(column=0, row=6)

lb = Listbox(window, height=8, selectmode="multiple")
for num in Toppings:
lb.insert(END, num)
lb.grid(column=1, row=6)

var.set("one")
CrustType = ("Thin", "Deep Dish")
cb = Combobox(window, values=CrustType)
cb.grid(column=0, row=7)

lb = Listbox(window, height=3, selectmode='multiple')
for num in CrustType:
lb.insert(END, num)
lb.grid( column=1, row=7)


L2 = Label(window, text="Order Comments : ", width=25)
L2.grid(column=0, row=14)
E2 = Entry(window, font=("Arial Black", 20))
E2.grid(column=1, row=14)

def click():
print("Show Information !")
B1 = Button(window, text="Place Order", font=40, bg="green")
B1.config(command="Click")
B1.grid(column=0, row=15)

B2 = Button(window, text="Reset Values", font=40, bg="red")
B2.config(command="Click")
B2.grid(column=1, row=15)



class Root(Tk):
def __init__(self):
super (Root, self) .__init__()
self.title ("Python Tkinter Message Box")
self.minsize (640, 400)
self.wm_iconbitmap ('icon. ico')

self.msgButton ()


def msgButton (self):
self.btn = ttk.Button (self, text = "Open Message Box")
self.btn.grid (column = 0, row = 0)

def infoMsgBox(self):
msg.showinfo("python Message info", "python GUI Created By Tkinter")

window.mainloop()




Can anyone help please . ? I could not show the information for ordering a pizza ( its been 3 days working with this cod ))😥😰

6 ответов

27 просмотров

To post more than a few lines of code, use a pastebin like: * dpaste.org * linkode.org * bin.kv2.dev * hastebin.com If you are stuck in a terminal, you can use ix.io or paste.rs to paste from the CLI: <command to print output> |& curl -F 'f:1=<-' ix.io <command to print output> |& curl --data-binary @- https://paste.rs

What do you think you're doing here

He's writing in Java

yahoo_ serious- Автор вопроса
Muflone
He's writing in Java

its python code, so confusing 😰😰

yahoo_ serious
its python code, so confusing 😰😰

Whenever a function has more than 50 lines, it's a mess

yahoo_ serious- Автор вопроса

can anyone help please, could not find the missing 😰😰

Похожие вопросы

Обсуждают сегодня

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта