diff options
author | Guido van Rossum <guido@python.org> | 1992-12-14 12:57:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-12-14 12:57:56 (GMT) |
commit | 89a78697b86782a08be54269b9a7f55d4137d184 (patch) | |
tree | c93404611fb1495f466ccd5695b8e80cfab870a1 /Lib/lib-stdwin/HVSplit.py | |
parent | a8993cfe16a04c612da72f72181ac63c6f858224 (diff) | |
download | cpython-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/lib-stdwin/HVSplit.py')
-rw-r--r-- | Lib/lib-stdwin/HVSplit.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-stdwin/HVSplit.py b/Lib/lib-stdwin/HVSplit.py index 9790b7b..c42327d 100644 --- a/Lib/lib-stdwin/HVSplit.py +++ b/Lib/lib-stdwin/HVSplit.py @@ -9,13 +9,13 @@ from Split import Split class HVSplit(Split): # - def create(self, (parent, hv)): + def create(self, parent, hv): # hv is 0 for HSplit, 1 for VSplit self = Split.create(self, parent) self.hv = hv return self # - def getminsize(self, (m, sugg_size)): + def getminsize(self, m, sugg_size): hv, vh = self.hv, 1 - self.hv size = [0, 0] sugg_size = [sugg_size[0], sugg_size[1]] @@ -46,8 +46,8 @@ class HVSplit(Split): corner = [0, 0] corner[vh] = end[vh] corner[hv] = origin[hv] + size[hv] - c.setbounds((origin[0], origin[1]), \ - (corner[0], corner[1])) + c.setbounds(((origin[0], origin[1]), \ + (corner[0], corner[1]))) origin[hv] = corner[hv] # XXX stretch # XXX too-small |