XRC
ed

  : <?xml?> tool for WX

News

Download

Introduction

Documentation

Links

FAQ

Maillist

News

New version in CVS, not yet a release   2007-03-11 05:38 - XRCed
New feature: comment nodes, they are presented in the tree as normal objects (so can be copied, moved, etc.). Tree icon is hash (#). Still needs some testing (msw in particular), but seems to be functional already.
Read More »

XRCed-0.1.8-4 wxMSW bugfix release   2007-03-10 13:21 - XRCed
This release contains specific fixes for wxMSW only. Linux/wxGTK users do not need to upgrade. OSX not tested, as usually (I don't have access to any Mac).

Things fixed: some control sizes in XRCed's interface; Notebook children highlighted correctly.
Read More »

XRCed-0.1.8-3 bugfix release   2007-03-08 16:04 - XRCed
More bugs fixed, some functional improvements.
Read More »

Site news archive »


Introduction

XRCed is a simple resource editor for wxWidgets/wxPython GUI development which supports creating and editing files in XRC format It is written in Python and uses wxPython GUI toolkit.

OK, it's better to take a look at a screenshot first:

This is a view of XRCed in action. On the left there's a tree of XML objects, and on the right side object's properties. For objects inside sizers there are additional sizeritem properties. The names of the objects are identical to the names of wxWidgets classes, and the names of the properties are the same as XML keywords.

The user can modify existing objects, create new objects of any class supported by XRC, cut, copy and paste individual objects or sub-trees. Double-clicking a top-level object brings up a preview window, and selected object is highlighted by a red rectangle. You can find some more information in XRCed's README.

Here is an example of a dialog created with XRCed (XML tree is shown on the previous picture). Red box indicates currently selected item (a wxStaticText object).

Documentation

API documentation is generated using Epydoc from XRCed's dource code.


Download XRCed

There are 2 ways to get XRCed:

  1. If you want to be on the bleeding edge, get latest wxWidgets CVS, and you'll find XRCed source in wxWidgets/wxPython/wx/tools/XRCed (you have to build or install wxPython from a package to use it, of course). If you already have wxWidgets/wxPython installed, you can checkout only XRCed by using (password for anoncvs is 'anoncvs'):
    cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets login
    cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets checkout \
        wxWidgets/wxPython/wx/tools/XRCed
        
  2. Or download the source tarball from XRCed file archive on SourceForge.

SawFish users may want to download this start-up script and copy/append it to .sawfishrc file in home, to avoid small focus problem when input focus is moved to the test window after it's refreshed, even if the pointer is inside the main window (if you know a better way to do this, let me know).

Links

XRC Guide from LDAP Explorer Tool project site.

UsingXmlResources page from wxPyWiki. You can find links to other XRC editors there.

Boa project is a Delphi-like IDE with an integrated GUI builder. It doesn't use XRC resource format, but directly generates Python code.

SPE "Stani's python editor" -- Blender-compatible Python IDE with tons of features.

Dimitri Pater wrote a nice XML resource tutorial on how to create a simple XRC file and a Python program that uses it.

Frequently Asked Questions

Q: I can't use non-ascii characters in labels and menus.
A: This can happen if your Python's sytem encoding is ascii and wxPython is non-unicode. Edit/create the file sitecustomize.py (should be somewhere in your PYTHONPATH), and put these magic lines:

import sys
sys.setdefaultencoding('iso8859-1') # replace with encoding you want to be the default one

Maillist

There is a maillist for XRCed-related questions: XRCed-users. To subscribe, send a request to

xrced-users-request@lists.sourceforge.net

Message should contain a line of this form:

subscribe [password] [digest-option] [address=<address>]

You can also subscribe or modify your options using web interface.

This project is hosted by

SourceForge Logo

(C) Roman Rolinsky