Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abae22f

Browse files
committed
Get rid of Entrywidget
1 parent 627857e commit abae22f

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Tools/pynche/PyncheWidget.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,6 @@ def __init__(self, colordb, parent=None, **kw):
133133
self.__typein = TypeinWidget(interior)
134134
self.__typein.grid(row=0, column=2)
135135

136-
# create the type-in color name field
137-
## self.__colorname = self.createcomponent(
138-
## 'colorname', (), None,
139-
## Pmw.EntryField, (interior,),
140-
## label_text='Color Name'
141-
## )
142-
## self.__colorname.pack()
143-
## self.__colorname.configure(command=self.__set_color_by_name())
144-
145136
# Check keywords and initialize options
146137
self.initialiseoptions(PyncheWidget)
147138

@@ -183,11 +174,6 @@ def set_color(self, obj, rgbtuple):
183174
def __set_color(self):
184175
self.set_color(self, self['color'])
185176

186-
def __set_color_by_name(self):
187-
colorname = self.__colorname.get()
188-
rgbtuple = self.__colordb.find_byname(colorname)
189-
self.set_color(self, rgbtuple)
190-
191177
def __buttonpress(self, event=None):
192178
self.__chip.configure(relief=SUNKEN)
193179

0 commit comments

Comments
 (0)