diff options
Diffstat (limited to 'dialogs.py')
-rw-r--r-- | dialogs.py | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -17,18 +17,14 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from gettext import gettext as _ -import os -import time import gobject import gtk -import webkit from sugar.graphics import style from sugar.graphics.toolbutton import ToolButton from sugar.graphics.icon import Icon -from gettext import gettext as _ class _DialogWindow(gtk.Window): @@ -38,7 +34,6 @@ class _DialogWindow(gtk.Window): super(_DialogWindow, self).__init__() self.set_border_width(style.LINE_WIDTH) - offset = style.GRID_CELL_SIZE width = gtk.gdk.screen_width() - style.GRID_CELL_SIZE * 2 height = gtk.gdk.screen_height() - style.GRID_CELL_SIZE * 2 self.set_size_request(width, height) @@ -137,7 +132,7 @@ class ScoreDialog(_DialogWindow): time_cell = gtk.CellRendererText() time_column = gtk.TreeViewColumn(_("Score")) - + time_column.pack_start(time_cell) time_column.set_attributes(time_cell, text=0) @@ -148,5 +143,5 @@ class ScoreDialog(_DialogWindow): for i in scores: score, date = i.split(",") liststore.append([score, date]) - + scrollwin.add_with_viewport(treeview) |