Support for custom controls, first attempt

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2007-03-13 23:59:38 +00:00
parent aa67a27af1
commit 00d153468c
3 changed files with 74 additions and 0 deletions

View File

@@ -902,6 +902,18 @@ class XML_Tree(wx.TreeCtrl):
if not g.currentEncoding:
xmlFlags != xrc.XRC_USE_LOCALE
res = xrc.XmlResource('', xmlFlags)
xrc.XmlResource.Set(res) # set as global
# Register handlers
addHandlers(res)
# Test Test.py
#import Test
#res.InsertHandler(Test.TestXmlHandler())
# Test test.so
import ctypes
test = ctypes.CDLL('test.so')
addr = int(str(res.this).split('_')[1], 16)
#test._Z17AddTestXmlHandlerP13wxXmlResource(ctypes.c_void_p(addr))
#test.AddTestXmlHandler(ctypes.c_void_p(addr))
res.Load('memory:xxx.xrc')
try:
if xxx.__class__ == xxxFrame: