mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Cosmetic
This commit is contained in:
parent
520f8bd9b7
commit
31ac518dd7
1 changed files with 7 additions and 7 deletions
|
@ -22,13 +22,13 @@ class ChipWidget(Pmw.MegaWidget):
|
||||||
_HEIGHT = 80
|
_HEIGHT = 80
|
||||||
|
|
||||||
def __init__(self, parent=None, **kw):
|
def __init__(self, parent=None, **kw):
|
||||||
optionsdefs = (('chip_borderwidth', 2, None),
|
options = (('chip_borderwidth', 2, None),
|
||||||
('chip_width', self._WIDTH, None),
|
('chip_width', self._WIDTH, None),
|
||||||
('chip_height', self._HEIGHT, None),
|
('chip_height', self._HEIGHT, None),
|
||||||
('label_text', 'Color', None),
|
('label_text', 'Color', None),
|
||||||
('color', 'blue', self.__set_color),
|
('color', 'blue', self.__set_color),
|
||||||
)
|
)
|
||||||
self.defineoptions(kw, optionsdefs)
|
self.defineoptions(kw, options)
|
||||||
|
|
||||||
# initialize base class -- after defining options
|
# initialize base class -- after defining options
|
||||||
Pmw.MegaWidget.__init__(self, parent)
|
Pmw.MegaWidget.__init__(self, parent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue