X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..803a0ba6b6afa6cc62e818e336a2df420aab70f8:/wxPython/demo/XmlResourceHandler.py diff --git a/wxPython/demo/XmlResourceHandler.py b/wxPython/demo/XmlResourceHandler.py index 2098c5da41..1f415e35a6 100644 --- a/wxPython/demo/XmlResourceHandler.py +++ b/wxPython/demo/XmlResourceHandler.py @@ -1,13 +1,3 @@ -# 11/22/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# o There are issues using the wx namespace within the xrc code. -# -# 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Error report: "Error: No handler found for XML node 'object', -# class 'wx.StaticText'!"; no text shows on panel. -# import wx import wx.xrc as xrc @@ -21,7 +11,7 @@ resourceText = r''' 200,100 - + 10,10 @@ -177,9 +167,9 @@ def runTest(frame, nb, log): overview = """ -

wxXmlResourceHandler

+

wx.XmlResourceHandler

-Deriving a class from wxXmlResourceHandler allows you to specify your +Deriving a class from wx.XmlResourceHandler allows you to specify your own classes in XRC resources, and your handler class will then be used to create instances of that class when the resource is loaded. @@ -191,5 +181,5 @@ to create instances of that class when the resource is loaded. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])