For some days now I’m working on a GUI written in python. I needed X and konsole, so I gave python-yui (python-binding of libyui) a try.
Libyui is the YaST2 User Interface library and python-yui is part of openSUSE 11.0.
If you want to have a quick look you can try my (demo-) widgets.py. It shows some, but not all widgets available. Klaus Kaempf uploaded it to the svn (tnx!).
Dependency:
zypper in python-yui
wget -nd "http://svn.opensuse.org/svn/yast/trunk/libyui-bindings/swig/python/examples/widgets.py"
a) with GTK/QT GUI:
python widget.py
b) with ncurses/konsole GUI:
export DISPLAY2 = $DISPLAY; unset DISPLAY; python widget.py ; export DISPLAY=$DISPLAY2 ; unset DISPLAY2
Have Phun!
Edit:
Here’s a screenshot,
Both comments and pings are currently closed.
Cool work!
libyui goes to the world, great!
(b) is done more easily as “DISPLAY= python widget.py” or “(unset DISPLAY; python widget.py)”