diff options
Diffstat (limited to 'graph.py')
-rwxr-xr-x | graph.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -905,7 +905,6 @@ class Graph: # Info label self.label_info = self.xml.get_widget( 'label_info' ) self.label_info.set_text( '' ) - #self.label_info.modify_font( pango.FontDescription( "sans 14" ) ) self.label_coords = self.xml.get_widget( 'label_coords' ) self.label_coords.set_text( '' ) @@ -1222,7 +1221,7 @@ class Graph: # size changes def on_draw_configure( self, widget, event ): x,y,width,height = widget.get_allocation() - self.pixmap = gtk.gdk.Pixmap( widget.get_window(), width, height, -1 ) + self.pixmap = gtk.gdk.Pixmap( widget.window, width, height, -1 ) self.pixmap.draw_rectangle( widget.get_style().white_gc, True, 0, 0, width, height ) if self.gc == None: self.gc = self.pixmap.new_gc( ) |