Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 627857e commit abae22fCopy full SHA for abae22f
1 file changed
Tools/pynche/PyncheWidget.py
@@ -133,15 +133,6 @@ def __init__(self, colordb, parent=None, **kw):
133
self.__typein = TypeinWidget(interior)
134
self.__typein.grid(row=0, column=2)
135
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
-
145
# Check keywords and initialize options
146
self.initialiseoptions(PyncheWidget)
147
@@ -183,11 +174,6 @@ def set_color(self, obj, rgbtuple):
183
174
def __set_color(self):
184
175
self.set_color(self, self['color'])
185
176
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
191
177
def __buttonpress(self, event=None):
192
178
self.__chip.configure(relief=SUNKEN)
193
179
0 commit comments