From 484b7f974e656cda516b6895d1a27eac3a96ae6e Mon Sep 17 00:00:00 2001 From: javiplx Date: Sun, 1 May 2011 21:56:34 +0000 Subject: [PATCH] Plot valid gps points as they arrive through scanner git-svn-id: file:///svnroot/wifihood/trunk@109 c51dfc6a-5949-4919-9c8e-f207a149c383 --- wifiscanner/wifiscanner | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wifiscanner/wifiscanner b/wifiscanner/wifiscanner index be2b7b4..7c6d3e4 100755 --- a/wifiscanner/wifiscanner +++ b/wifiscanner/wifiscanner @@ -55,6 +55,12 @@ class scanner ( wifimap.Scanner ) : self.buffer.delete( start , end ) for mac,rss in self.scanlist.iteritems() : self.buffer.insert_at_cursor( "%s %5d\n" % ( mac , rss ) ) + if self.info[0] == "FIX" : + self.map.hide() + pixmap,mask = self.map.get_pixbuf().render_pixmap_and_mask() + self.map.plot( pixmap , ( float(self.info[4]) , float(self.info[5]) ) , "red" , 2 ) + self.map.get_pixbuf().get_from_drawable( pixmap , pixmap.get_colormap() , 0, 0 , 0 , 0 , self.map.win_x, self.map.win_y ) + self.map.show() class AbstractWifiscanner : @@ -113,6 +119,7 @@ class AbstractWifiscanner : status = gtk.Label( "status bar ..." ) _scanner.status = status _scanner.buffer = textview.get_buffer() + _scanner.map = notebook.get_nth_page(1).child bottom_box.pack_start( status , expand=False , padding=20 ) def run ( self ) : -- 1.7.9.5