Raise(self)
Raises the window to the top of the window hierarchy. In current
- version of wxWidgets this works both for manage and child windows.
+ version of wxWidgets this works both for managed and child windows.
"""
return _core_.Window_Raise(*args, **kwargs)
Lower(self)
Lowers the window to the bottom of the window hierarchy. In current
- version of wxWidgets this works both for manage and child windows.
+ version of wxWidgets this works both for managed and child windows.
"""
return _core_.Window_Lower(*args, **kwargs)
"""
return _core_.Window_GetVirtualSizeTuple(*args, **kwargs)
+ def GetWindowBorderSize(*args, **kwargs):
+ """
+ GetWindowBorderSize(self) -> Size
+
+ Return the size of the left/right and top/bottom borders.
+ """
+ return _core_.Window_GetWindowBorderSize(*args, **kwargs)
+
def GetBestVirtualSize(*args, **kwargs):
"""
GetBestVirtualSize(self) -> Size
"""
return _core_.Window_IsRetained(*args, **kwargs)
+ def ToggleWindowStyle(*args, **kwargs):
+ """
+ ToggleWindowStyle(self, int flag) -> bool
+
+ Turn the flag on if it had been turned off before and vice versa,
+ returns True if the flag is turned on by this function call.
+ """
+ return _core_.Window_ToggleWindowStyle(*args, **kwargs)
+
def SetExtraStyle(*args, **kwargs):
"""
SetExtraStyle(self, long exStyle)
import locale
import codecs
try:
- default = locale.getdefaultlocale()[1]
+ if hasattr(locale, 'getpreferredencoding'):
+ default = locale.getpreferredencoding()
+ else:
+ default = locale.getdefaultlocale()[1]
codecs.lookup(default)
except (ValueError, LookupError, TypeError):
default = _sys.getdefaultencoding()