pyFormUI provide the most easy way to show a Form Dialog for python,which is based on the cross-platform library wxPython.pyFormUI use xml file to design GUI, no any wxpython Knowledge is need when using pyFormUI.
sudo apt-get install python-wxtools
cd pyFormUI_Source_Folder
python setup.py install
Please Find the code of this Example in files Demo/SimpleDemo.py and Demo/SimpleDemo.xml
<?xml version="1.0"?>
<form title="Demo GUI" width='500' height='100'>
<line>
<static title="Text:" width='50' />
<text id='id_text'/>
</line>
<line align="right">
<button id='id_ok' title='Ok'/>
</line>
</form>
from FormUI import *
builder = Builder()
builder.loadLayout('demo.xml')
formUI = FormUI(builder)
formUI.show()
def OkButtonHandler(windowHandler, handlerPara):
print handlerPara.getValue('id_text')
windowHandler.closeWindow()
builder.setCtrlHandler('id_ok', OkButtonHandler)
Find more Demos in Demo Folder.
python Demo.py
this demo show the basic control of pyFormUI
python FindGui.py
This Demo Implement the GUI for linux find cmd.
python SimpleDemo.py
A Simple Demo
python CustomControl.py
A Demo Show how to add cutom control