mirror of https://github.com/python/cpython.git
Better quitting
This commit is contained in:
parent
d5bcf9a343
commit
45c8d34216
|
@ -52,7 +52,6 @@
|
|||
Shift + Right == +25
|
||||
"""
|
||||
|
||||
import sys
|
||||
from Tkinter import *
|
||||
|
||||
STOP = 'Stop'
|
||||
|
@ -153,7 +152,7 @@ def __effect(self, event=None):
|
|||
self.__l2.configure(text=text)
|
||||
|
||||
def __quit(self, event=None):
|
||||
sys.exit(0)
|
||||
self.__root.quit()
|
||||
|
||||
def __withdraw(self, event=None):
|
||||
self.__root.withdraw()
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
given name, without selecting the color.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from Tkinter import *
|
||||
import ColorDB
|
||||
|
||||
|
@ -123,7 +122,7 @@ def __toggleupdate(self, event=None):
|
|||
self.__sb.update_views(self.__red, self.__green, self.__blue)
|
||||
|
||||
def __quit(self, event=None):
|
||||
sys.exit(0)
|
||||
self.__root.quit()
|
||||
|
||||
def __withdraw(self, event=None):
|
||||
self.__root.withdraw()
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
in the text window (which only has a background).
|
||||
"""
|
||||
|
||||
import sys
|
||||
from Tkinter import *
|
||||
import ColorDB
|
||||
|
||||
|
@ -89,7 +88,7 @@ def __init__(self, switchboard, parent=None):
|
|||
self.__toggletrack()
|
||||
|
||||
def __quit(self, event=None):
|
||||
sys.exit(0)
|
||||
self.__root.quit()
|
||||
|
||||
def __withdraw(self, event=None):
|
||||
self.__root.withdraw()
|
||||
|
|
Loading…
Reference in New Issue