summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-04-02 19:18:31 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-04-02 19:18:31 +0000
commit1bf3f62b8dabae83e7ba615de42b03becb78ffdc (patch)
tree80be71603d2160eef20e6659800f38e84c923af1 /examples
parent9f934d688658ace49d7a8594d44c5544e2e42dea (diff)
downloadpygtk-1bf3f62b8dabae83e7ba615de42b03becb78ffdc.tar.gz
Remove tabs fixes #325320 (Dieter Verfaillie)
* examples/gtk/widget.py: Remove tabs fixes #325320 (Dieter Verfaillie)
Diffstat (limited to 'examples')
-rw-r--r--examples/gtk/widget.py10
1 files changed, 5 insertions, 5 deletions
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