summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/Sliders.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-12-14 12:57:56 (GMT)
committerGuido van Rossum <guido@python.org>1992-12-14 12:57:56 (GMT)
commit89a78697b86782a08be54269b9a7f55d4137d184 (patch)
treec93404611fb1495f466ccd5695b8e80cfab870a1 /Lib/stdwin/Sliders.py
parenta8993cfe16a04c612da72f72181ac63c6f858224 (diff)
downloadcpython-89a78697b86782a08be54269b9a7f55d4137d184.zip
cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.gz
cpython-89a78697b86782a08be54269b9a7f55d4137d184.tar.bz2
* Got entirely rid of path.py.
* Many modules: fixes for new, stricter, argument passing rules (most changes were automatic ones -- not all of this is tested!). * gwin.py: now uses mainloop.py for its main loop and window admin. * mainloop.py: always call dispatch() with event as a tuple! * Fix bug in pdb's 'clear' command -- don't set the bpt but clear it!
Diffstat (limited to 'Lib/stdwin/Sliders.py')
-rwxr-xr-xLib/stdwin/Sliders.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/stdwin/Sliders.py b/Lib/stdwin/Sliders.py
index 0a709d6..cbf776d 100755
--- a/Lib/stdwin/Sliders.py
+++ b/Lib/stdwin/Sliders.py
@@ -69,12 +69,12 @@ class DragSliderAppearance(ButtonAppearance):
def sethook(self, hook):
self.hook = hook
#
- def setminvalmax(self, (min, val, max)):
+ def setminvalmax(self, min, val, max):
self.min = min
self.max = max
self.setval(val)
#
- def settexts(self, (pretext, postext)):
+ def settexts(self, pretext, postext):
self.pretext = pretext
self.postext = postext
self.recalctext()
@@ -95,7 +95,7 @@ class DragSliderAppearance(ButtonAppearance):
#
class DragSlider(DragSliderReactivity, DragSliderAppearance, Define):
- def definetext(self, (parent, text)):
+ def definetext(self, parent, text):
raise RuntimeError, 'DragSlider.definetext() not supported'
@@ -108,7 +108,7 @@ class _StepButton(PushButton):
return self
def setstep(self, step):
self.step = step
- def definetextstep(self, (parent, text, step)):
+ def definetextstep(self, parent, text, step):
self = self.definetext(parent, text)
self.setstep(step)
return self
@@ -145,7 +145,7 @@ class ComplexSlider(HSplit):
#
# Override HSplit methods
#
- def getminsize(self, (m, (width, height))):
+ def getminsize(self, m, (width, height)):
w1, h1 = self.downbutton.getminsize(m, (0, height))
w3, h3 = self.upbutton.getminsize(m, (0, height))
w1 = max(w1, h1)
@@ -156,10 +156,10 @@ class ComplexSlider(HSplit):
def setbounds(self, bounds):
(left, top), (right, bottom) = self.bounds = bounds
size = bottom - top
- self.downbutton.setbounds((left, top), (left+size, bottom))
- self.dragbutton.setbounds((left+size, top), \
- (right-size, bottom))
- self.upbutton.setbounds((right-size, top), (right, bottom))
+ self.downbutton.setbounds(((left, top), (left+size, bottom)))
+ self.dragbutton.setbounds(((left+size, top), \
+ (right-size, bottom)))
+ self.upbutton.setbounds(((right-size, top), (right, bottom)))
#
# Pass other Slider methods on to dragbutton
#