Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: scripts/newbitmaps/lib/bmpblock.py

Issue 6588139: Add "File->Save snapshot" menu item to export the displayed screen. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/newbitmaps/lib/pixcontrol.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/newbitmaps/lib/bmpblock.py
diff --git a/scripts/newbitmaps/lib/bmpblock.py b/scripts/newbitmaps/lib/bmpblock.py
index eacf72fa6a84f9985c4fc5a5fa21a8762859d62f..c25f93e9429ac6fa651fb7075e84183638c32bba 100755
--- a/scripts/newbitmaps/lib/bmpblock.py
+++ b/scripts/newbitmaps/lib/bmpblock.py
@@ -102,3 +102,11 @@ class BmpBlock(object):
sc = self.yaml['screens'][self.current_screen]
slist = [(x,y,self.yaml['images'][z]) for x,y,z in sc]
self.displayer.DisplayScreen(self.current_screen, slist)
+
+ def Saveit(self):
+ """Save current screen to file."""
+ if self.displayer:
+ if self.current_screen:
+ sc = self.yaml['screens'][self.current_screen]
+ slist = [(x,y,self.yaml['images'][z]) for x,y,z in sc]
+ self.displayer.SaveScreen(self.current_screen, slist)
« no previous file with comments | « no previous file | scripts/newbitmaps/lib/pixcontrol.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698