* 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!
diff --git a/Lib/lib-stdwin/WindowParent.py b/Lib/lib-stdwin/WindowParent.py
index 697ed07..1964d38 100644
--- a/Lib/lib-stdwin/WindowParent.py
+++ b/Lib/lib-stdwin/WindowParent.py
@@ -14,7 +14,7 @@
class WindowParent(ManageOneChild):
#
- def create(self, (title, size)):
+ def create(self, title, size):
self.title = title
self.size = size # (width, height)
self._reset()
@@ -47,7 +47,7 @@
def close_trigger(self):
if self.close_hook: self.close_hook(self)
#
- def menu_trigger(self, (menu, item)):
+ def menu_trigger(self, menu, item):
if self.menu_hook:
self.menu_hook(self, menu, item)
#
@@ -94,7 +94,7 @@
width = self.size[0]
if self.vbar:
height = self.size[1]
- self.child.setbounds((0, 0), (width, height))
+ self.child.setbounds(((0, 0), (width, height)))
self.child.realize()
self.win.dispatch = self.dispatch
mainloop.register(self.win)
@@ -109,7 +109,7 @@
width = self.size[0]
if self.vbar:
height = self.size[1]
- self.child.setbounds((0, 0), (width, height))
+ self.child.setbounds(((0, 0), (width, height)))
# Force a redraw of the entire window:
self.win.change((0, 0), self.size)
#