From 9496c552eae8f2b2d1d349254f5ede2df3f7132e Mon Sep 17 00:00:00 2001 From: Wade Brainerd Date: Wed, 02 Dec 2009 12:34:37 +0000 Subject: Kite game WIP --- diff --git a/kitegame.py b/kitegame.py index 912c913..cd4bcf8 100644 --- a/kitegame.py +++ b/kitegame.py @@ -434,7 +434,7 @@ class KiteGame(gtk.VBox): layout.set_markup("" + self.text[:50] + "") size = layout.get_size() x = 0 - y = int(self.bounds.height*0.5 - size[1]/pango.SCALE) + y = int(self.bounds.height*0.25 - size[1]/pango.SCALE) self.area.queue_draw_area( x, y, self.bounds.width, self.bounds.height) @@ -443,7 +443,7 @@ class KiteGame(gtk.VBox): layout.set_markup("" + self.text[:50] + "") size = layout.get_size() x = int(self.bounds.width*0.25) - y = int(self.bounds.height*0.5 - size[1]/pango.SCALE) + y = int(self.bounds.height*0.25 - size[1]/pango.SCALE) gc.foreground = self.area.get_colormap().alloc_color(65535,65535,65535) self.area.window.draw_rectangle(gc, True, 0, y, self.bounds.width, size[1]/pango.SCALE+10) -- cgit v0.9.1