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/stdwin/TextEdit.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/stdwin/TextEdit.py')
-rwxr-xr-x | Lib/stdwin/TextEdit.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/stdwin/TextEdit.py b/Lib/stdwin/TextEdit.py index 698a7d5..e08e496 100755 --- a/Lib/stdwin/TextEdit.py +++ b/Lib/stdwin/TextEdit.py @@ -7,7 +7,7 @@ from stdwinevents import * class TextEdit: # - def create(self, (parent, (cols, rows))): + def create(self, parent, (cols, rows)): parent.addchild(self) self.parent = parent self.cols = cols @@ -18,7 +18,7 @@ class TextEdit: self.dh = self.dv = 0 return self # - def createboxed(self, (parent, (cols, rows), (dh, dv))): + def createboxed(self, parent, (cols, rows), (dh, dv)): self = self.create(parent, (cols, rows)) self.dh = max(0, dh) self.dv = max(0, dv) @@ -37,7 +37,7 @@ class TextEdit: del self.editor del self.window # - def getminsize(self, (m, (width, height))): + def getminsize(self, m, (width, height)): width = max(0, width - 2*self.dh) height = max(0, height - 2*self.dv) if width > 0 and self.editor: @@ -96,7 +96,7 @@ class TextEdit: self.parent.need_keybd(self) self.parent.need_altdraw(self) # - def draw(self, (d, area)): + def draw(self, d, area): if self.dh and self.dv: d.box(self.bounds) # @@ -114,7 +114,7 @@ class TextEdit: def mouse_up(self, detail): x = self.editor.event(WE_MOUSE_UP, self.window, detail) # - def keybd(self, (type, detail)): + def keybd(self, type, detail): x = self.editor.event(type, self.window, detail) # def activate(self): |