Sections
Timeline
Sub-Sections
Next Change →
Download
Unified Diff
Zip Archive
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Changeset 56 for wirelessheatmap

Show
Ignore:
Timestamp:
17/08/08 08:41:34 (5 months ago)
Author:
gak
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wirelessheatmap/trunk/heat.py

    r53 r56  
    11#!/usr/bin/env python 
     2''' 
     3wirelessheatmap 
     4Copyright 2008 Gerald Kaszuba 
     5http://geraldkaszuba.com/ 
     6 
     7This program is free software: you can redistribute it and/or modify 
     8it under the terms of the GNU General Public License as published by 
     9the Free Software Foundation, either version 3 of the License, or 
     10(at your option) any later version. 
     11 
     12This program is distributed in the hope that it will be useful, 
     13but WITHOUT ANY WARRANTY; without even the implied warranty of 
     14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     15GNU General Public License for more details. 
     16 
     17You should have received a copy of the GNU General Public License 
     18along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     19''' 
    220 
    321import colorsys 
     
    2846        self.window = window.Window( 
    2947#            640, 480, 
    30             1024, 768, 
     48#            1024, 768, 
     49            800, 600, 
    3150#            caption='Heat', \ 
    3251#            fullscreen=True, 
     
    298317    def on_key_release(self, symbol, mods): 
    299318        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' 
    300323        if symbol == key.SPACE: 
    301324 
     
    332355 
    333356        print self.cfg.store_file, 'loaded' 
     357        print len(self.store), 'stores' 
    334358        print self.ap 
    335359