reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4958,6 +4958,13 @@ class PyOnDemandOutputWindow:
|
|||||||
EVT_CLOSE(self.frame, self.OnCloseWindow)
|
EVT_CLOSE(self.frame, self.OnCloseWindow)
|
||||||
|
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
if self.frame is not None:
|
||||||
|
self.frame.Destroy()
|
||||||
|
self.frame = None
|
||||||
|
self.text = None
|
||||||
|
|
||||||
|
|
||||||
# These methods provide the file-like output behaviour.
|
# These methods provide the file-like output behaviour.
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
"""
|
"""
|
||||||
@@ -4982,11 +4989,6 @@ class PyOnDemandOutputWindow:
|
|||||||
wx.CallAfter(self.frame.Close)
|
wx.CallAfter(self.frame.Close)
|
||||||
|
|
||||||
|
|
||||||
def OnCloseWindow(self, event):
|
|
||||||
if self.frame is not None:
|
|
||||||
self.frame.Destroy()
|
|
||||||
self.frame = None
|
|
||||||
self.text = None
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -5060,7 +5062,7 @@ your Mac."""
|
|||||||
self.RestoreStdio()
|
self.RestoreStdio()
|
||||||
|
|
||||||
|
|
||||||
def RedirectStdio(self, filename):
|
def RedirectStdio(self, filename=None):
|
||||||
"""Redirect sys.stdout and sys.stderr to a file or a popup window."""
|
"""Redirect sys.stdout and sys.stderr to a file or a popup window."""
|
||||||
if filename:
|
if filename:
|
||||||
_sys.stdout = _sys.stderr = open(filename, 'a')
|
_sys.stdout = _sys.stderr = open(filename, 'a')
|
||||||
@@ -8131,6 +8133,8 @@ class SizerItem(Object):
|
|||||||
"""GetProportion() -> int"""
|
"""GetProportion() -> int"""
|
||||||
return _core.SizerItem_GetProportion(*args, **kwargs)
|
return _core.SizerItem_GetProportion(*args, **kwargs)
|
||||||
|
|
||||||
|
SetOption = SetProportion
|
||||||
|
GetOption = GetProportion
|
||||||
def SetFlag(*args, **kwargs):
|
def SetFlag(*args, **kwargs):
|
||||||
"""SetFlag(int flag)"""
|
"""SetFlag(int flag)"""
|
||||||
return _core.SizerItem_SetFlag(*args, **kwargs)
|
return _core.SizerItem_SetFlag(*args, **kwargs)
|
||||||
|
@@ -4958,6 +4958,13 @@ class PyOnDemandOutputWindow:
|
|||||||
EVT_CLOSE(self.frame, self.OnCloseWindow)
|
EVT_CLOSE(self.frame, self.OnCloseWindow)
|
||||||
|
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
if self.frame is not None:
|
||||||
|
self.frame.Destroy()
|
||||||
|
self.frame = None
|
||||||
|
self.text = None
|
||||||
|
|
||||||
|
|
||||||
# These methods provide the file-like output behaviour.
|
# These methods provide the file-like output behaviour.
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
"""
|
"""
|
||||||
@@ -4982,11 +4989,6 @@ class PyOnDemandOutputWindow:
|
|||||||
wx.CallAfter(self.frame.Close)
|
wx.CallAfter(self.frame.Close)
|
||||||
|
|
||||||
|
|
||||||
def OnCloseWindow(self, event):
|
|
||||||
if self.frame is not None:
|
|
||||||
self.frame.Destroy()
|
|
||||||
self.frame = None
|
|
||||||
self.text = None
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -5060,7 +5062,7 @@ your Mac."""
|
|||||||
self.RestoreStdio()
|
self.RestoreStdio()
|
||||||
|
|
||||||
|
|
||||||
def RedirectStdio(self, filename):
|
def RedirectStdio(self, filename=None):
|
||||||
"""Redirect sys.stdout and sys.stderr to a file or a popup window."""
|
"""Redirect sys.stdout and sys.stderr to a file or a popup window."""
|
||||||
if filename:
|
if filename:
|
||||||
_sys.stdout = _sys.stderr = open(filename, 'a')
|
_sys.stdout = _sys.stderr = open(filename, 'a')
|
||||||
@@ -8131,6 +8133,8 @@ class SizerItem(Object):
|
|||||||
"""GetProportion() -> int"""
|
"""GetProportion() -> int"""
|
||||||
return _core.SizerItem_GetProportion(*args, **kwargs)
|
return _core.SizerItem_GetProportion(*args, **kwargs)
|
||||||
|
|
||||||
|
SetOption = SetProportion
|
||||||
|
GetOption = GetProportion
|
||||||
def SetFlag(*args, **kwargs):
|
def SetFlag(*args, **kwargs):
|
||||||
"""SetFlag(int flag)"""
|
"""SetFlag(int flag)"""
|
||||||
return _core.SizerItem_SetFlag(*args, **kwargs)
|
return _core.SizerItem_SetFlag(*args, **kwargs)
|
||||||
|
Reference in New Issue
Block a user