URL: http://github.com/python/cpython/commit/31ac518dd76711b6982b3935943ea306e5838708
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 520f8bd commit 31ac518Copy full SHA for 31ac518
1 file changed
Tools/pynche/ChipViewer.py
@@ -22,13 +22,13 @@ class ChipWidget(Pmw.MegaWidget):
22
_HEIGHT = 80
23
24
def __init__(self, parent=None, **kw):
25
- optionsdefs = (('chip_borderwidth', 2, None),
26
- ('chip_width', self._WIDTH, None),
27
- ('chip_height', self._HEIGHT, None),
28
- ('label_text', 'Color', None),
29
- ('color', 'blue', self.__set_color),
30
- )
31
- self.defineoptions(kw, optionsdefs)
+ options = (('chip_borderwidth', 2, None),
+ ('chip_width', self._WIDTH, None),
+ ('chip_height', self._HEIGHT, None),
+ ('label_text', 'Color', None),
+ ('color', 'blue', self.__set_color),
+ )
+ self.defineoptions(kw, options)
32
33
# initialize base class -- after defining options
34
Pmw.MegaWidget.__init__(self, parent)
0 commit comments