2001-06-15 17:43:26 -04:00
|
|
|
# This file was created automatically by SWIG.
|
|
|
|
import xrcc
|
|
|
|
|
|
|
|
from misc import *
|
|
|
|
|
|
|
|
from misc2 import *
|
|
|
|
|
|
|
|
from windows import *
|
|
|
|
|
|
|
|
from gdi import *
|
|
|
|
|
2002-04-03 13:15:21 -05:00
|
|
|
from fonts import *
|
|
|
|
|
2001-06-15 17:43:26 -04:00
|
|
|
from clip_dnd import *
|
|
|
|
|
|
|
|
from events import *
|
|
|
|
|
|
|
|
from streams import *
|
|
|
|
|
2001-11-19 15:41:48 -05:00
|
|
|
from utils import *
|
|
|
|
|
2001-06-15 17:43:26 -04:00
|
|
|
from mdi import *
|
|
|
|
|
|
|
|
from frames import *
|
|
|
|
|
|
|
|
from stattool import *
|
|
|
|
|
|
|
|
from controls import *
|
|
|
|
|
|
|
|
from controls2 import *
|
|
|
|
|
|
|
|
from windows2 import *
|
|
|
|
|
|
|
|
from cmndlgs import *
|
|
|
|
|
|
|
|
from windows3 import *
|
|
|
|
|
|
|
|
from image import *
|
|
|
|
|
|
|
|
from printfw import *
|
|
|
|
|
|
|
|
from sizers import *
|
|
|
|
|
|
|
|
from filesys import *
|
|
|
|
|
2002-01-28 19:11:38 -05:00
|
|
|
def XRCID(str_id):
|
|
|
|
return wxXmlResource_GetXRCID(str_id)
|
2001-06-15 17:43:26 -04:00
|
|
|
|
2002-01-28 19:11:38 -05:00
|
|
|
def XRCCTRL(window, str_id, *ignoreargs):
|
|
|
|
return window.FindWindowById(XRCID(str_id))
|
2001-06-15 17:43:26 -04:00
|
|
|
|
2002-01-28 19:11:38 -05:00
|
|
|
XMLID = XRCID
|
|
|
|
XMLCTRL = XRCCTRL
|
2001-06-15 17:43:26 -04:00
|
|
|
|
|
|
|
class wxXmlResourcePtr(wxObjectPtr):
|
|
|
|
def __init__(self,this):
|
|
|
|
self.this = this
|
|
|
|
self.thisown = 0
|
|
|
|
def __del__(self,xrcc=xrcc):
|
|
|
|
if self.thisown == 1 :
|
|
|
|
xrcc.delete_wxXmlResource(self)
|
|
|
|
def Load(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_Load,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def InitAllHandlers(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_InitAllHandlers,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def AddHandler(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_AddHandler,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def ClearHandlers(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_ClearHandlers,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadMenu(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadMenu,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadMenuBar(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadMenuBar,(self,) + _args, _kwargs)
|
|
|
|
return val
|
2002-07-19 20:07:51 -04:00
|
|
|
def LoadMenuBarOnFrame(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadMenuBarOnFrame,(self,) + _args, _kwargs)
|
|
|
|
return val
|
2001-06-15 17:43:26 -04:00
|
|
|
def LoadToolBar(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadToolBar,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadDialog(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadDialog,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxDialogPtr(val)
|
|
|
|
return val
|
|
|
|
def LoadOnDialog(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadOnDialog,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadPanel(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadPanel,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxPanelPtr(val)
|
|
|
|
return val
|
|
|
|
def LoadOnPanel(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadOnPanel,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadFrame(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadFrame,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def LoadBitmap(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadBitmap,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxBitmapPtr(val) ; val.thisown = 1
|
|
|
|
return val
|
|
|
|
def LoadIcon(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_LoadIcon,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxIconPtr(val) ; val.thisown = 1
|
|
|
|
return val
|
|
|
|
def AttachUnknownControl(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_AttachUnknownControl,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def GetVersion(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_GetVersion,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def CompareVersion(self, *_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_CompareVersion,(self,) + _args, _kwargs)
|
|
|
|
return val
|
|
|
|
def __repr__(self):
|
|
|
|
return "<C wxXmlResource instance at %s>" % (self.this,)
|
|
|
|
class wxXmlResource(wxXmlResourcePtr):
|
|
|
|
def __init__(self,*_args,**_kwargs):
|
|
|
|
self.this = apply(xrcc.new_wxXmlResourceEmpty,_args,_kwargs)
|
|
|
|
self.thisown = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def wxXmlResource(*_args,**_kwargs):
|
|
|
|
val = wxXmlResourcePtr(apply(xrcc.new_wxXmlResource,_args,_kwargs))
|
|
|
|
val.thisown = 1
|
|
|
|
return val
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------- FUNCTION WRAPPERS ------------------
|
|
|
|
|
2002-01-28 19:11:38 -05:00
|
|
|
wxXmlResource_GetXRCID = xrcc.wxXmlResource_GetXRCID
|
2001-06-15 17:43:26 -04:00
|
|
|
|
2002-01-21 22:22:03 -05:00
|
|
|
def wxXmlResource_Get(*_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_Get,_args,_kwargs)
|
|
|
|
if val: val = wxXmlResourcePtr(val)
|
|
|
|
return val
|
|
|
|
|
|
|
|
def wxXmlResource_Set(*_args, **_kwargs):
|
|
|
|
val = apply(xrcc.wxXmlResource_Set,_args,_kwargs)
|
|
|
|
if val: val = wxXmlResourcePtr(val)
|
|
|
|
return val
|
|
|
|
|
2001-06-15 17:43:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
#-------------- VARIABLE WRAPPERS ------------------
|
|
|
|
|
2002-01-05 18:45:33 -05:00
|
|
|
wxXRC_USE_LOCALE = xrcc.wxXRC_USE_LOCALE
|
|
|
|
wxXRC_NO_SUBCLASSING = xrcc.wxXRC_NO_SUBCLASSING
|
2002-01-21 22:22:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
#-------------- USER INCLUDE -----------------------
|
|
|
|
|
|
|
|
|
|
|
|
# The global was removed in favor of static accessor functions. This is for
|
|
|
|
# backwards compatibility:
|
|
|
|
wxTheXmlResource = wxXmlResource_Get()
|