Sample python script for testing.
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Fri, 12 Jun 2009 05:29:43 +0000 (12 01:29 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Fri, 12 Jun 2009 05:29:43 +0000 (12 01:29 -0400)
src/scripts/py.py [new file with mode: 0644]

diff --git a/src/scripts/py.py b/src/scripts/py.py
new file mode 100644 (file)
index 0000000..106c465
--- /dev/null
@@ -0,0 +1,13 @@
+import time
+import screen
+
+f = open("/tmp/debug/py", "ab")
+f.write("Called at %s \n" % (time.asctime(time.localtime())))
+f.close()
+
+
+f = open("/tmp/debug/py", "ab")
+windows = screen.windows()
+for win in windows:
+  f.write("Window: %s (%d) %s %s %d\n" % (win.title, win.number, win.dir, win.tty, win.pid))
+f.close()