From: javiplx Date: Sun, 1 May 2011 21:56:34 +0000 (+0000) Subject: Plot valid gps points as they arrive through scanner X-Git-Tag: hildon-wrapped~43 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=484b7f974e656cda516b6895d1a27eac3a96ae6e;hp=8094639a9a077ca5d86bec036a3ade8cca670899;p=wifihood Plot valid gps points as they arrive through scanner git-svn-id: file:///svnroot/wifihood/trunk@109 c51dfc6a-5949-4919-9c8e-f207a149c383 --- 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 ) :