reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
377d47bdf1
commit
cfe5e918e6
2881
wxPython/contrib/stc/gtk/stc.py
Normal file
2881
wxPython/contrib/stc/gtk/stc.py
Normal file
File diff suppressed because it is too large
Load Diff
16398
wxPython/contrib/stc/gtk/stc_wrap.cpp
Normal file
16398
wxPython/contrib/stc/gtk/stc_wrap.cpp
Normal file
File diff suppressed because one or more lines are too long
2881
wxPython/contrib/stc/msw/stc.py
Normal file
2881
wxPython/contrib/stc/msw/stc.py
Normal file
File diff suppressed because it is too large
Load Diff
16398
wxPython/contrib/stc/msw/stc_wrap.cpp
Normal file
16398
wxPython/contrib/stc/msw/stc_wrap.cpp
Normal file
File diff suppressed because one or more lines are too long
686
wxPython/contrib/xrc/gtk/xrc.py
Normal file
686
wxPython/contrib/xrc/gtk/xrc.py
Normal file
@ -0,0 +1,686 @@
|
||||
# This file was created automatically by SWIG.
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
|
||||
import _xrc
|
||||
|
||||
import core
|
||||
wx = core
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
WX_XMLRES_CURRENT_VERSION_MAJOR = _xrc.WX_XMLRES_CURRENT_VERSION_MAJOR
|
||||
WX_XMLRES_CURRENT_VERSION_MINOR = _xrc.WX_XMLRES_CURRENT_VERSION_MINOR
|
||||
WX_XMLRES_CURRENT_VERSION_RELEASE = _xrc.WX_XMLRES_CURRENT_VERSION_RELEASE
|
||||
WX_XMLRES_CURRENT_VERSION_REVISION = _xrc.WX_XMLRES_CURRENT_VERSION_REVISION
|
||||
XRC_USE_LOCALE = _xrc.XRC_USE_LOCALE
|
||||
XRC_NO_SUBCLASSING = _xrc.XRC_NO_SUBCLASSING
|
||||
class XmlResource(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(String filemask, int flags=XRC_USE_LOCALE) -> XmlResource"""
|
||||
newobj = _xrc.new_XmlResource(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self.InitAllHandlers()
|
||||
|
||||
def __del__(self, destroy=_xrc.delete_XmlResource):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Load(*args, **kwargs):
|
||||
"""Load(String filemask) -> bool"""
|
||||
return _xrc.XmlResource_Load(*args, **kwargs)
|
||||
|
||||
def LoadFromString(*args, **kwargs):
|
||||
"""LoadFromString(String data) -> bool"""
|
||||
return _xrc.XmlResource_LoadFromString(*args, **kwargs)
|
||||
|
||||
def InitAllHandlers(*args, **kwargs):
|
||||
"""InitAllHandlers()"""
|
||||
return _xrc.XmlResource_InitAllHandlers(*args, **kwargs)
|
||||
|
||||
def AddHandler(*args, **kwargs):
|
||||
"""AddHandler(XmlResourceHandler handler)"""
|
||||
return _xrc.XmlResource_AddHandler(*args, **kwargs)
|
||||
|
||||
def InsertHandler(*args, **kwargs):
|
||||
"""InsertHandler(XmlResourceHandler handler)"""
|
||||
return _xrc.XmlResource_InsertHandler(*args, **kwargs)
|
||||
|
||||
def ClearHandlers(*args, **kwargs):
|
||||
"""ClearHandlers()"""
|
||||
return _xrc.XmlResource_ClearHandlers(*args, **kwargs)
|
||||
|
||||
def AddSubclassFactory(*args, **kwargs):
|
||||
"""AddSubclassFactory(XmlSubclassFactory factory)"""
|
||||
return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
|
||||
|
||||
AddSubclassFactory = staticmethod(AddSubclassFactory)
|
||||
def LoadMenu(*args, **kwargs):
|
||||
"""LoadMenu(String name) -> Menu"""
|
||||
return _xrc.XmlResource_LoadMenu(*args, **kwargs)
|
||||
|
||||
def LoadMenuBar(*args, **kwargs):
|
||||
"""LoadMenuBar(String name) -> MenuBar"""
|
||||
return _xrc.XmlResource_LoadMenuBar(*args, **kwargs)
|
||||
|
||||
def LoadMenuBarOnFrame(*args, **kwargs):
|
||||
"""LoadMenuBarOnFrame(Window parent, String name) -> MenuBar"""
|
||||
return _xrc.XmlResource_LoadMenuBarOnFrame(*args, **kwargs)
|
||||
|
||||
def LoadToolBar(*args, **kwargs):
|
||||
"""LoadToolBar(Window parent, String name) -> wxToolBar"""
|
||||
return _xrc.XmlResource_LoadToolBar(*args, **kwargs)
|
||||
|
||||
def LoadDialog(*args, **kwargs):
|
||||
"""LoadDialog(Window parent, String name) -> wxDialog"""
|
||||
return _xrc.XmlResource_LoadDialog(*args, **kwargs)
|
||||
|
||||
def LoadOnDialog(*args, **kwargs):
|
||||
"""LoadOnDialog(wxDialog dlg, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnDialog(*args, **kwargs)
|
||||
|
||||
def LoadPanel(*args, **kwargs):
|
||||
"""LoadPanel(Window parent, String name) -> wxPanel"""
|
||||
return _xrc.XmlResource_LoadPanel(*args, **kwargs)
|
||||
|
||||
def LoadOnPanel(*args, **kwargs):
|
||||
"""LoadOnPanel(wxPanel panel, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnPanel(*args, **kwargs)
|
||||
|
||||
def LoadFrame(*args, **kwargs):
|
||||
"""LoadFrame(Window parent, String name) -> wxFrame"""
|
||||
return _xrc.XmlResource_LoadFrame(*args, **kwargs)
|
||||
|
||||
def LoadOnFrame(*args, **kwargs):
|
||||
"""LoadOnFrame(wxFrame frame, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnFrame(*args, **kwargs)
|
||||
|
||||
def LoadObject(*args, **kwargs):
|
||||
"""LoadObject(Window parent, String name, String classname) -> Object"""
|
||||
return _xrc.XmlResource_LoadObject(*args, **kwargs)
|
||||
|
||||
def LoadOnObject(*args, **kwargs):
|
||||
"""LoadOnObject(Object instance, Window parent, String name, String classname) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnObject(*args, **kwargs)
|
||||
|
||||
def LoadBitmap(*args, **kwargs):
|
||||
"""LoadBitmap(String name) -> Bitmap"""
|
||||
return _xrc.XmlResource_LoadBitmap(*args, **kwargs)
|
||||
|
||||
def LoadIcon(*args, **kwargs):
|
||||
"""LoadIcon(String name) -> Icon"""
|
||||
return _xrc.XmlResource_LoadIcon(*args, **kwargs)
|
||||
|
||||
def AttachUnknownControl(*args, **kwargs):
|
||||
"""AttachUnknownControl(String name, Window control, Window parent=None) -> bool"""
|
||||
return _xrc.XmlResource_AttachUnknownControl(*args, **kwargs)
|
||||
|
||||
def GetXRCID(*args, **kwargs):
|
||||
"""GetXRCID(String str_id) -> int"""
|
||||
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
|
||||
|
||||
GetXRCID = staticmethod(GetXRCID)
|
||||
def GetVersion(*args, **kwargs):
|
||||
"""GetVersion() -> long"""
|
||||
return _xrc.XmlResource_GetVersion(*args, **kwargs)
|
||||
|
||||
def CompareVersion(*args, **kwargs):
|
||||
"""CompareVersion(int major, int minor, int release, int revision) -> int"""
|
||||
return _xrc.XmlResource_CompareVersion(*args, **kwargs)
|
||||
|
||||
def Get(*args, **kwargs):
|
||||
"""Get() -> XmlResource"""
|
||||
return _xrc.XmlResource_Get(*args, **kwargs)
|
||||
|
||||
Get = staticmethod(Get)
|
||||
def Set(*args, **kwargs):
|
||||
"""Set(XmlResource res) -> XmlResource"""
|
||||
return _xrc.XmlResource_Set(*args, **kwargs)
|
||||
|
||||
Set = staticmethod(Set)
|
||||
def GetFlags(*args, **kwargs):
|
||||
"""GetFlags() -> int"""
|
||||
return _xrc.XmlResource_GetFlags(*args, **kwargs)
|
||||
|
||||
def SetFlags(*args, **kwargs):
|
||||
"""SetFlags(int flags)"""
|
||||
return _xrc.XmlResource_SetFlags(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlResourcePtr(XmlResource):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlResource
|
||||
_xrc.XmlResource_swigregister(XmlResourcePtr)
|
||||
cvar = _xrc.cvar
|
||||
UTF8String = cvar.UTF8String
|
||||
StyleString = cvar.StyleString
|
||||
SizeString = cvar.SizeString
|
||||
PosString = cvar.PosString
|
||||
BitmapString = cvar.BitmapString
|
||||
IconString = cvar.IconString
|
||||
FontString = cvar.FontString
|
||||
|
||||
def EmptyXmlResource(*args, **kwargs):
|
||||
"""EmptyXmlResource(int flags=XRC_USE_LOCALE) -> XmlResource"""
|
||||
val = _xrc.new_EmptyXmlResource(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
val.InitAllHandlers()
|
||||
return val
|
||||
|
||||
def XmlResource_AddSubclassFactory(*args, **kwargs):
|
||||
"""XmlResource_AddSubclassFactory(XmlSubclassFactory factory)"""
|
||||
return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
|
||||
|
||||
def XmlResource_GetXRCID(*args, **kwargs):
|
||||
"""XmlResource_GetXRCID(String str_id) -> int"""
|
||||
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
|
||||
|
||||
def XmlResource_Get(*args, **kwargs):
|
||||
"""XmlResource_Get() -> XmlResource"""
|
||||
return _xrc.XmlResource_Get(*args, **kwargs)
|
||||
|
||||
def XmlResource_Set(*args, **kwargs):
|
||||
"""XmlResource_Set(XmlResource res) -> XmlResource"""
|
||||
return _xrc.XmlResource_Set(*args, **kwargs)
|
||||
|
||||
def XRCID(str_id):
|
||||
return XmlResource_GetXRCID(str_id)
|
||||
|
||||
def XRCCTRL(window, str_id, *ignoreargs):
|
||||
return window.FindWindowById(XRCID(str_id))
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class XmlSubclassFactory(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyXmlSubclassFactory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> XmlSubclassFactory"""
|
||||
newobj = _xrc.new_XmlSubclassFactory(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, XmlSubclassFactory)
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class)"""
|
||||
return _xrc.XmlSubclassFactory__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlSubclassFactoryPtr(XmlSubclassFactory):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlSubclassFactory
|
||||
_xrc.XmlSubclassFactory_swigregister(XmlSubclassFactoryPtr)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
XML_ELEMENT_NODE = _xrc.XML_ELEMENT_NODE
|
||||
XML_ATTRIBUTE_NODE = _xrc.XML_ATTRIBUTE_NODE
|
||||
XML_TEXT_NODE = _xrc.XML_TEXT_NODE
|
||||
XML_CDATA_SECTION_NODE = _xrc.XML_CDATA_SECTION_NODE
|
||||
XML_ENTITY_REF_NODE = _xrc.XML_ENTITY_REF_NODE
|
||||
XML_ENTITY_NODE = _xrc.XML_ENTITY_NODE
|
||||
XML_PI_NODE = _xrc.XML_PI_NODE
|
||||
XML_COMMENT_NODE = _xrc.XML_COMMENT_NODE
|
||||
XML_DOCUMENT_NODE = _xrc.XML_DOCUMENT_NODE
|
||||
XML_DOCUMENT_TYPE_NODE = _xrc.XML_DOCUMENT_TYPE_NODE
|
||||
XML_DOCUMENT_FRAG_NODE = _xrc.XML_DOCUMENT_FRAG_NODE
|
||||
XML_NOTATION_NODE = _xrc.XML_NOTATION_NODE
|
||||
XML_HTML_DOCUMENT_NODE = _xrc.XML_HTML_DOCUMENT_NODE
|
||||
class XmlProperty(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlProperty instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(String name=EmptyString, String value=EmptyString,
|
||||
XmlProperty next=None) -> XmlProperty
|
||||
"""
|
||||
newobj = _xrc.new_XmlProperty(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlProperty_GetName(*args, **kwargs)
|
||||
|
||||
def GetValue(*args, **kwargs):
|
||||
"""GetValue() -> String"""
|
||||
return _xrc.XmlProperty_GetValue(*args, **kwargs)
|
||||
|
||||
def GetNext(*args, **kwargs):
|
||||
"""GetNext() -> XmlProperty"""
|
||||
return _xrc.XmlProperty_GetNext(*args, **kwargs)
|
||||
|
||||
def SetName(*args, **kwargs):
|
||||
"""SetName(String name)"""
|
||||
return _xrc.XmlProperty_SetName(*args, **kwargs)
|
||||
|
||||
def SetValue(*args, **kwargs):
|
||||
"""SetValue(String value)"""
|
||||
return _xrc.XmlProperty_SetValue(*args, **kwargs)
|
||||
|
||||
def SetNext(*args, **kwargs):
|
||||
"""SetNext(XmlProperty next)"""
|
||||
return _xrc.XmlProperty_SetNext(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlPropertyPtr(XmlProperty):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlProperty
|
||||
_xrc.XmlProperty_swigregister(XmlPropertyPtr)
|
||||
|
||||
class XmlNode(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlNode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(XmlNode parent=None, int type=0, String name=EmptyString,
|
||||
String content=EmptyString, XmlProperty props=None,
|
||||
XmlNode next=None) -> XmlNode
|
||||
"""
|
||||
newobj = _xrc.new_XmlNode(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_xrc.delete_XmlNode):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def AddChild(*args, **kwargs):
|
||||
"""AddChild(XmlNode child)"""
|
||||
return _xrc.XmlNode_AddChild(*args, **kwargs)
|
||||
|
||||
def InsertChild(*args, **kwargs):
|
||||
"""InsertChild(XmlNode child, XmlNode before_node)"""
|
||||
return _xrc.XmlNode_InsertChild(*args, **kwargs)
|
||||
|
||||
def RemoveChild(*args, **kwargs):
|
||||
"""RemoveChild(XmlNode child) -> bool"""
|
||||
return _xrc.XmlNode_RemoveChild(*args, **kwargs)
|
||||
|
||||
def AddProperty(*args, **kwargs):
|
||||
"""AddProperty(XmlProperty prop)"""
|
||||
return _xrc.XmlNode_AddProperty(*args, **kwargs)
|
||||
|
||||
def AddPropertyName(*args, **kwargs):
|
||||
"""AddPropertyName(String name, String value)"""
|
||||
return _xrc.XmlNode_AddPropertyName(*args, **kwargs)
|
||||
|
||||
def DeleteProperty(*args, **kwargs):
|
||||
"""DeleteProperty(String name) -> bool"""
|
||||
return _xrc.XmlNode_DeleteProperty(*args, **kwargs)
|
||||
|
||||
def GetType(*args, **kwargs):
|
||||
"""GetType() -> int"""
|
||||
return _xrc.XmlNode_GetType(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlNode_GetName(*args, **kwargs)
|
||||
|
||||
def GetContent(*args, **kwargs):
|
||||
"""GetContent() -> String"""
|
||||
return _xrc.XmlNode_GetContent(*args, **kwargs)
|
||||
|
||||
def GetParent(*args, **kwargs):
|
||||
"""GetParent() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetParent(*args, **kwargs)
|
||||
|
||||
def GetNext(*args, **kwargs):
|
||||
"""GetNext() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetNext(*args, **kwargs)
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""GetChildren() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetChildren(*args, **kwargs)
|
||||
|
||||
def GetProperties(*args, **kwargs):
|
||||
"""GetProperties() -> XmlProperty"""
|
||||
return _xrc.XmlNode_GetProperties(*args, **kwargs)
|
||||
|
||||
def GetPropVal(*args, **kwargs):
|
||||
"""GetPropVal(String propName, String defaultVal) -> String"""
|
||||
return _xrc.XmlNode_GetPropVal(*args, **kwargs)
|
||||
|
||||
def HasProp(*args, **kwargs):
|
||||
"""HasProp(String propName) -> bool"""
|
||||
return _xrc.XmlNode_HasProp(*args, **kwargs)
|
||||
|
||||
def SetType(*args, **kwargs):
|
||||
"""SetType(int type)"""
|
||||
return _xrc.XmlNode_SetType(*args, **kwargs)
|
||||
|
||||
def SetName(*args, **kwargs):
|
||||
"""SetName(String name)"""
|
||||
return _xrc.XmlNode_SetName(*args, **kwargs)
|
||||
|
||||
def SetContent(*args, **kwargs):
|
||||
"""SetContent(String con)"""
|
||||
return _xrc.XmlNode_SetContent(*args, **kwargs)
|
||||
|
||||
def SetParent(*args, **kwargs):
|
||||
"""SetParent(XmlNode parent)"""
|
||||
return _xrc.XmlNode_SetParent(*args, **kwargs)
|
||||
|
||||
def SetNext(*args, **kwargs):
|
||||
"""SetNext(XmlNode next)"""
|
||||
return _xrc.XmlNode_SetNext(*args, **kwargs)
|
||||
|
||||
def SetChildren(*args, **kwargs):
|
||||
"""SetChildren(XmlNode child)"""
|
||||
return _xrc.XmlNode_SetChildren(*args, **kwargs)
|
||||
|
||||
def SetProperties(*args, **kwargs):
|
||||
"""SetProperties(XmlProperty prop)"""
|
||||
return _xrc.XmlNode_SetProperties(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlNodePtr(XmlNode):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlNode
|
||||
_xrc.XmlNode_swigregister(XmlNodePtr)
|
||||
|
||||
def XmlNodeEasy(*args, **kwargs):
|
||||
"""XmlNodeEasy(int type, String name, String content=EmptyString) -> XmlNode"""
|
||||
val = _xrc.new_XmlNodeEasy(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class XmlDocument(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(String filename, String encoding=UTF8String) -> XmlDocument"""
|
||||
newobj = _xrc.new_XmlDocument(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_xrc.delete_XmlDocument):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Load(*args, **kwargs):
|
||||
"""Load(String filename, String encoding=UTF8String) -> bool"""
|
||||
return _xrc.XmlDocument_Load(*args, **kwargs)
|
||||
|
||||
def LoadFromStream(*args, **kwargs):
|
||||
"""LoadFromStream(InputStream stream, String encoding=UTF8String) -> bool"""
|
||||
return _xrc.XmlDocument_LoadFromStream(*args, **kwargs)
|
||||
|
||||
def Save(*args, **kwargs):
|
||||
"""Save(String filename) -> bool"""
|
||||
return _xrc.XmlDocument_Save(*args, **kwargs)
|
||||
|
||||
def SaveToStream(*args, **kwargs):
|
||||
"""SaveToStream(OutputStream stream) -> bool"""
|
||||
return _xrc.XmlDocument_SaveToStream(*args, **kwargs)
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk() -> bool"""
|
||||
return _xrc.XmlDocument_IsOk(*args, **kwargs)
|
||||
|
||||
def GetRoot(*args, **kwargs):
|
||||
"""GetRoot() -> XmlNode"""
|
||||
return _xrc.XmlDocument_GetRoot(*args, **kwargs)
|
||||
|
||||
def GetVersion(*args, **kwargs):
|
||||
"""GetVersion() -> String"""
|
||||
return _xrc.XmlDocument_GetVersion(*args, **kwargs)
|
||||
|
||||
def GetFileEncoding(*args, **kwargs):
|
||||
"""GetFileEncoding() -> String"""
|
||||
return _xrc.XmlDocument_GetFileEncoding(*args, **kwargs)
|
||||
|
||||
def SetRoot(*args, **kwargs):
|
||||
"""SetRoot(XmlNode node)"""
|
||||
return _xrc.XmlDocument_SetRoot(*args, **kwargs)
|
||||
|
||||
def SetVersion(*args, **kwargs):
|
||||
"""SetVersion(String version)"""
|
||||
return _xrc.XmlDocument_SetVersion(*args, **kwargs)
|
||||
|
||||
def SetFileEncoding(*args, **kwargs):
|
||||
"""SetFileEncoding(String encoding)"""
|
||||
return _xrc.XmlDocument_SetFileEncoding(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlDocumentPtr(XmlDocument):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlDocument
|
||||
_xrc.XmlDocument_swigregister(XmlDocumentPtr)
|
||||
|
||||
def XmlDocumentFromStream(*args, **kwargs):
|
||||
"""XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument"""
|
||||
val = _xrc.new_XmlDocumentFromStream(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def EmptyXmlDocument(*args, **kwargs):
|
||||
"""EmptyXmlDocument() -> XmlDocument"""
|
||||
val = _xrc.new_EmptyXmlDocument(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class XmlResourceHandler(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> XmlResourceHandler"""
|
||||
newobj = _xrc.new_XmlResourceHandler(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, XmlResourceHandler)
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class)"""
|
||||
return _xrc.XmlResourceHandler__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
def CreateResource(*args, **kwargs):
|
||||
"""CreateResource(XmlNode node, Object parent, Object instance) -> Object"""
|
||||
return _xrc.XmlResourceHandler_CreateResource(*args, **kwargs)
|
||||
|
||||
def SetParentResource(*args, **kwargs):
|
||||
"""SetParentResource(XmlResource res)"""
|
||||
return _xrc.XmlResourceHandler_SetParentResource(*args, **kwargs)
|
||||
|
||||
def GetResource(*args, **kwargs):
|
||||
"""GetResource() -> XmlResource"""
|
||||
return _xrc.XmlResourceHandler_GetResource(*args, **kwargs)
|
||||
|
||||
def GetNode(*args, **kwargs):
|
||||
"""GetNode() -> XmlNode"""
|
||||
return _xrc.XmlResourceHandler_GetNode(*args, **kwargs)
|
||||
|
||||
def GetClass(*args, **kwargs):
|
||||
"""GetClass() -> String"""
|
||||
return _xrc.XmlResourceHandler_GetClass(*args, **kwargs)
|
||||
|
||||
def GetParent(*args, **kwargs):
|
||||
"""GetParent() -> Object"""
|
||||
return _xrc.XmlResourceHandler_GetParent(*args, **kwargs)
|
||||
|
||||
def GetInstance(*args, **kwargs):
|
||||
"""GetInstance() -> Object"""
|
||||
return _xrc.XmlResourceHandler_GetInstance(*args, **kwargs)
|
||||
|
||||
def GetParentAsWindow(*args, **kwargs):
|
||||
"""GetParentAsWindow() -> Window"""
|
||||
return _xrc.XmlResourceHandler_GetParentAsWindow(*args, **kwargs)
|
||||
|
||||
def GetInstanceAsWindow(*args, **kwargs):
|
||||
"""GetInstanceAsWindow() -> Window"""
|
||||
return _xrc.XmlResourceHandler_GetInstanceAsWindow(*args, **kwargs)
|
||||
|
||||
def IsOfClass(*args, **kwargs):
|
||||
"""IsOfClass(XmlNode node, String classname) -> bool"""
|
||||
return _xrc.XmlResourceHandler_IsOfClass(*args, **kwargs)
|
||||
|
||||
def GetNodeContent(*args, **kwargs):
|
||||
"""GetNodeContent(XmlNode node) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetNodeContent(*args, **kwargs)
|
||||
|
||||
def HasParam(*args, **kwargs):
|
||||
"""HasParam(String param) -> bool"""
|
||||
return _xrc.XmlResourceHandler_HasParam(*args, **kwargs)
|
||||
|
||||
def GetParamNode(*args, **kwargs):
|
||||
"""GetParamNode(String param) -> XmlNode"""
|
||||
return _xrc.XmlResourceHandler_GetParamNode(*args, **kwargs)
|
||||
|
||||
def GetParamValue(*args, **kwargs):
|
||||
"""GetParamValue(String param) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetParamValue(*args, **kwargs)
|
||||
|
||||
def AddStyle(*args, **kwargs):
|
||||
"""AddStyle(String name, int value)"""
|
||||
return _xrc.XmlResourceHandler_AddStyle(*args, **kwargs)
|
||||
|
||||
def AddWindowStyles(*args, **kwargs):
|
||||
"""AddWindowStyles()"""
|
||||
return _xrc.XmlResourceHandler_AddWindowStyles(*args, **kwargs)
|
||||
|
||||
def GetStyle(*args, **kwargs):
|
||||
"""GetStyle(String param=StyleString, int defaults=0) -> int"""
|
||||
return _xrc.XmlResourceHandler_GetStyle(*args, **kwargs)
|
||||
|
||||
def GetText(*args, **kwargs):
|
||||
"""GetText(String param, bool translate=True) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetText(*args, **kwargs)
|
||||
|
||||
def GetID(*args, **kwargs):
|
||||
"""GetID() -> int"""
|
||||
return _xrc.XmlResourceHandler_GetID(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlResourceHandler_GetName(*args, **kwargs)
|
||||
|
||||
def GetBool(*args, **kwargs):
|
||||
"""GetBool(String param, bool defaultv=False) -> bool"""
|
||||
return _xrc.XmlResourceHandler_GetBool(*args, **kwargs)
|
||||
|
||||
def GetLong(*args, **kwargs):
|
||||
"""GetLong(String param, long defaultv=0) -> long"""
|
||||
return _xrc.XmlResourceHandler_GetLong(*args, **kwargs)
|
||||
|
||||
def GetColour(*args, **kwargs):
|
||||
"""GetColour(String param) -> Colour"""
|
||||
return _xrc.XmlResourceHandler_GetColour(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize(String param=SizeString) -> Size"""
|
||||
return _xrc.XmlResourceHandler_GetSize(*args, **kwargs)
|
||||
|
||||
def GetPosition(*args, **kwargs):
|
||||
"""GetPosition(String param=PosString) -> Point"""
|
||||
return _xrc.XmlResourceHandler_GetPosition(*args, **kwargs)
|
||||
|
||||
def GetDimension(*args, **kwargs):
|
||||
"""GetDimension(String param, int defaultv=0) -> int"""
|
||||
return _xrc.XmlResourceHandler_GetDimension(*args, **kwargs)
|
||||
|
||||
def GetBitmap(*args, **kwargs):
|
||||
"""
|
||||
GetBitmap(String param=BitmapString, wxArtClient defaultArtClient=wxART_OTHER,
|
||||
Size size=DefaultSize) -> Bitmap
|
||||
"""
|
||||
return _xrc.XmlResourceHandler_GetBitmap(*args, **kwargs)
|
||||
|
||||
def GetIcon(*args, **kwargs):
|
||||
"""
|
||||
GetIcon(String param=IconString, wxArtClient defaultArtClient=wxART_OTHER,
|
||||
Size size=DefaultSize) -> Icon
|
||||
"""
|
||||
return _xrc.XmlResourceHandler_GetIcon(*args, **kwargs)
|
||||
|
||||
def GetFont(*args, **kwargs):
|
||||
"""GetFont(String param=FontString) -> Font"""
|
||||
return _xrc.XmlResourceHandler_GetFont(*args, **kwargs)
|
||||
|
||||
def SetupWindow(*args, **kwargs):
|
||||
"""SetupWindow(Window wnd)"""
|
||||
return _xrc.XmlResourceHandler_SetupWindow(*args, **kwargs)
|
||||
|
||||
def CreateChildren(*args, **kwargs):
|
||||
"""CreateChildren(Object parent, bool this_hnd_only=False)"""
|
||||
return _xrc.XmlResourceHandler_CreateChildren(*args, **kwargs)
|
||||
|
||||
def CreateChildrenPrivately(*args, **kwargs):
|
||||
"""CreateChildrenPrivately(Object parent, XmlNode rootnode=None)"""
|
||||
return _xrc.XmlResourceHandler_CreateChildrenPrivately(*args, **kwargs)
|
||||
|
||||
def CreateResFromNode(*args, **kwargs):
|
||||
"""CreateResFromNode(XmlNode node, Object parent, Object instance=None) -> Object"""
|
||||
return _xrc.XmlResourceHandler_CreateResFromNode(*args, **kwargs)
|
||||
|
||||
def GetCurFileSystem(*args, **kwargs):
|
||||
"""GetCurFileSystem() -> FileSystem"""
|
||||
return _xrc.XmlResourceHandler_GetCurFileSystem(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlResourceHandlerPtr(XmlResourceHandler):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlResourceHandler
|
||||
_xrc.XmlResourceHandler_swigregister(XmlResourceHandlerPtr)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# The global was removed in favor of static accessor functions. This is for
|
||||
# backwards compatibility:
|
||||
|
||||
TheXmlResource = XmlResource_Get()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Create a factory for handling the subclass property of the object tag.
|
||||
|
||||
|
||||
def _my_import(name):
|
||||
mod = __import__(name)
|
||||
components = name.split('.')
|
||||
for comp in components[1:]:
|
||||
mod = getattr(mod, comp)
|
||||
return mod
|
||||
|
||||
|
||||
class XmlSubclassFactory_Python(XmlSubclassFactory):
|
||||
def __init__(self):
|
||||
XmlSubclassFactory.__init__(self)
|
||||
|
||||
def Create(self, className):
|
||||
assert className.find('.') != -1, "Module name must be specified!"
|
||||
mname = className[:className.rfind('.')]
|
||||
cname = className[className.rfind('.')+1:]
|
||||
module = _my_import(mname)
|
||||
klass = getattr(module, cname)
|
||||
inst = klass()
|
||||
return inst
|
||||
|
||||
|
||||
XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
5780
wxPython/contrib/xrc/gtk/xrc_wrap.cpp
Normal file
5780
wxPython/contrib/xrc/gtk/xrc_wrap.cpp
Normal file
File diff suppressed because one or more lines are too long
686
wxPython/contrib/xrc/msw/xrc.py
Normal file
686
wxPython/contrib/xrc/msw/xrc.py
Normal file
@ -0,0 +1,686 @@
|
||||
# This file was created automatically by SWIG.
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
|
||||
import _xrc
|
||||
|
||||
import core
|
||||
wx = core
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
WX_XMLRES_CURRENT_VERSION_MAJOR = _xrc.WX_XMLRES_CURRENT_VERSION_MAJOR
|
||||
WX_XMLRES_CURRENT_VERSION_MINOR = _xrc.WX_XMLRES_CURRENT_VERSION_MINOR
|
||||
WX_XMLRES_CURRENT_VERSION_RELEASE = _xrc.WX_XMLRES_CURRENT_VERSION_RELEASE
|
||||
WX_XMLRES_CURRENT_VERSION_REVISION = _xrc.WX_XMLRES_CURRENT_VERSION_REVISION
|
||||
XRC_USE_LOCALE = _xrc.XRC_USE_LOCALE
|
||||
XRC_NO_SUBCLASSING = _xrc.XRC_NO_SUBCLASSING
|
||||
class XmlResource(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(String filemask, int flags=XRC_USE_LOCALE) -> XmlResource"""
|
||||
newobj = _xrc.new_XmlResource(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self.InitAllHandlers()
|
||||
|
||||
def __del__(self, destroy=_xrc.delete_XmlResource):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Load(*args, **kwargs):
|
||||
"""Load(String filemask) -> bool"""
|
||||
return _xrc.XmlResource_Load(*args, **kwargs)
|
||||
|
||||
def LoadFromString(*args, **kwargs):
|
||||
"""LoadFromString(String data) -> bool"""
|
||||
return _xrc.XmlResource_LoadFromString(*args, **kwargs)
|
||||
|
||||
def InitAllHandlers(*args, **kwargs):
|
||||
"""InitAllHandlers()"""
|
||||
return _xrc.XmlResource_InitAllHandlers(*args, **kwargs)
|
||||
|
||||
def AddHandler(*args, **kwargs):
|
||||
"""AddHandler(XmlResourceHandler handler)"""
|
||||
return _xrc.XmlResource_AddHandler(*args, **kwargs)
|
||||
|
||||
def InsertHandler(*args, **kwargs):
|
||||
"""InsertHandler(XmlResourceHandler handler)"""
|
||||
return _xrc.XmlResource_InsertHandler(*args, **kwargs)
|
||||
|
||||
def ClearHandlers(*args, **kwargs):
|
||||
"""ClearHandlers()"""
|
||||
return _xrc.XmlResource_ClearHandlers(*args, **kwargs)
|
||||
|
||||
def AddSubclassFactory(*args, **kwargs):
|
||||
"""AddSubclassFactory(XmlSubclassFactory factory)"""
|
||||
return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
|
||||
|
||||
AddSubclassFactory = staticmethod(AddSubclassFactory)
|
||||
def LoadMenu(*args, **kwargs):
|
||||
"""LoadMenu(String name) -> Menu"""
|
||||
return _xrc.XmlResource_LoadMenu(*args, **kwargs)
|
||||
|
||||
def LoadMenuBar(*args, **kwargs):
|
||||
"""LoadMenuBar(String name) -> MenuBar"""
|
||||
return _xrc.XmlResource_LoadMenuBar(*args, **kwargs)
|
||||
|
||||
def LoadMenuBarOnFrame(*args, **kwargs):
|
||||
"""LoadMenuBarOnFrame(Window parent, String name) -> MenuBar"""
|
||||
return _xrc.XmlResource_LoadMenuBarOnFrame(*args, **kwargs)
|
||||
|
||||
def LoadToolBar(*args, **kwargs):
|
||||
"""LoadToolBar(Window parent, String name) -> wxToolBar"""
|
||||
return _xrc.XmlResource_LoadToolBar(*args, **kwargs)
|
||||
|
||||
def LoadDialog(*args, **kwargs):
|
||||
"""LoadDialog(Window parent, String name) -> wxDialog"""
|
||||
return _xrc.XmlResource_LoadDialog(*args, **kwargs)
|
||||
|
||||
def LoadOnDialog(*args, **kwargs):
|
||||
"""LoadOnDialog(wxDialog dlg, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnDialog(*args, **kwargs)
|
||||
|
||||
def LoadPanel(*args, **kwargs):
|
||||
"""LoadPanel(Window parent, String name) -> wxPanel"""
|
||||
return _xrc.XmlResource_LoadPanel(*args, **kwargs)
|
||||
|
||||
def LoadOnPanel(*args, **kwargs):
|
||||
"""LoadOnPanel(wxPanel panel, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnPanel(*args, **kwargs)
|
||||
|
||||
def LoadFrame(*args, **kwargs):
|
||||
"""LoadFrame(Window parent, String name) -> wxFrame"""
|
||||
return _xrc.XmlResource_LoadFrame(*args, **kwargs)
|
||||
|
||||
def LoadOnFrame(*args, **kwargs):
|
||||
"""LoadOnFrame(wxFrame frame, Window parent, String name) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnFrame(*args, **kwargs)
|
||||
|
||||
def LoadObject(*args, **kwargs):
|
||||
"""LoadObject(Window parent, String name, String classname) -> Object"""
|
||||
return _xrc.XmlResource_LoadObject(*args, **kwargs)
|
||||
|
||||
def LoadOnObject(*args, **kwargs):
|
||||
"""LoadOnObject(Object instance, Window parent, String name, String classname) -> bool"""
|
||||
return _xrc.XmlResource_LoadOnObject(*args, **kwargs)
|
||||
|
||||
def LoadBitmap(*args, **kwargs):
|
||||
"""LoadBitmap(String name) -> Bitmap"""
|
||||
return _xrc.XmlResource_LoadBitmap(*args, **kwargs)
|
||||
|
||||
def LoadIcon(*args, **kwargs):
|
||||
"""LoadIcon(String name) -> Icon"""
|
||||
return _xrc.XmlResource_LoadIcon(*args, **kwargs)
|
||||
|
||||
def AttachUnknownControl(*args, **kwargs):
|
||||
"""AttachUnknownControl(String name, Window control, Window parent=None) -> bool"""
|
||||
return _xrc.XmlResource_AttachUnknownControl(*args, **kwargs)
|
||||
|
||||
def GetXRCID(*args, **kwargs):
|
||||
"""GetXRCID(String str_id) -> int"""
|
||||
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
|
||||
|
||||
GetXRCID = staticmethod(GetXRCID)
|
||||
def GetVersion(*args, **kwargs):
|
||||
"""GetVersion() -> long"""
|
||||
return _xrc.XmlResource_GetVersion(*args, **kwargs)
|
||||
|
||||
def CompareVersion(*args, **kwargs):
|
||||
"""CompareVersion(int major, int minor, int release, int revision) -> int"""
|
||||
return _xrc.XmlResource_CompareVersion(*args, **kwargs)
|
||||
|
||||
def Get(*args, **kwargs):
|
||||
"""Get() -> XmlResource"""
|
||||
return _xrc.XmlResource_Get(*args, **kwargs)
|
||||
|
||||
Get = staticmethod(Get)
|
||||
def Set(*args, **kwargs):
|
||||
"""Set(XmlResource res) -> XmlResource"""
|
||||
return _xrc.XmlResource_Set(*args, **kwargs)
|
||||
|
||||
Set = staticmethod(Set)
|
||||
def GetFlags(*args, **kwargs):
|
||||
"""GetFlags() -> int"""
|
||||
return _xrc.XmlResource_GetFlags(*args, **kwargs)
|
||||
|
||||
def SetFlags(*args, **kwargs):
|
||||
"""SetFlags(int flags)"""
|
||||
return _xrc.XmlResource_SetFlags(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlResourcePtr(XmlResource):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlResource
|
||||
_xrc.XmlResource_swigregister(XmlResourcePtr)
|
||||
cvar = _xrc.cvar
|
||||
UTF8String = cvar.UTF8String
|
||||
StyleString = cvar.StyleString
|
||||
SizeString = cvar.SizeString
|
||||
PosString = cvar.PosString
|
||||
BitmapString = cvar.BitmapString
|
||||
IconString = cvar.IconString
|
||||
FontString = cvar.FontString
|
||||
|
||||
def EmptyXmlResource(*args, **kwargs):
|
||||
"""EmptyXmlResource(int flags=XRC_USE_LOCALE) -> XmlResource"""
|
||||
val = _xrc.new_EmptyXmlResource(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
val.InitAllHandlers()
|
||||
return val
|
||||
|
||||
def XmlResource_AddSubclassFactory(*args, **kwargs):
|
||||
"""XmlResource_AddSubclassFactory(XmlSubclassFactory factory)"""
|
||||
return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
|
||||
|
||||
def XmlResource_GetXRCID(*args, **kwargs):
|
||||
"""XmlResource_GetXRCID(String str_id) -> int"""
|
||||
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
|
||||
|
||||
def XmlResource_Get(*args, **kwargs):
|
||||
"""XmlResource_Get() -> XmlResource"""
|
||||
return _xrc.XmlResource_Get(*args, **kwargs)
|
||||
|
||||
def XmlResource_Set(*args, **kwargs):
|
||||
"""XmlResource_Set(XmlResource res) -> XmlResource"""
|
||||
return _xrc.XmlResource_Set(*args, **kwargs)
|
||||
|
||||
def XRCID(str_id):
|
||||
return XmlResource_GetXRCID(str_id)
|
||||
|
||||
def XRCCTRL(window, str_id, *ignoreargs):
|
||||
return window.FindWindowById(XRCID(str_id))
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class XmlSubclassFactory(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyXmlSubclassFactory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> XmlSubclassFactory"""
|
||||
newobj = _xrc.new_XmlSubclassFactory(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, XmlSubclassFactory)
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class)"""
|
||||
return _xrc.XmlSubclassFactory__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlSubclassFactoryPtr(XmlSubclassFactory):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlSubclassFactory
|
||||
_xrc.XmlSubclassFactory_swigregister(XmlSubclassFactoryPtr)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
XML_ELEMENT_NODE = _xrc.XML_ELEMENT_NODE
|
||||
XML_ATTRIBUTE_NODE = _xrc.XML_ATTRIBUTE_NODE
|
||||
XML_TEXT_NODE = _xrc.XML_TEXT_NODE
|
||||
XML_CDATA_SECTION_NODE = _xrc.XML_CDATA_SECTION_NODE
|
||||
XML_ENTITY_REF_NODE = _xrc.XML_ENTITY_REF_NODE
|
||||
XML_ENTITY_NODE = _xrc.XML_ENTITY_NODE
|
||||
XML_PI_NODE = _xrc.XML_PI_NODE
|
||||
XML_COMMENT_NODE = _xrc.XML_COMMENT_NODE
|
||||
XML_DOCUMENT_NODE = _xrc.XML_DOCUMENT_NODE
|
||||
XML_DOCUMENT_TYPE_NODE = _xrc.XML_DOCUMENT_TYPE_NODE
|
||||
XML_DOCUMENT_FRAG_NODE = _xrc.XML_DOCUMENT_FRAG_NODE
|
||||
XML_NOTATION_NODE = _xrc.XML_NOTATION_NODE
|
||||
XML_HTML_DOCUMENT_NODE = _xrc.XML_HTML_DOCUMENT_NODE
|
||||
class XmlProperty(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlProperty instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(String name=EmptyString, String value=EmptyString,
|
||||
XmlProperty next=None) -> XmlProperty
|
||||
"""
|
||||
newobj = _xrc.new_XmlProperty(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlProperty_GetName(*args, **kwargs)
|
||||
|
||||
def GetValue(*args, **kwargs):
|
||||
"""GetValue() -> String"""
|
||||
return _xrc.XmlProperty_GetValue(*args, **kwargs)
|
||||
|
||||
def GetNext(*args, **kwargs):
|
||||
"""GetNext() -> XmlProperty"""
|
||||
return _xrc.XmlProperty_GetNext(*args, **kwargs)
|
||||
|
||||
def SetName(*args, **kwargs):
|
||||
"""SetName(String name)"""
|
||||
return _xrc.XmlProperty_SetName(*args, **kwargs)
|
||||
|
||||
def SetValue(*args, **kwargs):
|
||||
"""SetValue(String value)"""
|
||||
return _xrc.XmlProperty_SetValue(*args, **kwargs)
|
||||
|
||||
def SetNext(*args, **kwargs):
|
||||
"""SetNext(XmlProperty next)"""
|
||||
return _xrc.XmlProperty_SetNext(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlPropertyPtr(XmlProperty):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlProperty
|
||||
_xrc.XmlProperty_swigregister(XmlPropertyPtr)
|
||||
|
||||
class XmlNode(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlNode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(XmlNode parent=None, int type=0, String name=EmptyString,
|
||||
String content=EmptyString, XmlProperty props=None,
|
||||
XmlNode next=None) -> XmlNode
|
||||
"""
|
||||
newobj = _xrc.new_XmlNode(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_xrc.delete_XmlNode):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def AddChild(*args, **kwargs):
|
||||
"""AddChild(XmlNode child)"""
|
||||
return _xrc.XmlNode_AddChild(*args, **kwargs)
|
||||
|
||||
def InsertChild(*args, **kwargs):
|
||||
"""InsertChild(XmlNode child, XmlNode before_node)"""
|
||||
return _xrc.XmlNode_InsertChild(*args, **kwargs)
|
||||
|
||||
def RemoveChild(*args, **kwargs):
|
||||
"""RemoveChild(XmlNode child) -> bool"""
|
||||
return _xrc.XmlNode_RemoveChild(*args, **kwargs)
|
||||
|
||||
def AddProperty(*args, **kwargs):
|
||||
"""AddProperty(XmlProperty prop)"""
|
||||
return _xrc.XmlNode_AddProperty(*args, **kwargs)
|
||||
|
||||
def AddPropertyName(*args, **kwargs):
|
||||
"""AddPropertyName(String name, String value)"""
|
||||
return _xrc.XmlNode_AddPropertyName(*args, **kwargs)
|
||||
|
||||
def DeleteProperty(*args, **kwargs):
|
||||
"""DeleteProperty(String name) -> bool"""
|
||||
return _xrc.XmlNode_DeleteProperty(*args, **kwargs)
|
||||
|
||||
def GetType(*args, **kwargs):
|
||||
"""GetType() -> int"""
|
||||
return _xrc.XmlNode_GetType(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlNode_GetName(*args, **kwargs)
|
||||
|
||||
def GetContent(*args, **kwargs):
|
||||
"""GetContent() -> String"""
|
||||
return _xrc.XmlNode_GetContent(*args, **kwargs)
|
||||
|
||||
def GetParent(*args, **kwargs):
|
||||
"""GetParent() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetParent(*args, **kwargs)
|
||||
|
||||
def GetNext(*args, **kwargs):
|
||||
"""GetNext() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetNext(*args, **kwargs)
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""GetChildren() -> XmlNode"""
|
||||
return _xrc.XmlNode_GetChildren(*args, **kwargs)
|
||||
|
||||
def GetProperties(*args, **kwargs):
|
||||
"""GetProperties() -> XmlProperty"""
|
||||
return _xrc.XmlNode_GetProperties(*args, **kwargs)
|
||||
|
||||
def GetPropVal(*args, **kwargs):
|
||||
"""GetPropVal(String propName, String defaultVal) -> String"""
|
||||
return _xrc.XmlNode_GetPropVal(*args, **kwargs)
|
||||
|
||||
def HasProp(*args, **kwargs):
|
||||
"""HasProp(String propName) -> bool"""
|
||||
return _xrc.XmlNode_HasProp(*args, **kwargs)
|
||||
|
||||
def SetType(*args, **kwargs):
|
||||
"""SetType(int type)"""
|
||||
return _xrc.XmlNode_SetType(*args, **kwargs)
|
||||
|
||||
def SetName(*args, **kwargs):
|
||||
"""SetName(String name)"""
|
||||
return _xrc.XmlNode_SetName(*args, **kwargs)
|
||||
|
||||
def SetContent(*args, **kwargs):
|
||||
"""SetContent(String con)"""
|
||||
return _xrc.XmlNode_SetContent(*args, **kwargs)
|
||||
|
||||
def SetParent(*args, **kwargs):
|
||||
"""SetParent(XmlNode parent)"""
|
||||
return _xrc.XmlNode_SetParent(*args, **kwargs)
|
||||
|
||||
def SetNext(*args, **kwargs):
|
||||
"""SetNext(XmlNode next)"""
|
||||
return _xrc.XmlNode_SetNext(*args, **kwargs)
|
||||
|
||||
def SetChildren(*args, **kwargs):
|
||||
"""SetChildren(XmlNode child)"""
|
||||
return _xrc.XmlNode_SetChildren(*args, **kwargs)
|
||||
|
||||
def SetProperties(*args, **kwargs):
|
||||
"""SetProperties(XmlProperty prop)"""
|
||||
return _xrc.XmlNode_SetProperties(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlNodePtr(XmlNode):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlNode
|
||||
_xrc.XmlNode_swigregister(XmlNodePtr)
|
||||
|
||||
def XmlNodeEasy(*args, **kwargs):
|
||||
"""XmlNodeEasy(int type, String name, String content=EmptyString) -> XmlNode"""
|
||||
val = _xrc.new_XmlNodeEasy(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class XmlDocument(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(String filename, String encoding=UTF8String) -> XmlDocument"""
|
||||
newobj = _xrc.new_XmlDocument(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_xrc.delete_XmlDocument):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Load(*args, **kwargs):
|
||||
"""Load(String filename, String encoding=UTF8String) -> bool"""
|
||||
return _xrc.XmlDocument_Load(*args, **kwargs)
|
||||
|
||||
def LoadFromStream(*args, **kwargs):
|
||||
"""LoadFromStream(InputStream stream, String encoding=UTF8String) -> bool"""
|
||||
return _xrc.XmlDocument_LoadFromStream(*args, **kwargs)
|
||||
|
||||
def Save(*args, **kwargs):
|
||||
"""Save(String filename) -> bool"""
|
||||
return _xrc.XmlDocument_Save(*args, **kwargs)
|
||||
|
||||
def SaveToStream(*args, **kwargs):
|
||||
"""SaveToStream(OutputStream stream) -> bool"""
|
||||
return _xrc.XmlDocument_SaveToStream(*args, **kwargs)
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk() -> bool"""
|
||||
return _xrc.XmlDocument_IsOk(*args, **kwargs)
|
||||
|
||||
def GetRoot(*args, **kwargs):
|
||||
"""GetRoot() -> XmlNode"""
|
||||
return _xrc.XmlDocument_GetRoot(*args, **kwargs)
|
||||
|
||||
def GetVersion(*args, **kwargs):
|
||||
"""GetVersion() -> String"""
|
||||
return _xrc.XmlDocument_GetVersion(*args, **kwargs)
|
||||
|
||||
def GetFileEncoding(*args, **kwargs):
|
||||
"""GetFileEncoding() -> String"""
|
||||
return _xrc.XmlDocument_GetFileEncoding(*args, **kwargs)
|
||||
|
||||
def SetRoot(*args, **kwargs):
|
||||
"""SetRoot(XmlNode node)"""
|
||||
return _xrc.XmlDocument_SetRoot(*args, **kwargs)
|
||||
|
||||
def SetVersion(*args, **kwargs):
|
||||
"""SetVersion(String version)"""
|
||||
return _xrc.XmlDocument_SetVersion(*args, **kwargs)
|
||||
|
||||
def SetFileEncoding(*args, **kwargs):
|
||||
"""SetFileEncoding(String encoding)"""
|
||||
return _xrc.XmlDocument_SetFileEncoding(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlDocumentPtr(XmlDocument):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlDocument
|
||||
_xrc.XmlDocument_swigregister(XmlDocumentPtr)
|
||||
|
||||
def XmlDocumentFromStream(*args, **kwargs):
|
||||
"""XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument"""
|
||||
val = _xrc.new_XmlDocumentFromStream(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def EmptyXmlDocument(*args, **kwargs):
|
||||
"""EmptyXmlDocument() -> XmlDocument"""
|
||||
val = _xrc.new_EmptyXmlDocument(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class XmlResourceHandler(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> XmlResourceHandler"""
|
||||
newobj = _xrc.new_XmlResourceHandler(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, XmlResourceHandler)
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class)"""
|
||||
return _xrc.XmlResourceHandler__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
def CreateResource(*args, **kwargs):
|
||||
"""CreateResource(XmlNode node, Object parent, Object instance) -> Object"""
|
||||
return _xrc.XmlResourceHandler_CreateResource(*args, **kwargs)
|
||||
|
||||
def SetParentResource(*args, **kwargs):
|
||||
"""SetParentResource(XmlResource res)"""
|
||||
return _xrc.XmlResourceHandler_SetParentResource(*args, **kwargs)
|
||||
|
||||
def GetResource(*args, **kwargs):
|
||||
"""GetResource() -> XmlResource"""
|
||||
return _xrc.XmlResourceHandler_GetResource(*args, **kwargs)
|
||||
|
||||
def GetNode(*args, **kwargs):
|
||||
"""GetNode() -> XmlNode"""
|
||||
return _xrc.XmlResourceHandler_GetNode(*args, **kwargs)
|
||||
|
||||
def GetClass(*args, **kwargs):
|
||||
"""GetClass() -> String"""
|
||||
return _xrc.XmlResourceHandler_GetClass(*args, **kwargs)
|
||||
|
||||
def GetParent(*args, **kwargs):
|
||||
"""GetParent() -> Object"""
|
||||
return _xrc.XmlResourceHandler_GetParent(*args, **kwargs)
|
||||
|
||||
def GetInstance(*args, **kwargs):
|
||||
"""GetInstance() -> Object"""
|
||||
return _xrc.XmlResourceHandler_GetInstance(*args, **kwargs)
|
||||
|
||||
def GetParentAsWindow(*args, **kwargs):
|
||||
"""GetParentAsWindow() -> Window"""
|
||||
return _xrc.XmlResourceHandler_GetParentAsWindow(*args, **kwargs)
|
||||
|
||||
def GetInstanceAsWindow(*args, **kwargs):
|
||||
"""GetInstanceAsWindow() -> Window"""
|
||||
return _xrc.XmlResourceHandler_GetInstanceAsWindow(*args, **kwargs)
|
||||
|
||||
def IsOfClass(*args, **kwargs):
|
||||
"""IsOfClass(XmlNode node, String classname) -> bool"""
|
||||
return _xrc.XmlResourceHandler_IsOfClass(*args, **kwargs)
|
||||
|
||||
def GetNodeContent(*args, **kwargs):
|
||||
"""GetNodeContent(XmlNode node) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetNodeContent(*args, **kwargs)
|
||||
|
||||
def HasParam(*args, **kwargs):
|
||||
"""HasParam(String param) -> bool"""
|
||||
return _xrc.XmlResourceHandler_HasParam(*args, **kwargs)
|
||||
|
||||
def GetParamNode(*args, **kwargs):
|
||||
"""GetParamNode(String param) -> XmlNode"""
|
||||
return _xrc.XmlResourceHandler_GetParamNode(*args, **kwargs)
|
||||
|
||||
def GetParamValue(*args, **kwargs):
|
||||
"""GetParamValue(String param) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetParamValue(*args, **kwargs)
|
||||
|
||||
def AddStyle(*args, **kwargs):
|
||||
"""AddStyle(String name, int value)"""
|
||||
return _xrc.XmlResourceHandler_AddStyle(*args, **kwargs)
|
||||
|
||||
def AddWindowStyles(*args, **kwargs):
|
||||
"""AddWindowStyles()"""
|
||||
return _xrc.XmlResourceHandler_AddWindowStyles(*args, **kwargs)
|
||||
|
||||
def GetStyle(*args, **kwargs):
|
||||
"""GetStyle(String param=StyleString, int defaults=0) -> int"""
|
||||
return _xrc.XmlResourceHandler_GetStyle(*args, **kwargs)
|
||||
|
||||
def GetText(*args, **kwargs):
|
||||
"""GetText(String param, bool translate=True) -> String"""
|
||||
return _xrc.XmlResourceHandler_GetText(*args, **kwargs)
|
||||
|
||||
def GetID(*args, **kwargs):
|
||||
"""GetID() -> int"""
|
||||
return _xrc.XmlResourceHandler_GetID(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""GetName() -> String"""
|
||||
return _xrc.XmlResourceHandler_GetName(*args, **kwargs)
|
||||
|
||||
def GetBool(*args, **kwargs):
|
||||
"""GetBool(String param, bool defaultv=False) -> bool"""
|
||||
return _xrc.XmlResourceHandler_GetBool(*args, **kwargs)
|
||||
|
||||
def GetLong(*args, **kwargs):
|
||||
"""GetLong(String param, long defaultv=0) -> long"""
|
||||
return _xrc.XmlResourceHandler_GetLong(*args, **kwargs)
|
||||
|
||||
def GetColour(*args, **kwargs):
|
||||
"""GetColour(String param) -> Colour"""
|
||||
return _xrc.XmlResourceHandler_GetColour(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize(String param=SizeString) -> Size"""
|
||||
return _xrc.XmlResourceHandler_GetSize(*args, **kwargs)
|
||||
|
||||
def GetPosition(*args, **kwargs):
|
||||
"""GetPosition(String param=PosString) -> Point"""
|
||||
return _xrc.XmlResourceHandler_GetPosition(*args, **kwargs)
|
||||
|
||||
def GetDimension(*args, **kwargs):
|
||||
"""GetDimension(String param, int defaultv=0) -> int"""
|
||||
return _xrc.XmlResourceHandler_GetDimension(*args, **kwargs)
|
||||
|
||||
def GetBitmap(*args, **kwargs):
|
||||
"""
|
||||
GetBitmap(String param=BitmapString, wxArtClient defaultArtClient=wxART_OTHER,
|
||||
Size size=DefaultSize) -> Bitmap
|
||||
"""
|
||||
return _xrc.XmlResourceHandler_GetBitmap(*args, **kwargs)
|
||||
|
||||
def GetIcon(*args, **kwargs):
|
||||
"""
|
||||
GetIcon(String param=IconString, wxArtClient defaultArtClient=wxART_OTHER,
|
||||
Size size=DefaultSize) -> Icon
|
||||
"""
|
||||
return _xrc.XmlResourceHandler_GetIcon(*args, **kwargs)
|
||||
|
||||
def GetFont(*args, **kwargs):
|
||||
"""GetFont(String param=FontString) -> Font"""
|
||||
return _xrc.XmlResourceHandler_GetFont(*args, **kwargs)
|
||||
|
||||
def SetupWindow(*args, **kwargs):
|
||||
"""SetupWindow(Window wnd)"""
|
||||
return _xrc.XmlResourceHandler_SetupWindow(*args, **kwargs)
|
||||
|
||||
def CreateChildren(*args, **kwargs):
|
||||
"""CreateChildren(Object parent, bool this_hnd_only=False)"""
|
||||
return _xrc.XmlResourceHandler_CreateChildren(*args, **kwargs)
|
||||
|
||||
def CreateChildrenPrivately(*args, **kwargs):
|
||||
"""CreateChildrenPrivately(Object parent, XmlNode rootnode=None)"""
|
||||
return _xrc.XmlResourceHandler_CreateChildrenPrivately(*args, **kwargs)
|
||||
|
||||
def CreateResFromNode(*args, **kwargs):
|
||||
"""CreateResFromNode(XmlNode node, Object parent, Object instance=None) -> Object"""
|
||||
return _xrc.XmlResourceHandler_CreateResFromNode(*args, **kwargs)
|
||||
|
||||
def GetCurFileSystem(*args, **kwargs):
|
||||
"""GetCurFileSystem() -> FileSystem"""
|
||||
return _xrc.XmlResourceHandler_GetCurFileSystem(*args, **kwargs)
|
||||
|
||||
|
||||
class XmlResourceHandlerPtr(XmlResourceHandler):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = XmlResourceHandler
|
||||
_xrc.XmlResourceHandler_swigregister(XmlResourceHandlerPtr)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# The global was removed in favor of static accessor functions. This is for
|
||||
# backwards compatibility:
|
||||
|
||||
TheXmlResource = XmlResource_Get()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Create a factory for handling the subclass property of the object tag.
|
||||
|
||||
|
||||
def _my_import(name):
|
||||
mod = __import__(name)
|
||||
components = name.split('.')
|
||||
for comp in components[1:]:
|
||||
mod = getattr(mod, comp)
|
||||
return mod
|
||||
|
||||
|
||||
class XmlSubclassFactory_Python(XmlSubclassFactory):
|
||||
def __init__(self):
|
||||
XmlSubclassFactory.__init__(self)
|
||||
|
||||
def Create(self, className):
|
||||
assert className.find('.') != -1, "Module name must be specified!"
|
||||
mname = className[:className.rfind('.')]
|
||||
cname = className[className.rfind('.')+1:]
|
||||
module = _my_import(mname)
|
||||
klass = getattr(module, cname)
|
||||
inst = klass()
|
||||
return inst
|
||||
|
||||
|
||||
XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
5780
wxPython/contrib/xrc/msw/xrc_wrap.cpp
Normal file
5780
wxPython/contrib/xrc/msw/xrc_wrap.cpp
Normal file
File diff suppressed because one or more lines are too long
@ -24,8 +24,8 @@ class Panel(core.Window):
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxTAB_TRAVERSAL|wxNO_BORDER,
|
||||
Create(Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
|
||||
String name=PanelNameStr) -> bool
|
||||
|
||||
Create the GUI part of the Window for 2-phase creation mode.
|
||||
|
@ -1378,7 +1378,7 @@ static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kw
|
||||
PyObject *resultobj;
|
||||
wxPanel *arg1 = (wxPanel *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
int arg3 ;
|
||||
int arg3 = (int) (int)-1 ;
|
||||
wxPoint const &arg4_defvalue = wxDefaultPosition ;
|
||||
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
|
||||
wxSize const &arg5_defvalue = wxDefaultSize ;
|
||||
@ -1401,13 +1401,15 @@ static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kw
|
||||
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
arg3 = (int const) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
if (obj2) {
|
||||
arg3 = (int const) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj3) {
|
||||
{
|
||||
arg4 = &temp4;
|
||||
|
@ -24,37 +24,12 @@ SIMPLE_BORDER = _core.SIMPLE_BORDER
|
||||
STATIC_BORDER = _core.STATIC_BORDER
|
||||
TRANSPARENT_WINDOW = _core.TRANSPARENT_WINDOW
|
||||
NO_BORDER = _core.NO_BORDER
|
||||
USER_COLOURS = _core.USER_COLOURS
|
||||
NO_3D = _core.NO_3D
|
||||
TAB_TRAVERSAL = _core.TAB_TRAVERSAL
|
||||
WANTS_CHARS = _core.WANTS_CHARS
|
||||
POPUP_WINDOW = _core.POPUP_WINDOW
|
||||
CENTER_FRAME = _core.CENTER_FRAME
|
||||
CENTRE_ON_SCREEN = _core.CENTRE_ON_SCREEN
|
||||
CENTER_ON_SCREEN = _core.CENTER_ON_SCREEN
|
||||
STAY_ON_TOP = _core.STAY_ON_TOP
|
||||
ICONIZE = _core.ICONIZE
|
||||
MINIMIZE = _core.MINIMIZE
|
||||
MAXIMIZE = _core.MAXIMIZE
|
||||
CLOSE_BOX = _core.CLOSE_BOX
|
||||
THICK_FRAME = _core.THICK_FRAME
|
||||
SYSTEM_MENU = _core.SYSTEM_MENU
|
||||
MINIMIZE_BOX = _core.MINIMIZE_BOX
|
||||
MAXIMIZE_BOX = _core.MAXIMIZE_BOX
|
||||
TINY_CAPTION_HORIZ = _core.TINY_CAPTION_HORIZ
|
||||
TINY_CAPTION_VERT = _core.TINY_CAPTION_VERT
|
||||
RESIZE_BOX = _core.RESIZE_BOX
|
||||
RESIZE_BORDER = _core.RESIZE_BORDER
|
||||
DIALOG_MODAL = _core.DIALOG_MODAL
|
||||
DIALOG_MODELESS = _core.DIALOG_MODELESS
|
||||
DIALOG_NO_PARENT = _core.DIALOG_NO_PARENT
|
||||
DEFAULT_FRAME_STYLE = _core.DEFAULT_FRAME_STYLE
|
||||
DEFAULT_DIALOG_STYLE = _core.DEFAULT_DIALOG_STYLE
|
||||
FRAME_TOOL_WINDOW = _core.FRAME_TOOL_WINDOW
|
||||
FRAME_FLOAT_ON_PARENT = _core.FRAME_FLOAT_ON_PARENT
|
||||
FRAME_NO_WINDOW_MENU = _core.FRAME_NO_WINDOW_MENU
|
||||
FRAME_NO_TASKBAR = _core.FRAME_NO_TASKBAR
|
||||
FRAME_SHAPED = _core.FRAME_SHAPED
|
||||
ED_CLIENT_MARGIN = _core.ED_CLIENT_MARGIN
|
||||
ED_BUTTONS_BOTTOM = _core.ED_BUTTONS_BOTTOM
|
||||
ED_BUTTONS_RIGHT = _core.ED_BUTTONS_RIGHT
|
||||
@ -285,7 +260,7 @@ SHRINK = _core.SHRINK
|
||||
GROW = _core.GROW
|
||||
EXPAND = _core.EXPAND
|
||||
SHAPED = _core.SHAPED
|
||||
FIXED_SIZE = _core.FIXED_SIZE
|
||||
FIXED_MINSIZE = _core.FIXED_MINSIZE
|
||||
TILE = _core.TILE
|
||||
ADJUST_MINSIZE = _core.ADJUST_MINSIZE
|
||||
BORDER_DEFAULT = _core.BORDER_DEFAULT
|
||||
@ -2116,6 +2091,10 @@ class Image(Object):
|
||||
"""GetHeight() -> int"""
|
||||
return _core.Image_GetHeight(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize() -> Size"""
|
||||
return _core.Image_GetSize(*args, **kwargs)
|
||||
|
||||
def GetSubImage(*args, **kwargs):
|
||||
"""GetSubImage(Rect rect) -> Image"""
|
||||
return _core.Image_GetSubImage(*args, **kwargs)
|
||||
@ -2293,9 +2272,12 @@ def ImageFromStreamMime(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def EmptyImage(*args, **kwargs):
|
||||
"""EmptyImage(int width=0, int height=0, bool clear=True) -> Image"""
|
||||
val = _core.new_EmptyImage(*args, **kwargs)
|
||||
def EmptyImage(*args):
|
||||
"""
|
||||
EmptyImage(int width=0, int height=0, bool clear=True) -> Image
|
||||
EmptyImage(Size size, bool clear=True) -> Image
|
||||
"""
|
||||
val = _core.new_EmptyImage(*args)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
@ -6647,6 +6629,10 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core.Window_SetBackgroundColour(*args, **kwargs)
|
||||
|
||||
def SetDefaultBackgroundColour(*args, **kwargs):
|
||||
"""SetDefaultBackgroundColour(Colour colour)"""
|
||||
return _core.Window_SetDefaultBackgroundColour(*args, **kwargs)
|
||||
|
||||
def SetForegroundColour(*args, **kwargs):
|
||||
"""
|
||||
SetForegroundColour(Colour colour) -> bool
|
||||
@ -6658,6 +6644,10 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core.Window_SetForegroundColour(*args, **kwargs)
|
||||
|
||||
def SetDefaultForegroundColour(*args, **kwargs):
|
||||
"""SetDefaultForegroundColour(Colour colour)"""
|
||||
return _core.Window_SetDefaultForegroundColour(*args, **kwargs)
|
||||
|
||||
def GetBackgroundColour(*args, **kwargs):
|
||||
"""
|
||||
GetBackgroundColour() -> Colour
|
||||
@ -6704,6 +6694,10 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core.Window_SetFont(*args, **kwargs)
|
||||
|
||||
def SetDefaultFont(*args, **kwargs):
|
||||
"""SetDefaultFont(Font font)"""
|
||||
return _core.Window_SetDefaultFont(*args, **kwargs)
|
||||
|
||||
def GetFont(*args, **kwargs):
|
||||
"""
|
||||
GetFont() -> Font
|
||||
|
@ -1094,12 +1094,15 @@ SWIG_CheckUnsignedChar(PyObject* obj)
|
||||
}
|
||||
}
|
||||
|
||||
wxImage *new_wxImage(int width,int height,bool clear){
|
||||
wxImage *new_wxImage__SWIG_0(int width,int height,bool clear){
|
||||
if (width > 0 && height > 0)
|
||||
return new wxImage(width, height, clear);
|
||||
else
|
||||
return new wxImage;
|
||||
}
|
||||
wxImage *new_wxImage__SWIG_1(wxSize const &size,bool clear){
|
||||
return new wxImage(size.x, size.y, clear);
|
||||
}
|
||||
wxImage *new_wxImage(wxBitmap const &bitmap){
|
||||
return new wxImage(bitmap.ConvertToImage());
|
||||
}
|
||||
@ -1113,6 +1116,10 @@ wxImage *new_wxImage(int width,int height,unsigned char *data){
|
||||
memcpy(copy, data, width*height*3);
|
||||
return new wxImage(width, height, copy, False);
|
||||
}
|
||||
wxSize wxImage_GetSize(wxImage *self){
|
||||
wxSize size(self->GetWidth(), self->GetHeight());
|
||||
return size;
|
||||
}
|
||||
PyObject *wxImage_GetData(wxImage *self){
|
||||
unsigned char* data = self->GetData();
|
||||
int len = self->GetWidth() * self->GetHeight() * 3;
|
||||
@ -8782,7 +8789,7 @@ static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, P
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_new_EmptyImage__SWIG_0(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj;
|
||||
int arg1 = (int) 0 ;
|
||||
int arg2 = (int) 0 ;
|
||||
@ -8791,11 +8798,8 @@ static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "width",(char *) "height",(char *) "clear", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"|OOO:new_EmptyImage",&obj0,&obj1,&obj2)) goto fail;
|
||||
if (obj0) {
|
||||
arg1 = (int) SWIG_AsInt(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -8810,7 +8814,7 @@ static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxImage *)new_wxImage(arg1,arg2,arg3);
|
||||
result = (wxImage *)new_wxImage__SWIG_0(arg1,arg2,arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -8822,6 +8826,90 @@ static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyImage__SWIG_1(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj;
|
||||
wxSize *arg1 = 0 ;
|
||||
bool arg2 = (bool) True ;
|
||||
wxImage *result;
|
||||
wxSize temp1 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyImage",&obj0,&obj1)) goto fail;
|
||||
{
|
||||
arg1 = &temp1;
|
||||
if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
|
||||
}
|
||||
if (obj1) {
|
||||
arg2 = (bool) SWIG_AsBool(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxImage *)new_wxImage__SWIG_1((wxSize const &)*arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
int ii;
|
||||
|
||||
argc = PyObject_Length(args);
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if ((argc >= 0) && (argc <= 3)) {
|
||||
int _v;
|
||||
if (argc <= 0) {
|
||||
return _wrap_new_EmptyImage__SWIG_0(self,args);
|
||||
}
|
||||
_v = SWIG_CheckInt(argv[0]);
|
||||
if (_v) {
|
||||
if (argc <= 1) {
|
||||
return _wrap_new_EmptyImage__SWIG_0(self,args);
|
||||
}
|
||||
_v = SWIG_CheckInt(argv[1]);
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_EmptyImage__SWIG_0(self,args);
|
||||
}
|
||||
_v = SWIG_CheckBool(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_EmptyImage__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((argc >= 1) && (argc <= 2)) {
|
||||
int _v;
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
if (argc <= 1) {
|
||||
return _wrap_new_EmptyImage__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_CheckBool(argv[1]);
|
||||
if (_v) {
|
||||
return _wrap_new_EmptyImage__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyImage'");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = 0 ;
|
||||
@ -10006,6 +10094,36 @@ static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxImage *arg1 = (wxImage *) 0 ;
|
||||
wxSize result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxImage_GetSize(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
wxSize * resultptr;
|
||||
resultptr = new wxSize((wxSize &) result);
|
||||
resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxImage *arg1 = (wxImage *) 0 ;
|
||||
@ -25874,6 +25992,38 @@ static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxColour *arg2 = 0 ;
|
||||
wxColour temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "colour", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -25909,6 +26059,38 @@ static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxColour *arg2 = 0 ;
|
||||
wxColour temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "colour", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetDefaultForegroundColour((wxColour const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -26075,6 +26257,40 @@ static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxFont *arg2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "font", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1)
|
||||
SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError,"null reference");
|
||||
SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetDefaultFont((wxFont const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -40699,7 +40915,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_EmptyImage", _wrap_new_EmptyImage, METH_VARARGS },
|
||||
{ (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -40728,6 +40944,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -41299,12 +41516,15 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -42496,37 +42716,12 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
|
||||
PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
|
||||
PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
|
||||
PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS));
|
||||
PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D));
|
||||
PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
|
||||
PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
|
||||
PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
|
||||
PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
|
||||
PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
|
||||
PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
|
||||
PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP));
|
||||
PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE));
|
||||
PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE));
|
||||
PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE));
|
||||
PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX));
|
||||
PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME));
|
||||
PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU));
|
||||
PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX));
|
||||
PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX));
|
||||
PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ));
|
||||
PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT));
|
||||
PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX));
|
||||
PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER));
|
||||
PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL));
|
||||
PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS));
|
||||
PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT));
|
||||
PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE));
|
||||
PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE));
|
||||
PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW));
|
||||
PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT));
|
||||
PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU));
|
||||
PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR));
|
||||
PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED));
|
||||
PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
|
||||
PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
|
||||
PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
|
||||
@ -42757,7 +42952,7 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
|
||||
PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
|
||||
PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
|
||||
PyDict_SetItemString(d,"FIXED_SIZE", SWIG_FromInt((int)wxFIXED_SIZE));
|
||||
PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
|
||||
PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
|
||||
PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
|
||||
PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
|
||||
|
@ -51,13 +51,13 @@ class Colour(core.Object):
|
||||
etc. Valid RGB values are in the range 0 to 255.
|
||||
|
||||
In wxPython there are typemaps that will automatically convert from a colour
|
||||
name, or from a "#RRGGBB" colour hex value string to a wx.Colour object when
|
||||
name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when
|
||||
calling C++ methods that expect a wxColour. This means that the following are
|
||||
all equivallent:
|
||||
|
||||
win.SetBackgroundColour(wxColour(0,0,255))
|
||||
win.SetBackgroundColour("BLUE")
|
||||
win.SetBackgroundColour("#0000FF")
|
||||
win.SetBackgroundColour('BLUE')
|
||||
win.SetBackgroundColour('#0000FF')
|
||||
|
||||
You can retrieve the various current system colour settings with
|
||||
wx.SystemSettings.GetColour.
|
||||
@ -502,6 +502,14 @@ class Bitmap(GDIObject):
|
||||
"""
|
||||
return _gdi.Bitmap_GetDepth(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""
|
||||
GetSize() -> Size
|
||||
|
||||
Get the size of the bitmap.
|
||||
"""
|
||||
return _gdi.Bitmap_GetSize(*args, **kwargs)
|
||||
|
||||
def ConvertToImage(*args, **kwargs):
|
||||
"""
|
||||
ConvertToImage() -> Image
|
||||
@ -590,6 +598,14 @@ class Bitmap(GDIObject):
|
||||
"""
|
||||
return _gdi.Bitmap_SetDepth(*args, **kwargs)
|
||||
|
||||
def SetSize(*args, **kwargs):
|
||||
"""
|
||||
SetSize(Size size)
|
||||
|
||||
Set the bitmap size
|
||||
"""
|
||||
return _gdi.Bitmap_SetSize(*args, **kwargs)
|
||||
|
||||
def CopyFromCursor(*args, **kwargs):
|
||||
"""CopyFromCursor(Cursor cursor) -> bool"""
|
||||
return _gdi.Bitmap_CopyFromCursor(*args, **kwargs)
|
||||
@ -619,18 +635,6 @@ class BitmapPtr(Bitmap):
|
||||
self.__class__ = Bitmap
|
||||
_gdi.Bitmap_swigregister(BitmapPtr)
|
||||
|
||||
def EmptyBitmap(*args, **kwargs):
|
||||
"""
|
||||
EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
|
||||
|
||||
Creates a new bitmap of the given size. A depth of -1 indicates the depth of
|
||||
the current screen or visual. Some platforms only support 1 for monochrome and
|
||||
-1 for the current colour setting.
|
||||
"""
|
||||
val = _gdi.new_EmptyBitmap(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def BitmapFromIcon(*args, **kwargs):
|
||||
"""
|
||||
BitmapFromIcon(Icon icon) -> Bitmap
|
||||
@ -677,6 +681,19 @@ def BitmapFromBits(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def EmptyBitmap(*args):
|
||||
"""
|
||||
EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
|
||||
EmptyBitmap(Size size, int depth=-1) -> Bitmap
|
||||
|
||||
Creates a new bitmap of the given size. A depth of -1 indicates
|
||||
the depth of the current screen or visual. Some platforms only
|
||||
support 1 for monochrome and -1 for the current colour setting.
|
||||
"""
|
||||
val = _gdi.new_EmptyBitmap(*args)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class Mask(core.Object):
|
||||
"""
|
||||
This class encapsulates a monochrome mask bitmap, where the masked area is
|
||||
@ -1259,6 +1276,7 @@ FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14
|
||||
FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15
|
||||
FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX
|
||||
FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8
|
||||
FONTENCODING_KOI8_U = _gdi.FONTENCODING_KOI8_U
|
||||
FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE
|
||||
FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN
|
||||
FONTENCODING_CP437 = _gdi.FONTENCODING_CP437
|
||||
@ -1537,6 +1555,11 @@ class FontMapper(object):
|
||||
return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs)
|
||||
|
||||
GetEncodingDescription = staticmethod(GetEncodingDescription)
|
||||
def GetEncodingFromName(*args, **kwargs):
|
||||
"""GetEncodingFromName(String name) -> int"""
|
||||
return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs)
|
||||
|
||||
GetEncodingFromName = staticmethod(GetEncodingFromName)
|
||||
def SetConfig(*args, **kwargs):
|
||||
"""SetConfig(ConfigBase config)"""
|
||||
return _gdi.FontMapper_SetConfig(*args, **kwargs)
|
||||
@ -1598,6 +1621,10 @@ def FontMapper_GetEncodingDescription(*args, **kwargs):
|
||||
"""FontMapper_GetEncodingDescription(int encoding) -> String"""
|
||||
return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs)
|
||||
|
||||
def FontMapper_GetEncodingFromName(*args, **kwargs):
|
||||
"""FontMapper_GetEncodingFromName(String name) -> int"""
|
||||
return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs)
|
||||
|
||||
def FontMapper_GetDefaultConfigPath(*args, **kwargs):
|
||||
"""FontMapper_GetDefaultConfigPath() -> String"""
|
||||
return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs)
|
||||
|
@ -218,9 +218,9 @@ SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_con
|
||||
#define SWIGTYPE_p_wxImage swig_types[9]
|
||||
#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
|
||||
#define SWIGTYPE_p_wxMask swig_types[11]
|
||||
#define SWIGTYPE_p_wxFont swig_types[12]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[13]
|
||||
#define SWIGTYPE_p_wxSize swig_types[14]
|
||||
#define SWIGTYPE_p_wxSize swig_types[12]
|
||||
#define SWIGTYPE_p_wxFont swig_types[13]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[14]
|
||||
#define SWIGTYPE_p_double swig_types[15]
|
||||
#define SWIGTYPE_p_wxMemoryDC swig_types[16]
|
||||
#define SWIGTYPE_p_wxFontMapper swig_types[17]
|
||||
@ -246,8 +246,8 @@ SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_con
|
||||
#define SWIGTYPE_p_wxIcon swig_types[37]
|
||||
#define SWIGTYPE_p_wxLocale swig_types[38]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[39]
|
||||
#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
|
||||
#define SWIGTYPE_p_wxConfigBase swig_types[41]
|
||||
#define SWIGTYPE_p_wxConfigBase swig_types[40]
|
||||
#define SWIGTYPE_p_wxLanguageInfo swig_types[41]
|
||||
#define SWIGTYPE_p_wxWindowDC swig_types[42]
|
||||
#define SWIGTYPE_p_wxPrintData swig_types[43]
|
||||
#define SWIGTYPE_p_wxBrushList swig_types[44]
|
||||
@ -600,6 +600,12 @@ wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
|
||||
PyString_AsStringAndSize(bits, &buf, &length);
|
||||
return new wxBitmap(buf, width, height, depth);
|
||||
}
|
||||
wxBitmap *new_wxBitmap__SWIG_0(int width,int height,int depth){
|
||||
return new wxBitmap(width, height, depth);
|
||||
}
|
||||
wxBitmap *new_wxBitmap__SWIG_1(wxSize const &size,int depth){
|
||||
return new wxBitmap(size.x, size.y, depth);
|
||||
}
|
||||
|
||||
SWIGSTATICINLINE(int)
|
||||
SWIG_CheckLong(PyObject* obj)
|
||||
@ -614,10 +620,18 @@ SWIG_CheckLong(PyObject* obj)
|
||||
}
|
||||
|
||||
void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
|
||||
wxSize wxBitmap_GetSize(wxBitmap *self){
|
||||
wxSize size(self->GetWidth(), self->GetHeight());
|
||||
return size;
|
||||
}
|
||||
void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
|
||||
wxMask *mask = new wxMask(*self, colour);
|
||||
self->SetMask(mask);
|
||||
}
|
||||
void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
|
||||
self->SetWidth(size.x);
|
||||
self->SetHeight(size.y);
|
||||
}
|
||||
bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
|
||||
bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
|
||||
wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
|
||||
@ -2808,42 +2822,6 @@ static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *k
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
int arg1 ;
|
||||
int arg2 ;
|
||||
int arg3 = (int) -1 ;
|
||||
wxBitmap *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "width",(char *) "height",(char *) "depth", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
|
||||
arg1 = (int) SWIG_AsInt(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
arg2 = (int) SWIG_AsInt(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
if (obj2) {
|
||||
arg3 = (int) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxIcon *arg1 = 0 ;
|
||||
@ -2976,6 +2954,117 @@ static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObje
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj;
|
||||
int arg1 ;
|
||||
int arg2 ;
|
||||
int arg3 = (int) -1 ;
|
||||
wxBitmap *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
|
||||
arg1 = (int) SWIG_AsInt(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
arg2 = (int) SWIG_AsInt(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
if (obj2) {
|
||||
arg3 = (int) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj;
|
||||
wxSize *arg1 = 0 ;
|
||||
int arg2 = (int) -1 ;
|
||||
wxBitmap *result;
|
||||
wxSize temp1 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
|
||||
{
|
||||
arg1 = &temp1;
|
||||
if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
|
||||
}
|
||||
if (obj1) {
|
||||
arg2 = (int) SWIG_AsInt(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
int ii;
|
||||
|
||||
argc = PyObject_Length(args);
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if ((argc >= 1) && (argc <= 2)) {
|
||||
int _v;
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
if (argc <= 1) {
|
||||
return _wrap_new_EmptyBitmap__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_CheckInt(argv[1]);
|
||||
if (_v) {
|
||||
return _wrap_new_EmptyBitmap__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
_v = SWIG_CheckInt(argv[0]);
|
||||
if (_v) {
|
||||
_v = SWIG_CheckInt(argv[1]);
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_EmptyBitmap__SWIG_0(self,args);
|
||||
}
|
||||
_v = SWIG_CheckInt(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_EmptyBitmap__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
@ -3171,6 +3260,36 @@ static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
wxSize result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxBitmap_GetSize(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
wxSize * resultptr;
|
||||
resultptr = new wxSize((wxSize &) result);
|
||||
resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
@ -3551,6 +3670,38 @@ static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "size", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
@ -7799,6 +7950,44 @@ static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObjec
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxString *arg1 = 0 ;
|
||||
int result;
|
||||
bool temp1 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "name", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = True;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_FromInt((int)result);
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxFontMapper *arg1 = (wxFontMapper *) 0 ;
|
||||
@ -18941,11 +19130,11 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
|
||||
{ (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
|
||||
{ (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -18953,6 +19142,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -18964,6 +19154,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -19107,6 +19298,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -19835,9 +20027,9 @@ static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wx
|
||||
static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
@ -19863,8 +20055,8 @@ static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObj
|
||||
static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
|
||||
@ -19893,9 +20085,9 @@ _swigt__p_wxIconLocation,
|
||||
_swigt__p_wxImage,
|
||||
_swigt__p_wxMetaFileDC,
|
||||
_swigt__p_wxMask,
|
||||
_swigt__p_wxSize,
|
||||
_swigt__p_wxFont,
|
||||
_swigt__p_wxWindow,
|
||||
_swigt__p_wxSize,
|
||||
_swigt__p_double,
|
||||
_swigt__p_wxMemoryDC,
|
||||
_swigt__p_wxFontMapper,
|
||||
@ -19921,8 +20113,8 @@ _swigt__p_wxGDIObject,
|
||||
_swigt__p_wxIcon,
|
||||
_swigt__p_wxLocale,
|
||||
_swigt__p_wxRegion,
|
||||
_swigt__p_wxLanguageInfo,
|
||||
_swigt__p_wxConfigBase,
|
||||
_swigt__p_wxLanguageInfo,
|
||||
_swigt__p_wxWindowDC,
|
||||
_swigt__p_wxPrintData,
|
||||
_swigt__p_wxBrushList,
|
||||
@ -20019,6 +20211,7 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
|
||||
PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
|
||||
PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
|
||||
PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
|
||||
PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
|
||||
PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
|
||||
PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
|
||||
|
@ -447,7 +447,7 @@ class GridCellFloatEditor(GridCellTextEditor):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> GridCellFloatEditor"""
|
||||
"""__init__(int width=-1, int precision=-1) -> GridCellFloatEditor"""
|
||||
newobj = _grid.new_GridCellFloatEditor(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
|
@ -3416,15 +3416,27 @@ static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *ar
|
||||
}
|
||||
static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
int arg1 = (int) -1 ;
|
||||
int arg2 = (int) -1 ;
|
||||
wxGridCellFloatEditor *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
NULL
|
||||
(char *) "width",(char *) "precision", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatEditor",kwnames,&obj0,&obj1)) goto fail;
|
||||
if (obj0) {
|
||||
arg1 = (int) SWIG_AsInt(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj1) {
|
||||
arg2 = (int) SWIG_AsInt(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
|
||||
result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
|
@ -24,8 +24,8 @@ class Panel(core.Window):
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxTAB_TRAVERSAL|wxNO_BORDER,
|
||||
Create(Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
|
||||
String name=PanelNameStr) -> bool
|
||||
|
||||
Create the GUI part of the Window for 2-phase creation mode.
|
||||
@ -195,6 +195,27 @@ def PreScrolledWindow(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
STAY_ON_TOP = _windows.STAY_ON_TOP
|
||||
ICONIZE = _windows.ICONIZE
|
||||
MINIMIZE = _windows.MINIMIZE
|
||||
MAXIMIZE = _windows.MAXIMIZE
|
||||
CLOSE_BOX = _windows.CLOSE_BOX
|
||||
THICK_FRAME = _windows.THICK_FRAME
|
||||
SYSTEM_MENU = _windows.SYSTEM_MENU
|
||||
MINIMIZE_BOX = _windows.MINIMIZE_BOX
|
||||
MAXIMIZE_BOX = _windows.MAXIMIZE_BOX
|
||||
TINY_CAPTION_HORIZ = _windows.TINY_CAPTION_HORIZ
|
||||
TINY_CAPTION_VERT = _windows.TINY_CAPTION_VERT
|
||||
RESIZE_BOX = _windows.RESIZE_BOX
|
||||
RESIZE_BORDER = _windows.RESIZE_BORDER
|
||||
DIALOG_NO_PARENT = _windows.DIALOG_NO_PARENT
|
||||
DEFAULT_FRAME_STYLE = _windows.DEFAULT_FRAME_STYLE
|
||||
DEFAULT_DIALOG_STYLE = _windows.DEFAULT_DIALOG_STYLE
|
||||
FRAME_TOOL_WINDOW = _windows.FRAME_TOOL_WINDOW
|
||||
FRAME_FLOAT_ON_PARENT = _windows.FRAME_FLOAT_ON_PARENT
|
||||
FRAME_NO_WINDOW_MENU = _windows.FRAME_NO_WINDOW_MENU
|
||||
FRAME_NO_TASKBAR = _windows.FRAME_NO_TASKBAR
|
||||
FRAME_SHAPED = _windows.FRAME_SHAPED
|
||||
FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR
|
||||
FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR
|
||||
FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR
|
||||
|
@ -1378,7 +1378,7 @@ static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kw
|
||||
PyObject *resultobj;
|
||||
wxPanel *arg1 = (wxPanel *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
int arg3 ;
|
||||
int arg3 = (int) (int)-1 ;
|
||||
wxPoint const &arg4_defvalue = wxDefaultPosition ;
|
||||
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
|
||||
wxSize const &arg5_defvalue = wxDefaultSize ;
|
||||
@ -1401,13 +1401,15 @@ static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kw
|
||||
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
arg3 = (int const) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
if (obj2) {
|
||||
arg3 = (int const) SWIG_AsInt(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj3) {
|
||||
{
|
||||
arg4 = &temp4;
|
||||
@ -26349,6 +26351,27 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set);
|
||||
PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP));
|
||||
PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE));
|
||||
PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE));
|
||||
PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE));
|
||||
PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX));
|
||||
PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME));
|
||||
PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU));
|
||||
PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX));
|
||||
PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX));
|
||||
PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ));
|
||||
PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT));
|
||||
PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX));
|
||||
PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER));
|
||||
PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT));
|
||||
PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE));
|
||||
PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE));
|
||||
PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW));
|
||||
PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT));
|
||||
PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU));
|
||||
PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR));
|
||||
PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED));
|
||||
PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR));
|
||||
PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR));
|
||||
PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR));
|
||||
|
Loading…
Reference in New Issue
Block a user