Commit df556283 authored by Barry Warsaw's avatar Barry Warsaw

Better quitting

parent 302f97ae
...@@ -52,7 +52,6 @@ Shift + Left == -25 ...@@ -52,7 +52,6 @@ Shift + Left == -25
Shift + Right == +25 Shift + Right == +25
""" """
import sys
from Tkinter import * from Tkinter import *
STOP = 'Stop' STOP = 'Stop'
...@@ -153,7 +152,7 @@ class DetailsViewer: ...@@ -153,7 +152,7 @@ class DetailsViewer:
self.__l2.configure(text=text) self.__l2.configure(text=text)
def __quit(self, event=None): def __quit(self, event=None):
sys.exit(0) self.__root.quit()
def __withdraw(self, event=None): def __withdraw(self, event=None):
self.__root.withdraw() self.__root.withdraw()
......
...@@ -15,7 +15,6 @@ You can turn off Update On Click if all you want to see is the alias for a ...@@ -15,7 +15,6 @@ You can turn off Update On Click if all you want to see is the alias for a
given name, without selecting the color. given name, without selecting the color.
""" """
import sys
from Tkinter import * from Tkinter import *
import ColorDB import ColorDB
...@@ -123,7 +122,7 @@ class ListViewer: ...@@ -123,7 +122,7 @@ class ListViewer:
self.__sb.update_views(self.__red, self.__green, self.__blue) self.__sb.update_views(self.__red, self.__green, self.__blue)
def __quit(self, event=None): def __quit(self, event=None):
sys.exit(0) self.__root.quit()
def __withdraw(self, event=None): def __withdraw(self, event=None):
self.__root.withdraw() self.__root.withdraw()
......
...@@ -15,7 +15,6 @@ button and drag it through some text. The Insertion is the insertion cursor ...@@ -15,7 +15,6 @@ button and drag it through some text. The Insertion is the insertion cursor
in the text window (which only has a background). in the text window (which only has a background).
""" """
import sys
from Tkinter import * from Tkinter import *
import ColorDB import ColorDB
...@@ -89,7 +88,7 @@ textual displays.''') ...@@ -89,7 +88,7 @@ textual displays.''')
self.__toggletrack() self.__toggletrack()
def __quit(self, event=None): def __quit(self, event=None):
sys.exit(0) self.__root.quit()
def __withdraw(self, event=None): def __withdraw(self, event=None):
self.__root.withdraw() self.__root.withdraw()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment