Permalink
Browse files

start of a script for making the screenshots automatically

  • Loading branch information...
1 parent 0439c21 commit d145504727d6f34a02b9068d3c7c922c635cca4c @tuukka tuukka committed with bebarino Apr 16, 2009
Showing with 20 additions and 0 deletions.
  1. +20 −0 scripts/screenshot.py
View
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+from dogtail.procedural import *
+
+def shoot(window, name):
+ import os
+
+ os.system("import -window \"%s\" -frame %s" % (window, name))
+
+
+# Start sonata
+run('sonata', appName='sonata')
+
+for tab in 'Current', 'Info', 'Library', 'Playlists', 'Streams':
+ click(tab)
+ shoot("Sonata", "%s-tab.png" % tab)
+
+# XXX take more screenshots
+
+# FIXME how to open the popup and quit?

0 comments on commit d145504

Please sign in to comment.