From: Jack Jansen Date: Sun, 29 Jul 2001 21:50:44 +0000 (+0000) Subject: These demos used silly refcon values when creating their windows. This effectuively... X-Git-Tag: v2.1.2c1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=082309391887febfc3f179f2639d6b1ac869c2a6;p=thirdparty%2FPython%2Fcpython.git These demos used silly refcon values when creating their windows. This effectuively caused Pythons automatic cleanup of windows on refcount reaching zero to be disabled. --- diff --git a/Mac/Demo/mlte/mlted.py b/Mac/Demo/mlte/mlted.py index 0f78693cee41..0f4672d38b05 100644 --- a/Mac/Demo/mlte/mlted.py +++ b/Mac/Demo/mlte/mlted.py @@ -24,7 +24,7 @@ class MlteWindow(Window): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w flags = MacTextEditor.kTXNDrawGrowIconMask|MacTextEditor.kTXNWantHScrollBarMask| \ MacTextEditor.kTXNWantVScrollBarMask diff --git a/Mac/Demo/textedit/ped.py b/Mac/Demo/textedit/ped.py index 9b222a361834..23e258e33f3e 100644 --- a/Mac/Demo/textedit/ped.py +++ b/Mac/Demo/textedit/ped.py @@ -19,7 +19,7 @@ class TEWindow(ScrolledWindow): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w x0, y0, x1, y1 = self.wid.GetWindowPort().portRect x0 = x0 + 4 diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py index 764394747417..c73fa569d61a 100644 --- a/Mac/Demo/waste/htmled.py +++ b/Mac/Demo/waste/htmled.py @@ -47,7 +47,7 @@ class WasteWindow(ScrolledWindow): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w vr = LEFTMARGIN, 0, r[2]-r[0]-15, r[3]-r[1]-15 dr = (0, 0, vr[2], 0) diff --git a/Mac/Demo/waste/swed.py b/Mac/Demo/waste/swed.py index b62fd9ae747e..b7ecd93a3df0 100644 --- a/Mac/Demo/waste/swed.py +++ b/Mac/Demo/waste/swed.py @@ -34,7 +34,7 @@ class WasteWindow(ScrolledWindow): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w vr = 0, 0, r[2]-r[0]-15, r[3]-r[1]-15 dr = (0, 0, 10240, 0) diff --git a/Mac/Demo/waste/wed.py b/Mac/Demo/waste/wed.py index 7b408648fda5..cdc10b253ad5 100644 --- a/Mac/Demo/waste/wed.py +++ b/Mac/Demo/waste/wed.py @@ -25,7 +25,7 @@ class WasteWindow(ScrolledWindow): self.path = path self.name = name r = windowbounds(400, 400) - w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) + w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w vr = 0, 0, r[2]-r[0]-15, r[3]-r[1]-15 dr = (0, 0, 10240, 0)