From abae22fa5e01db7773bbf52d0ee90b43e237b213 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 16 Mar 1998 23:35:11 +0000 Subject: Get rid of Entrywidget --- Tools/pynche/PyncheWidget.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py index b4b5ad7..a16cbcd 100644 --- a/Tools/pynche/PyncheWidget.py +++ b/Tools/pynche/PyncheWidget.py @@ -133,15 +133,6 @@ class PyncheWidget(Pmw.MegaWidget): self.__typein = TypeinWidget(interior) self.__typein.grid(row=0, column=2) - # create the type-in color name field -## self.__colorname = self.createcomponent( -## 'colorname', (), None, -## Pmw.EntryField, (interior,), -## label_text='Color Name' -## ) -## self.__colorname.pack() -## self.__colorname.configure(command=self.__set_color_by_name()) - # Check keywords and initialize options self.initialiseoptions(PyncheWidget) @@ -183,11 +174,6 @@ class PyncheWidget(Pmw.MegaWidget): def __set_color(self): self.set_color(self, self['color']) - def __set_color_by_name(self): - colorname = self.__colorname.get() - rgbtuple = self.__colordb.find_byname(colorname) - self.set_color(self, rgbtuple) - def __buttonpress(self, event=None): self.__chip.configure(relief=SUNKEN) -- cgit v0.12