This is an alpha release of QPX (Qt - Python - XML)


Overview:

Allows you to create Qt GUI's using XML. An XML document is parsed
and Qt widgets are generated on the fly, connections are made with
Python callbacks. 

Pre-requisites:
---------------------------------------------------------------------	

	you need to build pythonqt-0.2 (included with this distribution)
	qt libraries (version 1.40, http://www.troll.no )
	swig (pythonqt uses swig)
	python (I haven't tried it with an older version than 1.5
		but as far I can tell the only requirement is that
		you need to have the dlmodule option in your python
		build to accomodate swig)
	
Example Use
--------------------------------------------------------------------

Just type:
> python main.py test.xml

You should see the demo appear on your screen. The test.xml is fairly
straight forward. QPX was designed for programmer simplicity as its
design goal. The formal dtd is located in the qpx-0.2 directory called
qpx.dtd 


a small manual
---------------------------------------------------------------------

Each tag name corresponds to a Qt widget. I tried to be consistant with
my naming convension. All tags wich display widgets (the only ones that don't
are the separator (menu item spearator) and the connection (signal -> slot
connection interface) have the following standrad attributes:

left, top, width, height and caption. The 'img' attribute is used to draw
a *.bmp image on a widget. 

The 'name' attribute registers this widget and its siblings so that other 
tags may reference this widget in response to an event. For example, 
I wish to create menus for a window. I first create a popup menu using the 
popup tag as shown in the test.xml document. I then use the menu tag and 
reference the popup menu using the popup attribute. This fastens the popup 
menu to the menu bar. Its alot simpler to demonstrate in test.xml than it 
is to explain.

   

 
	
 


	
	

  
