Kod:
#-*-coding:utf-8-*-
from Tkinter import *
import sys
pencere = Tk()
dugme = Button(text="TAMAM", command = pencere.quit)
dugme.pack()
mainloop()
sys.exit()
Muallim-i Âli, yazdığınız satırı yukarıdaki gibi ekledim ama herhalde yanlış yere koydum. Çalıştırdığımda aşağıdaki hatayı verdi.
Kod:
Firing event 'ProcessEnter' failed.
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 141, in fire
rc = apply(binding.handler, args)
File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 478, in ProcessEnterEvent
if self.interp.runsource(source, "<interactive input>"): # Need more input!
File "C:\Python25\lib\code.py", line 87, in runsource
self.runcode(code)
File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 257, in runcode
exec code in self.globals, self.locals
File "<interactive input>", line 1, in <module>
File "C:\Python25\lib\deneme04.py", line 8, in <module>
sys.exit()
SystemExit
Bookmarks