diff options
| author | Guido van Rossum <guido@python.org> | 1991-12-26 13:06:29 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:06:29 +0000 |
| commit | ce08448165249b8be2181f231178db52504e2b01 (patch) | |
| tree | 65e19b98f946c41b91c720f84ceb5a901fa44ea7 /Lib/lib-stdwin/Sliders.py | |
| parent | decc4b99e136000e4f03df676ff672c0eccafd3c (diff) | |
| download | cpython-git-ce08448165249b8be2181f231178db52504e2b01.tar.gz | |
New class syntax.
Diffstat (limited to 'Lib/lib-stdwin/Sliders.py')
| -rw-r--r-- | Lib/lib-stdwin/Sliders.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/lib-stdwin/Sliders.py b/Lib/lib-stdwin/Sliders.py index a07c3c4b19..0a709d609e 100644 --- a/Lib/lib-stdwin/Sliders.py +++ b/Lib/lib-stdwin/Sliders.py @@ -22,7 +22,7 @@ _MASK = 3 # It does not support any of the triggers or hooks defined by Buttons, # but defines its own setval_trigger and setval_hook. # -class DragSliderReactivity() = BaseReactivity(): +class DragSliderReactivity(BaseReactivity): # def mouse_down(self, detail): h, v = hv = detail[_HV] @@ -43,7 +43,7 @@ class DragSliderReactivity() = BaseReactivity(): self.active = 0 # -class DragSliderAppearance() = ButtonAppearance(): +class DragSliderAppearance(ButtonAppearance): # # INVARIANTS maintained by the setval method: # @@ -94,14 +94,14 @@ class DragSliderAppearance() = ButtonAppearance(): self.settext(self.pretext + `self.val` + self.postext) # -class DragSlider() = DragSliderReactivity(), DragSliderAppearance(), Define(): +class DragSlider(DragSliderReactivity, DragSliderAppearance, Define): def definetext(self, (parent, text)): raise RuntimeError, 'DragSlider.definetext() not supported' # Auxiliary class for PushButton incorporated in ComplexSlider # -class _StepButton() = PushButton(): +class _StepButton(PushButton): def define(self, parent): self = PushButton.define(self, parent) self.step = 0 @@ -130,7 +130,7 @@ class _StepButton() = PushButton(): # A complex slider is an HSplit initialized to three buttons: # one to step down, a dragslider, and one to step up. # -class ComplexSlider() = HSplit(): +class ComplexSlider(HSplit): # # Override Slider define() method # |
