Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

GrabFocus For Xfce4 Verve Applets In Python Using Dbus.

DZone's Guide to

GrabFocus For Xfce4 Verve Applets In Python Using Dbus.

·
Free Resource
// This little code allow to grab focus of the Verve applet(command line interface with auto-completion and command history) using python and dbus system. 



#!/usr/bin/env python

import dbus


try:
	bus = dbus.SessionBus()
except:
	print 'errore nella sessione dbus'
try:
	obj = bus.get_object("org.xfce.RunDialog", "/org/xfce/RunDialog")
	verve = dbus.Interface(obj, "org.xfce.Verve")
except:
	print 'errore....'

verve.GrabFocus()
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}