diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/lib-stdwin/WindowParent.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/lib-stdwin/WindowParent.py')
-rw-r--r-- | Lib/lib-stdwin/WindowParent.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/lib-stdwin/WindowParent.py b/Lib/lib-stdwin/WindowParent.py index a0593c5..697ed07 100644 --- a/Lib/lib-stdwin/WindowParent.py +++ b/Lib/lib-stdwin/WindowParent.py @@ -149,26 +149,26 @@ class WindowParent(ManageOneChild): # Only call dispatch once we are realized # def dispatch(self, (type, win, detail)): - if type = WE_DRAW: + if type == WE_DRAW: d = self.win.begindrawing() self.child.draw(d, detail) del d if self.do_altdraw: self.child.altdraw(detail) - elif type = WE_MOUSE_DOWN: + elif type == WE_MOUSE_DOWN: if self.do_mouse: self.child.mouse_down(detail) - elif type = WE_MOUSE_MOVE: + elif type == WE_MOUSE_MOVE: if self.do_mouse: self.child.mouse_move(detail) - elif type = WE_MOUSE_UP: + elif type == WE_MOUSE_UP: if self.do_mouse: self.child.mouse_up(detail) elif type in (WE_CHAR, WE_COMMAND): if self.do_keybd: self.child.keybd(type, detail) - elif type = WE_TIMER: + elif type == WE_TIMER: if self.do_timer: self.child.timer() - elif type = WE_SIZE: + elif type == WE_SIZE: self.fixup() - elif type = WE_CLOSE: + elif type == WE_CLOSE: self.close_trigger() - elif type = WE_MENU: + elif type == WE_MENU: self.menu_trigger(detail) if self.pending_destroy: self.destroy() |