Forum

Einloggen | Registrieren | RSS  

Programmteil Tkinter bei Python (Computertechnik)

verfasst von hubert, 06.07.2018, 17:40 Uhr

Hab noch eine Frage,

from Tkinter import *
root = Tk()
w = Label(root, text="Hello Tkinter!";)
w.pack()

button = Button(root, text='Stop', width=9, command=root.destroy)
button.pack(side=RIGHT,pady=10,padx=90)

root.mainloop()

Was müsste ich machen, dass das Fenster erneut über eine Schaltfläche aufrufen kann?
destroy ist falsch ... da wird das Programm beendet

» Hallo an alle,
»
» hat hier jemand Erfahrung mit Tkinter in Python?
» ich wollte eine Fläche darstellen mit 1000 x 600
» es erscheint aber nur eine kleine Ecke rechts oben
» flaeche.create macht auch nichts
»
» from Tkinter import *
»
» window = Tk()
» window.title("Test";)
»
» flaeche = Canvas(window, width=1000, height=650)
» flaeche.create_rectangle(20, 50, 950, 600, fill="#ffffff";)
»
» window.mainloop()



Gesamter Thread:

Programmteil Tkinter bei Python - hubert, 06.07.2018, 16:58
Programmteil Tkinter bei Python - hubert, 06.07.2018, 17:40
Programmteil Tkinter bei Python - el-haber, 09.07.2018, 10:51