diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-30 12:24:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-30 12:24:03 (GMT) |
commit | ce72600b02aa2235fc9cc161b20ff24bcb5f6703 (patch) | |
tree | 342b360e17646b7326d61857583a33699eb9d664 /shell/console/console.py | |
parent | c8b5ab290e1bd96eb6fadac1708a2f14b7da4d70 (diff) |
Make the Shell own the console. Some view changes.
Diffstat (limited to 'shell/console/console.py')
-rw-r--r-- | shell/console/console.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/console/console.py b/shell/console/console.py index 1bdd5ce..9e4578b 100644 --- a/shell/console/console.py +++ b/shell/console/console.py @@ -3,10 +3,14 @@ import os import gtk import hippo +from sugar.graphics.roundbox import CanvasRoundBox + class Console(gtk.Window): - def __init__(self): + def __init__(self, shell_model): gtk.Window.__init__(self) + self._shell_model = shell_model + self.set_default_size(gtk.gdk.screen_width() * 3 / 4, gtk.gdk.screen_height() * 3 / 4) self.set_decorated(False) @@ -17,8 +21,7 @@ class Console(gtk.Window): self.add(canvas) canvas.show() - box = hippo.CanvasBox(padding=20, border_color=0x000000FF, - border=3) + box = hippo.CanvasBox(padding=20, background_color=0x000000FF) canvas.set_root(box) self.registry = Registry() |