Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc372aa

Browse files
author
Just van Rossum
committed
added hasclosebox attr (jstrout) -- jvr
1 parent aaa0d9a commit fc372aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mac/Tools/IDE/Wwindows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __init__(self, possize, title = "", minsize = None, maxsize = None, tabbable
3333
self._drawwidgetbounds = 0
3434
self._show = show
3535
self._lastrollover = None
36+
self.hasclosebox = 1
3637
# XXX the following is not really compatible with the
3738
# new (system >= 7.5) window procs.
3839
if minsize:
@@ -89,7 +90,7 @@ def select(self):
8990

9091
def open(self):
9192
self.wid = Win.NewCWindow(self._globalbounds, self.title, self._show,
92-
self.windowkind, -1, 1, 0)
93+
self.windowkind, -1, self.hasclosebox, 0)
9394
self.SetPort()
9495
fnum = Fm.GetFNum("Python-Sans")
9596
if fnum == 0:

0 commit comments

Comments
 (0)