def __init__(self,this):
self.this = this
self.thisown = 0
- def FromXFontName(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_FromXFontName,(self,) + _args, _kwargs)
+ def Init(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_Init,(self,) + _args, _kwargs)
return val
- def IsDefault(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_IsDefault,(self,) + _args, _kwargs)
+ def GetPointSize(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetPointSize,(self,) + _args, _kwargs)
return val
- def GetXFontName(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetXFontName,(self,) + _args, _kwargs)
+ def GetStyle(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetStyle,(self,) + _args, _kwargs)
return val
- def SetXFontName(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetXFontName,(self,) + _args, _kwargs)
+ def GetWeight(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetWeight,(self,) + _args, _kwargs)
return val
- def Init(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_Init,(self,) + _args, _kwargs)
+ def GetUnderlined(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetUnderlined,(self,) + _args, _kwargs)
+ return val
+ def GetFaceName(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetFaceName,(self,) + _args, _kwargs)
+ return val
+ def GetFamily(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetFamily,(self,) + _args, _kwargs)
+ return val
+ def GetEncoding(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_GetEncoding,(self,) + _args, _kwargs)
+ return val
+ def SetPointSize(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetPointSize,(self,) + _args, _kwargs)
+ return val
+ def SetStyle(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetStyle,(self,) + _args, _kwargs)
+ return val
+ def SetWeight(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetWeight,(self,) + _args, _kwargs)
+ return val
+ def SetUnderlined(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetUnderlined,(self,) + _args, _kwargs)
+ return val
+ def SetFaceName(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetFaceName,(self,) + _args, _kwargs)
+ return val
+ def SetFamily(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetFamily,(self,) + _args, _kwargs)
+ return val
+ def SetEncoding(self, *_args, **_kwargs):
+ val = apply(fontsc.wxNativeFontInfo_SetEncoding,(self,) + _args, _kwargs)
return val
def FromString(self, *_args, **_kwargs):
val = apply(fontsc.wxNativeFontInfo_FromString,(self,) + _args, _kwargs)
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,fontsc=fontsc):
- if self.thisown == 1 :
- fontsc.delete_wxFontMapper(self)
+ def __del__(self, delfunc=fontsc.delete_wxFontMapper):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def GetAltForEncoding(self, *_args, **_kwargs):
val = apply(fontsc.wxFontMapper_GetAltForEncoding,(self,) + _args, _kwargs)
return val
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,fontsc=fontsc):
- if self.thisown == 1 :
- fontsc.delete_wxFont(self)
+ def wxFontFromNativeInfoString(self, *_args, **_kwargs):
+ val = apply(fontsc.wxFont_wxFontFromNativeInfoString,(self,) + _args, _kwargs)
+ if val: val = wxFontPtr(val) ; val.thisown = 1
+ return val
+ def __del__(self, delfunc=fontsc.delete_wxFont):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def Ok(self, *_args, **_kwargs):
val = apply(fontsc.wxFont_Ok,(self,) + _args, _kwargs)
return val
def GetWeightString(self, *_args, **_kwargs):
val = apply(fontsc.wxFont_GetWeightString,(self,) + _args, _kwargs)
return val
+ def SetNoAntiAliasing(self, *_args, **_kwargs):
+ val = apply(fontsc.wxFont_SetNoAntiAliasing,(self,) + _args, _kwargs)
+ return val
+ def GetNoAntiAliasing(self, *_args, **_kwargs):
+ val = apply(fontsc.wxFont_GetNoAntiAliasing,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxFont instance at %s>" % (self.this,)
class wxFont(wxFontPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,fontsc=fontsc):
- if self.thisown == 1 :
- fontsc.delete_wxFontEnumerator(self)
+ def __del__(self, delfunc=fontsc.delete_wxFontEnumerator):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def _setCallbackInfo(self, *_args, **_kwargs):
val = apply(fontsc.wxFontEnumerator__setCallbackInfo,(self,) + _args, _kwargs)
return val
def __init__(self,this):
self.this = this
self.thisown = 0
- def Init(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_Init,(self,) + _args, _kwargs)
+ def __del__(self, delfunc=fontsc.delete_wxLocale):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
+ def Init1(self, *_args, **_kwargs):
+ val = apply(fontsc.wxLocale_Init1,(self,) + _args, _kwargs)
+ return val
+ def Init2(self, *_args, **_kwargs):
+ val = apply(fontsc.wxLocale_Init2,(self,) + _args, _kwargs)
return val
- def __del__(self,fontsc=fontsc):
- if self.thisown == 1 :
- fontsc.delete_wxLocale(self)
def IsOk(self, *_args, **_kwargs):
val = apply(fontsc.wxLocale_IsOk,(self,) + _args, _kwargs)
return val
return val
def __repr__(self):
return "<C wxLocale instance at %s>" % (self.this,)
+
+ def Init(self, *_args, **_kwargs):
+ if type(_args[0]) in [type(''), type(u'')]:
+ val = apply(self.Init1, _args, _kwargs)
+ else:
+ val = apply(self.Init2, _args, _kwargs)
+ return val
+
class wxLocale(wxLocalePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(fontsc.new_wxLocale,_args,_kwargs)
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,fontsc=fontsc):
- if self.thisown == 1 :
- fontsc.delete_wxEncodingConverter(self)
+ def __del__(self, delfunc=fontsc.delete_wxEncodingConverter):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def Init(self, *_args, **_kwargs):
val = apply(fontsc.wxEncodingConverter_Init,(self,) + _args, _kwargs)
return val
wxFONTENCODING_CP12_MAX = fontsc.wxFONTENCODING_CP12_MAX
wxFONTENCODING_UTF7 = fontsc.wxFONTENCODING_UTF7
wxFONTENCODING_UTF8 = fontsc.wxFONTENCODING_UTF8
+wxFONTENCODING_GB2312 = fontsc.wxFONTENCODING_GB2312
+wxFONTENCODING_BIG5 = fontsc.wxFONTENCODING_BIG5
+wxFONTENCODING_SHIFT_JIS = fontsc.wxFONTENCODING_SHIFT_JIS
+wxFONTENCODING_EUC_JP = fontsc.wxFONTENCODING_EUC_JP
wxFONTENCODING_UNICODE = fontsc.wxFONTENCODING_UNICODE
wxFONTENCODING_MAX = fontsc.wxFONTENCODING_MAX
wxLANGUAGE_DEFAULT = fontsc.wxLANGUAGE_DEFAULT