On 06/08/11 00:35, emmanuel_mays...@lynceantech.com wrote:
I am trying to save the geometry and and the workspace where the application 
has been closed.
Is there a way with Python/Qt to get the info on the workspace number!?

you could use dbus:

>>> import dbus
>>> bus = dbus.SessionBus()
>>> kwin = bus.get_object('org.kde.kwin', '/KWin')
>>> print kwin.currentDesktop()
3
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to