From 1bf3f62b8dabae83e7ba615de42b03becb78ffdc Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 2 Apr 2006 19:18:31 +0000 Subject: Remove tabs fixes #325320 (Dieter Verfaillie) * examples/gtk/widget.py: Remove tabs fixes #325320 (Dieter Verfaillie) --- examples/gtk/widget.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/gtk/widget.py b/examples/gtk/widget.py index fbda21eb..976dc447 100644 --- a/examples/gtk/widget.py +++ b/examples/gtk/widget.py @@ -49,7 +49,7 @@ class PyGtkWidget(gtk.Widget): # Associate the gdk.Window with ourselves, Gtk+ needs a reference # between the widget and the gdk window - self.window.set_user_data(self) + self.window.set_user_data(self) # Attach the style to the gdk.Window, a style contains colors and # GC contextes used for drawing @@ -64,7 +64,7 @@ class PyGtkWidget(gtk.Widget): # The do_unrealized method is responsible for freeing the GDK resources # De-associate the window we created in do_realize with ourselves - self.window.set_user_data(None) + self.window.set_user_data(None) def do_size_request(self, requisition): # The do_size_request method Gtk+ is calling on a widget to ask @@ -73,9 +73,9 @@ class PyGtkWidget(gtk.Widget): # In this case, we say that we want to be as big as the # text is, plus a little border around it. - width, height = self._layout.get_size() - requisition.width = width // pango.SCALE + BORDER_WIDTH*4 - requisition.height = height // pango.SCALE + BORDER_WIDTH*4 + width, height = self._layout.get_size() + requisition.width = width // pango.SCALE + BORDER_WIDTH*4 + requisition.height = height // pango.SCALE + BORDER_WIDTH*4 def do_size_allocate(self, allocation): # The do_size_allocate is called by when the actual size is known -- cgit v1.2.1