pixbuf.copy_area( init_x, init_y, size_x, size_y, self.get_pixbuf(), dest_x , dest_y )
del(pixbuf)
-# self.draw_paths()
self.plot_APs()
def center( self ) :
dest_x , dest_y = self.gps2pix( coords , ( center_x , center_y ) )
pixmap.draw_rectangle(gc, True , dest_x , dest_y , radius , radius )
- def draw_paths( self ) :
-
- pixmap,mask = self.get_pixbuf().render_pixmap_and_mask()
-
- filename = "data/wiscan_gui.info.old"
- fd = open( filename )
- for line in fd.readlines() :
- values = line.split()
- if values[1] == "FIX" :
- self.plot( pixmap , ( float(values[5]) , float(values[6]) ) , "red" )
- fd.close()
-
- self.get_pixbuf().get_from_drawable( pixmap , pixmap.get_colormap() , 0, 0 , 0 , 0 , self.win_x, self.win_y )
-
def plot_APs( self ) :
pixmap,mask = self.get_pixbuf().render_pixmap_and_mask()