Home Home > 2008 > 08 > 07 > GUI with python and libyui
Sign up | Login

Deprecation notice: openSUSE Lizards user blog platform is deprecated, and will remain read only for the time being. Learn more...

GUI with python and libyui

August 7th, 2008 by

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!).
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!
Here’s a screenshot,

Both comments and pings are currently closed.

2 Responses to “GUI with python and libyui”

  1. Cool work!

  2. libyui goes to the world, great!

    (b) is done more easily as “DISPLAY= python widget.py” or “(unset DISPLAY; python widget.py)”