2006-09-07 15:11:51 +02:00
|
|
|
import gtk
|
|
|
|
|
2006-09-07 19:51:27 +02:00
|
|
|
from sugar.canvas.GridWindow import GridWindow
|
2006-09-07 15:11:51 +02:00
|
|
|
|
2006-09-07 19:51:27 +02:00
|
|
|
class PanelWindow(GridWindow):
|
2006-09-07 15:11:51 +02:00
|
|
|
def __init__(self, model):
|
2006-09-07 19:51:27 +02:00
|
|
|
GridWindow.__init__(self, model)
|
2006-09-07 15:11:51 +02:00
|
|
|
|
|
|
|
self.set_decorated(False)
|
|
|
|
|
|
|
|
self.realize()
|
|
|
|
self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
|
|
|
|
self.window.set_accept_focus(False)
|
|
|
|
|
|
|
|
screen = gtk.gdk.screen_get_default()
|
|
|
|
self.window.set_transient_for(screen.get_root_window())
|