Get rid of Entrywidget

This commit is contained in:
Barry Warsaw 1998-03-16 23:35:11 +00:00
parent 627857e957
commit abae22fa5e
1 changed files with 0 additions and 14 deletions

View File

@ -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)