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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | scripts/newbitmaps/lib/pixcontrol.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python -tt 1 #!/usr/bin/python -tt
2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A BmpBlock class""" 6 """A BmpBlock class"""
7 7
8 import os 8 import os
9 import types 9 import types
10 import yaml 10 import yaml
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 self.displayer = displayer 95 self.displayer = displayer
96 96
97 97
98 def Redisplay(self): 98 def Redisplay(self):
99 """Redisplay contents.""" 99 """Redisplay contents."""
100 if self.displayer: 100 if self.displayer:
101 if self.current_screen: 101 if self.current_screen:
102 sc = self.yaml['screens'][self.current_screen] 102 sc = self.yaml['screens'][self.current_screen]
103 slist = [(x,y,self.yaml['images'][z]) for x,y,z in sc] 103 slist = [(x,y,self.yaml['images'][z]) for x,y,z in sc]
104 self.displayer.DisplayScreen(self.current_screen, slist) 104 self.displayer.DisplayScreen(self.current_screen, slist)
105
106 def Saveit(self):
107 """Save current screen to file."""
108 if self.displayer:
109 if self.current_screen:
110 sc = self.yaml['screens'][self.current_screen]
111 slist = [(x,y,self.yaml['images'][z]) for x,y,z in sc]
112 self.displayer.SaveScreen(self.current_screen, slist)
OLDNEW
« 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