Ahoj. Potřeboval bych někoho kdo by mi mohl pomoci s tímto. Potřeboval bych ani by tam na začátku nevyskočili takhle dvě okna, ale abych si tam pomocí těch čísel nejdřív zadat počet vteřin a potom co dám start aby se začalo odpočítávat od toho zadaného počtu vteřin. Takže potřebuji vlastně ty dvě věci co v tom mám nějak zarovnat do jednoho programu, ale nevím jak. Věřím, že jestli se najde někdo kdo s pythonem umí tak by to pro něj byla otázka 5 minut. Jen při kopírování je třeba vymazat středník mezi uvozovkou a závorkou :) Děkuji! from Tkinter import * from tkMessageBox import showinfo okno = Tk() def onclick0(): pole.insert(END, "0";)#vlozi na konec pole "0" def onclick1(): pole.insert(END, "1";) def onclick2(): pole.insert(END, "2";) def onclick3(): pole.insert(END, "3";) def onclick4(): pole.insert(END, "4";) def onclick5(): pole.insert(END, "5";) def onclick6(): pole.insert(END, "6";) def onclick7(): pole.insert(END, "7";) def onclick8(): pole.insert(END, "8";) def onclick9(): pole.insert(END, "9";) def onclickMul(): pole.insert(END, "*";) def onclickEval(): vyraz=pole.get()#vybirame retezec pole = Entry(okno) pole.config(width=30, fg="red", bg="white", font=20) pole.grid(row=0, columnspan=3, padx="30", pady="30";) button1 = Button(okno, text='1', command=onclick1) button1.grid(row=2, column=0, sticky=EW) button2 = Button(okno, text='2', command=onclick2) button2.grid(row=2,… column=1, sticky=EW) button3 = Button(okno, text='3', command=onclick3) button3.grid(row=2, column=2, sticky=EW) button4 = Button(okno, text='4', command=onclick4) button4.grid(row=3, column=0, sticky=EW) button5 = Button(okno, text='5', command=onclick5) button5.grid(row=3, column=1, sticky=EW) button6 = Button(okno, text='6', command=onclick6) button6.grid(row=3, column=2, sticky=EW) button7 = Button(okno, text='7', command=onclick7) button7.grid(row=4, column=0, sticky=EW) button8 = Button(okno, text='8', command=onclick8) button8.grid(row=4, column=1, sticky=EW) button9 = Button(okno, text='9', command=onclick9) button9.grid(row=4, column=2, sticky=EW) button0 = Button(okno, text='0', command=onclick0) button0.grid(row=5, column=0, sticky=EW) buttonMul = Button(okno, text='Start', command=onclickMul) buttonMul.grid(row=5, column=2, sticky=EW) class App: def __init__(self, master): fm = Frame(master) class Odpocet: def __init__(self): fm = Frame(master) fm.pack(side=LEFT) def __init__(self): self.vteriny = 5 self.root = Tk() if self.vteriny > 0: self.root.after(1000, self.Vteriny) else: showinfo("Baf!", "To ses lekl!";) self.times = Label(self.root, bg="black", fg="white", font=("Trebuchet MS", 10, "bold";), text=self.vteriny) self.times.pack(fill=BOTH, expand=1) self.root.mainloop() def Vteriny(self): self.vteriny = self.vteriny - 1 self.times['text'] = self.vteriny if self.vteriny > 0: self.root.after(1000, self.Vteriny) else: showinfo("Baf!", "To ses lekl!";) main = Odpocet() Ukázat celý příspěvek