polerok napsal:
Tak problem se trochu vratil... ted se me to zepta, jestli to chci zabit a kdyz dam ne, tak o5 sek... :o(
nejak nevim co mas na mysli..?
polerok napsal:
Tak problem se trochu vratil... ted se me to zepta, jestli to chci zabit a kdyz dam ne, tak o5 sek... :o(
polerok napsal:
Zdravim, mam ze cvika programek - zacatky s gui - a nejak mi nefunguje commadn quit. Kdykoliv na tlacitko ktere by to melo vypnout kliknu, tak okno s pythonem zamrzne. Dekuji za pomoc co delam blbe...from Tkinter import *
class myApp:
def __init__(self, master):
"""
self.fr = Frame(master)
self.bu = Button(self.fr, text="------1------", command=self.fr.quit)
self.bu1 = Button(self.fr, text="------2------", command=self.fr.quit)
self.bu2 = Button(self.fr, text="------3------", command=self.fr.quit)
self.bu3 = Button(self.fr, text="------4------", command=self.fr.quit)
self.fr.master.title("Button")
self.fr.pack()
"""
"""
self.bu.pack(side="left")
self.bu1.pack(side="bottom")
self.bu2.pack(side="top")
self.bu3.pack(side="top")
self.bu1.destroy()
"""
"""
self.bu.grid(row=0, column=5)
self.bu1.grid(row=10, column=1)
self.bu2.grid(row=1, column=0)
self.bu3.grid(row=1, column=1)
"""
self.bu1 = Button(master, text="------1------")
self.bu2 = Button(master, text="------2------")
self.fr = Frame(master)
self.bu3 = Button(self.fr, text="------3------")
self.bu4 = Button(self.fr, text="------4------")
self.bu1.grid(row=0, column=0)
self.bu2.grid(row=5, column=5)
self.fr.grid(row=3, column=0, columnspan=5)
self.bu3.pack()
self.bu4.pack()
root = Tk()
app = myApp(root)
root.mainloop()