def __init__ (self, controls): PopupTrayWindow.__init__(self, controls) self.modify_bg(gtk.STATE_NORMAL, self.get_colormap().alloc_color("gray23")) vbox = gtk.VBox(False, 0) playcontrols = PlaybackControls(controls) playcontrols.pack_start(ImageButton(gtk.STOCK_QUIT, controls.quit, _("Exit"))) playcontrols.pack_start(ImageButton(gtk.STOCK_OK, self.hide, _("Close Popup"))) self.poopup_text = gtk.Label() self.set_text("Foobnix") self.poopup_text.set_line_wrap(True) vbox.pack_start(playcontrols, False, False) vbox.pack_start(self.poopup_text, False, False) self.add(vbox) self.show_all() self.hide()
def __init__(self, controls): PopupTrayWindow.__init__(self, controls) self.modify_bg(gtk.STATE_NORMAL, self.get_colormap().alloc_color("gray23")) vbox = gtk.VBox(False, 0) playcontrols = PlaybackControls(controls) playcontrols.pack_start( ImageButton(gtk.STOCK_QUIT, controls.quit, _("Exit"))) playcontrols.pack_start( ImageButton(gtk.STOCK_OK, self.hide, _("Close Popup"))) self.poopup_text = gtk.Label() self.set_text("Foobnix") self.poopup_text.set_line_wrap(True) vbox.pack_start(playcontrols, False, False) vbox.pack_start(self.poopup_text, False, False) self.add(vbox) self.show_all() self.hide()
def __init__(self, controls): FControl.__init__(self, controls) gtk.Window. __init__(self, gtk.WINDOW_POPUP) self.set_position(gtk.WIN_POS_MOUSE) self.connect("leave-notify-event", self.on_leave_window) vbox = gtk.VBox(False, 0) playcontrols = PlaybackControls(controls) playcontrols.pack_start(ImageButton(gtk.STOCK_QUIT, controls.quit, _("Exit"))) playcontrols.pack_start(ImageButton(gtk.STOCK_OK, self.hide, _("Close Popup"))) self.poopup_text = gtk.Label("Foobnix") self.poopup_text.set_line_wrap(True) vbox.pack_start(playcontrols, False, False) vbox.pack_start(self.poopup_text, False, False) self.add(vbox) self.show_all() self.hide()
def __init__(self, controls): FControl.__init__(self, controls) gtk.Window.__init__(self, gtk.WINDOW_POPUP) self.set_position(gtk.WIN_POS_MOUSE) self.connect("leave-notify-event", self.on_leave_window) vbox = gtk.VBox(False, 0) playcontrols = PlaybackControls(controls) playcontrols.pack_start( ImageButton(gtk.STOCK_QUIT, controls.quit, _("Exit"))) playcontrols.pack_start( ImageButton(gtk.STOCK_OK, self.hide, _("Close Popup"))) self.poopup_text = gtk.Label("Foobnix") self.poopup_text.set_line_wrap(True) vbox.pack_start(playcontrols, False, False) vbox.pack_start(self.poopup_text, False, False) self.add(vbox) self.show_all() self.hide()