added hasclosebox attr (jstrout) -- jvr
This commit is contained in:
parent
aaa0d9a3a4
commit
fc372aae48
|
@ -33,6 +33,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
|
||||||
self._drawwidgetbounds = 0
|
self._drawwidgetbounds = 0
|
||||||
self._show = show
|
self._show = show
|
||||||
self._lastrollover = None
|
self._lastrollover = None
|
||||||
|
self.hasclosebox = 1
|
||||||
# XXX the following is not really compatible with the
|
# XXX the following is not really compatible with the
|
||||||
# new (system >= 7.5) window procs.
|
# new (system >= 7.5) window procs.
|
||||||
if minsize:
|
if minsize:
|
||||||
|
@ -89,7 +90,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
self.wid = Win.NewCWindow(self._globalbounds, self.title, self._show,
|
self.wid = Win.NewCWindow(self._globalbounds, self.title, self._show,
|
||||||
self.windowkind, -1, 1, 0)
|
self.windowkind, -1, self.hasclosebox, 0)
|
||||||
self.SetPort()
|
self.SetPort()
|
||||||
fnum = Fm.GetFNum("Python-Sans")
|
fnum = Fm.GetFNum("Python-Sans")
|
||||||
if fnum == 0:
|
if fnum == 0:
|
||||||
|
|
Loading…
Reference in New Issue