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, on_hide_callback): self.controls = controls ChildTopWindow.__init__(self, "movie") self.set_hide_on_escape(False) self.on_hide_callback = on_hide_callback self.layout = gtk.VBox(False) self.drow = AdvancedDrawingArea(controls) self.drow.action_function = on_hide_callback self.set_resizable(True) self.set_border_width(0) self.layout.pack_start(self.drow, True) self.text_label = gtk.Label("foobnix") self.volume_button = gtk.VolumeButton() self.volume_button.connect("value-changed", self.volume_changed) line = gtk.HBox(False) line.pack_start( ImageButton(gtk.STOCK_FULLSCREEN, on_hide_callback, _("Exit Fullscrean")), False) line.pack_start(PlaybackControls(controls), False) line.pack_start(controls.seek_bar_movie, True) line.pack_start(gtk.SeparatorToolItem(), False) line.pack_start(self.text_label, False) line.pack_start(gtk.SeparatorToolItem(), False) line.pack_start(self.volume_button, False) self.layout.pack_start(line, False) self.add(self.layout) self.set_opacity(1) def my_event(w, e): if e.y > gtk.gdk.screen_height() - 50: #@UndefinedVariable line.show() else: line.hide() self.connect("motion-notify-event", my_event)
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, with_dbus=False): BaseFoobnixControls.__init__(self) self.layout = None self.statusbar = StatusbarControls(self) self.lastfm_service = LastFmService(self) self.media_engine = GStreamerEngine(self) """elements""" self.tree = NavigationTreeControl(self) self.tabhelper = TabHelperControl(self) self.volume = VolumeControls(self) self.record = RadioRecord(self) self.seek_bar_movie = SeekProgressBarControls(self) self.seek_bar = SeekProgressBarControls(self, self.seek_bar_movie) self.search_progress = SearchProgressBar() self.in_thread = SingleThread(self.search_progress) self.info_panel = InfoPanelWidget(self) self.movie_window = MovieDrawingArea(self) self.searchPanel = SearchControls(self) self.os = OrderShuffleControls(self) self.playback = PlaybackControls(self) self.trayicon = TrayIconControls(self) self.main_window = MainWindow(self) self.coverlyrics = CoverLyricsPanel(self) self.notetabs = NoteTabControl(self) self.filter = FilterControl(self) self.radio = RadioTreeControl(self) self.virtual = VirtualTreeControl(self) self.lastfm_integration = LastFmIntegrationControls(self) self.vk_integration = VKIntegrationControls(self) self.perspective = PerspectiveControls(self) """preferences""" self.preferences = PreferencesWindow(self) self.eq = EqController(self) self.dm = DM(self) """layout panels""" self.top_panel = TopWidgets(self) """layout""" self.layout = BaseFoobnixLayout(self) if with_dbus: from foobnix.regui.controls.dbus_manager import DBusManager self.dbus = DBusManager(self) try: import keybinder #@UnresolvedImport @UnusedImport from foobnix.preferences.configs.hotkey_conf import load_foobnix_hotkeys load_foobnix_hotkeys() except: pass