Changeset 56
- Timestamp:
- 17/08/08 08:41:34 (5 months ago)
- Files:
-
- 1 modified
-
wirelessheatmap/trunk/heat.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wirelessheatmap/trunk/heat.py
r53 r56 1 1 #!/usr/bin/env python 2 ''' 3 wirelessheatmap 4 Copyright 2008 Gerald Kaszuba 5 http://geraldkaszuba.com/ 6 7 This program is free software: you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. 19 ''' 2 20 3 21 import colorsys … … 28 46 self.window = window.Window( 29 47 # 640, 480, 30 1024, 768, 48 # 1024, 768, 49 800, 600, 31 50 # caption='Heat', \ 32 51 # fullscreen=True, … … 298 317 def on_key_release(self, symbol, mods): 299 318 self.grid = {} 319 if symbol == key.S: 320 pyglet.image.get_buffer_manager().get_color_buffer(). \ 321 save('screenshot.png') 322 print 'Saved as screenshot.png' 300 323 if symbol == key.SPACE: 301 324 … … 332 355 333 356 print self.cfg.store_file, 'loaded' 357 print len(self.store), 'stores' 334 358 print self.ap 335 359