Skip to content
This repository
Browse code

start of a script for making the screenshots automatically

  • Loading branch information...
commit d145504727d6f34a02b9068d3c7c922c635cca4c 1 parent 0439c21
Tuukka Hastrup authored April 16, 2009 bebarino committed September 21, 2009

Showing 1 changed file with 20 additions and 0 deletions. Show diff stats Hide diff stats

  1. 20  scripts/screenshot.py
20  scripts/screenshot.py
... ...
@@ -0,0 +1,20 @@
  1
+#!/usr/bin/env python
  2
+
  3
+from dogtail.procedural import *
  4
+
  5
+def shoot(window, name):
  6
+        import os
  7
+
  8
+        os.system("import -window \"%s\" -frame %s" % (window, name))
  9
+
  10
+
  11
+# Start sonata
  12
+run('sonata', appName='sonata')
  13
+
  14
+for tab in 'Current', 'Info', 'Library', 'Playlists', 'Streams':
  15
+    click(tab)
  16
+    shoot("Sonata", "%s-tab.png" % tab)
  17
+
  18
+# XXX take more screenshots
  19
+
  20
+# FIXME how to open the popup and quit?

0 notes on commit d145504

Please sign in to comment.
Something went wrong with that request. Please try again.