def _setOORInfo(*args, **kwargs):
"""_setOORInfo(self, PyObject _self, bool incref=True)"""
val = _core_.EvtHandler__setOORInfo(*args, **kwargs)
- args[0].thisown = 0
+ args[0].this.own(False)
return val
def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
def SetUseBestVisual(*args, **kwargs):
"""
- SetUseBestVisual(self, bool flag)
+ SetUseBestVisual(self, bool flag, bool forceTrueColour=False)
Set whether the app should try to use the best available visual on
systems where more than one is available, (Sun, SGI, XFree86 4, etc.)
"""
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)
def Insert(*args, **kwargs):
"""
- Insert(self, String item, unsigned int pos, PyObject clientData=None) -> int
+ Insert(self, String item, int pos, PyObject clientData=None) -> int
Insert an item into the control before the item at the ``pos`` index,
optionally associating some data object with the item.
def Delete(*args, **kwargs):
"""
- Delete(self, unsigned int n)
+ Delete(self, int n)
Deletes the item at the zero-based index 'n' from the control. Note
that it is an error (signalled by a `wx.PyAssertionError` exception if
def GetClientData(*args, **kwargs):
"""
- GetClientData(self, unsigned int n) -> PyObject
+ GetClientData(self, int n) -> PyObject
Returns the client data associated with the given item, (if any.)
"""
def SetClientData(*args, **kwargs):
"""
- SetClientData(self, unsigned int n, PyObject clientData)
+ SetClientData(self, int n, PyObject clientData)
Associate the given client data with the item at position n.
"""
def GetCount(*args, **kwargs):
"""
- GetCount(self) -> unsigned int
+ GetCount(self) -> int
Returns the number of items in the control.
"""
def GetString(*args, **kwargs):
"""
- GetString(self, unsigned int n) -> String
+ GetString(self, int n) -> String
Returns the label of the item with the given index.
"""
def SetString(*args, **kwargs):
"""
- SetString(self, unsigned int n, String s)
+ SetString(self, int n, String s)
Sets the label for the given item.
"""
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()