diff options
author | Guido van Rossum <guido@python.org> | 1993-01-04 09:16:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-01-04 09:16:51 +0000 |
commit | fea2af1e9b0c99cac6cb8806c4af651a38e92d07 (patch) | |
tree | e9e0ec3b003498ab942e1c0b7dd3d28951ca2701 /Lib/stdwin/Split.py | |
parent | a2b7f40513ba5d75a2063c3fabe47377cd8c0416 (diff) | |
download | cpython-git-fea2af1e9b0c99cac6cb8806c4af651a38e92d07.tar.gz |
* More changes due to stricter argument passing rules
* Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time()
returning a floating point number. (And fix old bug in calendar)
* Add recursion level to mainloop.mainloop(), to make it reentrant.
Diffstat (limited to 'Lib/stdwin/Split.py')
-rwxr-xr-x | Lib/stdwin/Split.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Lib/stdwin/Split.py b/Lib/stdwin/Split.py index 8eb02543f4..5ff98088c4 100755 --- a/Lib/stdwin/Split.py +++ b/Lib/stdwin/Split.py @@ -50,10 +50,10 @@ class Split: for child in self.children: child.realize() # - def draw(self, d_detail): + def draw(self, d, detail): # (Could avoid calls to children outside the area) for child in self.children: - child.draw(d_detail) + child.draw(d, detail) # def altdraw(self, detail): for child in self.altdraw_interest: @@ -112,15 +112,14 @@ class Split: if self.keybd_focus: self.keybd_focus.deactivate() # - def keybd(self, type_detail): + def keybd(self, type, detail): if not self.keybd_focus: self.set_keybd_focus(self.keybd_interest[0]) - type, detail = type_detail if type == WE_COMMAND and detail == WC_TAB and \ len(self.keybd_interest) > 1: self.next_keybd_focus() return - self.keybd_focus.keybd(type_detail) + self.keybd_focus.keybd(type, detail) # def timer(self): for child in self.timer_interest: @@ -206,7 +205,7 @@ class Split: # def change(self, area): self.parent.change(area) - def scroll(self, area_vector): - self.parent.scroll(area_vector) + def scroll(self, area, vector): + self.parent.scroll(area, vector) def settimer(self, itimer): self.parent.settimer(itimer) |