[Xfce4-commits] <pyxfce:master> add 'testspawn' example.
Danny Milosavljevic
noreply at xfce.org
Fri Jan 14 20:20:01 CET 2011
Updating branch refs/heads/master
to df6a5c2da0203f6704379da333bfadafc837949f (commit)
from 13a5eb594a7b02efe624495b3c3e84fb9bb0157e (commit)
commit df6a5c2da0203f6704379da333bfadafc837949f
Author: Danny Milosavljevic <dannym at xfce.org>
Date: Fri Jan 14 20:14:58 2011 +0100
add 'testspawn' example.
examples/Makefile.am | 2 +-
examples/configure.ac | 1 +
examples/spawn/testspawn.py | 12 ++++++++++++
3 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 37fe47a..1dc2a8c 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -4,4 +4,4 @@ ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = 1.7
-SUBDIRS = panel systemtray
+SUBDIRS = panel systemtray spawn
diff --git a/examples/configure.ac b/examples/configure.ac
index 66a0542..d29a21e 100644
--- a/examples/configure.ac
+++ b/examples/configure.ac
@@ -65,5 +65,6 @@ AC_CONFIG_FILES(
panel/Makefile
panel/testplugin1/Makefile
systemtray/Makefile
+ spawn/Makefile
)
AC_OUTPUT
diff --git a/examples/spawn/testspawn.py b/examples/spawn/testspawn.py
new file mode 100644
index 0000000..17bfd31
--- /dev/null
+++ b/examples/spawn/testspawn.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python2
+
+import sys
+import os
+import pygtk
+pygtk.require("2.0")
+import gtk
+import xfce4.ui
+import xfce4.util
+import shlex
+
+xfce4.ui.spawn_on_screen(gtk.gdk.screen_get_default(), "/", ["xterm"], os.environ, set(["search_path"]), False, gtk.get_current_event_time(), "xterm")
More information about the Xfce4-commits
mailing list