wxPython / src / xrc.i

// Name:        xrc.i
// Purpose:     Wrappers for the XML based Resource system
// Author:      Robin Dunn
// Created:     4-June-2001
// RCS-ID:      $Id: xrc.i 42223 2006-10-22 03:00:37Z RD $
// Copyright:   (c) 2001 by Total Control Software
// Licence:     wxWindows license

"The `XmlResource` class allows program resources defining menus, layout of
controls on a panel, etc. to be loaded from an XML file."

%module(package="wx", docstring=DOCSTRING) xrc

#include "wx/wxPython/wxPython.h"
#include "wx/wxPython/pyclasses.h"
#include "wx/wxPython/pyistream.h"

#include <wx/xml/xml.h>
#include <wx/xrc/xmlres.h>


%import core.i
%pythoncode { wx = _core }
%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }

MAKE_CONST_WXSTRING2(UTF8String,       wxT("UTF-8"));
MAKE_CONST_WXSTRING2(StyleString,      wxT("style"));
MAKE_CONST_WXSTRING2(SizeString,       wxT("size"));
MAKE_CONST_WXSTRING2(PosString,        wxT("pos"));
MAKE_CONST_WXSTRING2(BitmapString,     wxT("bitmap"));
MAKE_CONST_WXSTRING2(IconString,       wxT("icon"));
MAKE_CONST_WXSTRING2(FontString,       wxT("font"));
MAKE_CONST_WXSTRING2(AnimationString,  wxT("animation"));

// Include all the files that make up this module
%include _xmlres.i
%include _xmlsub.i
%include _xml.i
%include _xmlhandler.i


%init %{



%pythoncode "_xrc_ex.py";

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.