def __init__(self): BasePage.__init__(self) self.__adapter_info = None self.__page_title = None self.__tuning_data = self.NOT_LISTED self.__data_dir = None
def __init__(self, model): BasePage.__init__(self) self.__model = model self.__scanner = None self.__adapter_info = None self.__summary = None self.__channels = None self._progressbar = None self._progressbar_timer = None self.__success = False
def __init__(self): BasePage.__init__(self) self._details_label = Gtk.Label() self._details_label.set_line_wrap(True) self.pack_start(self._details_label, True, True, 0) self.configure_button = Gtk.Button(label=_('Configure Another Device')) self.configure_button.set_halign(Gtk.Align.CENTER) self.pack_start(self.configure_button, False, True, 0)
def __init__(self, model): BasePage.__init__(self) self.__adapter_info = None self.__use_configured = True self.__model = model self._progressbar = None self._progressbar_timer = None self.devicesview = None self.frame = None # Name, Type Name, Type, adapter, frontend, registered self.deviceslist = Gtk.ListStore(str, str, int, int, int, bool)
def __init__(self): BasePage.__init__(self) self.__scanner = None self.__channels = None text = _("Choose a location where you want to save the list of channels.") self._label.set_text(text) button_box = Gtk.ButtonBox() self.pack_start(button_box, True, True, 0) save_button = Gtk.Button(stock=Gtk.STOCK_SAVE) save_button.connect("clicked", self.__on_save_button_clicked) button_box.pack_start(save_button, True, True, 0)
def __init__(self): BasePage.__init__(self) self.__scanner = None self.__channels = None text = _( "Choose a location where you want to save the list of channels.") self._label.set_text(text) button_box = Gtk.ButtonBox() self.pack_start(button_box, True, True, 0) save_button = Gtk.Button(stock=Gtk.STOCK_SAVE) save_button.connect("clicked", self.__on_save_button_clicked) button_box.pack_start(save_button, True, True, 0)
def __init__(self): BasePage.__init__(self) text = "<b>%s</b>" % _('Welcome to the digital television Assistant.') self._label.set_markup(text) self._label.set_line_wrap(False) text1 = _('It will automatically configure your devices and search for channels, if necessary.') text2 = _("Click \"Forward\" to begin.") label2 = Gtk.Label(text1 + "\n\n" + text2) label2.set_line_wrap(True) label2.set_halign(Gtk.Align.START) label2.set_valign(Gtk.Align.START) self.pack_start(label2, True, True, 0) self.expert_mode = Gtk.CheckButton.new_with_mnemonic(_('_Expert mode')) self.pack_start(self.expert_mode, False, False, 0)
def __init__(self): BasePage.__init__(self) text = "<b>%s</b>" % _('Welcome to the digital television Assistant.') self._label.set_markup(text) self._label.set_line_wrap(False) text1 = _( 'It will automatically configure your devices and search for channels, if necessary.' ) text2 = _("Click \"Forward\" to begin.") label2 = Gtk.Label(text1 + "\n\n" + text2) label2.set_line_wrap(True) label2.set_halign(Gtk.Align.START) label2.set_valign(Gtk.Align.START) self.pack_start(label2, True, True, 0) self.expert_mode = Gtk.CheckButton.new_with_mnemonic(_('_Expert mode')) self.pack_start(self.expert_mode, False, False, 0)
def __init__(self, model): BasePage.__init__(self) self._model = model self._scanner = None self._max_freqs = 0 self._scanned_freqs = 0 self._last_qsize = 0 self._progressbar_timer = 0 self.set_spacing(12) self._theme = Gtk.IconTheme.get_default() text = "%s\n%s" % ( _("This process can take some time."), _("You can select the channels you want to have in your list of channels.") ) self._label.set_markup (text) actiongroup = Gtk.ActionGroup('channels') actiongroup.add_actions([ ('channels-select-all', None, _('Select all'), None, None, lambda x: self.__set_all_checked(True)), ('channels-deselect-all', None, _('Deselect all'), None, None, lambda x: self.__set_all_checked(False)), ]) uimanager = Gtk.UIManager() uimanager.add_ui_from_string(self.MENU) uimanager.insert_action_group(actiongroup) self.popup_menu = uimanager.get_widget("/channels-popup") topbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) self.pack_start(topbox, True, True, 0) label = TextFieldLabel() label.set_markup_with_mnemonic(_("_Channels:")) topbox.pack_start(label, False, True, 0) # Logo, Name, active, SID, scrambled self.tvchannels = Gtk.ListStore(GdkPixbuf.Pixbuf, str, bool, int, bool) self.tvchannelsview = Gtk.TreeView.new_with_model(self.tvchannels) self.tvchannelsview.connect("button-press-event", self.__on_treeview_button_press_event) self.tvchannelsview.set_reorderable(True) self.tvchannelsview.set_headers_visible(False) label.set_mnemonic_widget(self.tvchannelsview) col_name = Gtk.TreeViewColumn(_("Channel")) cell_active = Gtk.CellRendererToggle() cell_active.connect("toggled", self.__on_active_toggled) col_name.pack_start(cell_active, False) col_name.add_attribute(cell_active, "active", self.COL_ACTIVE) cell_icon = Gtk.CellRendererPixbuf() col_name.pack_start(cell_icon, False) col_name.add_attribute(cell_icon, "pixbuf", self.COL_LOGO) cell_name = Gtk.CellRendererText() col_name.pack_start(cell_name, True) col_name.add_attribute(cell_name, "markup", self.COL_NAME) self.tvchannelsview.append_column (col_name) scrolledtvview = Gtk.ScrolledWindow() scrolledtvview.add(self.tvchannelsview) scrolledtvview.set_shadow_type(Gtk.ShadowType.ETCHED_IN) scrolledtvview.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) topbox.pack_start(scrolledtvview, True, True, 0) self.scrambledbutton = Gtk.CheckButton.new_with_mnemonic(_("Select _scrambled channels")) self.scrambledbutton.set_active(True) self.scrambledbutton.connect("toggled", self.__on_select_encrypted_toggled) topbox.pack_start(self.scrambledbutton, False, True, 0) self.create_signal_box() self.progressbar = Gtk.ProgressBar() self.pack_start(self.progressbar, False, True, 0)
def __init__(self, model): BasePage.__init__(self) self._model = model self._scanner = None self._max_freqs = 0 self._scanned_freqs = 0 self._last_qsize = 0 self._progressbar_timer = 0 self.set_spacing(12) self._theme = Gtk.IconTheme.get_default() text = "%s\n%s" % ( _("This process can take some time."), _("You can select the channels you want to have in your list of channels." )) self._label.set_markup(text) actiongroup = Gtk.ActionGroup('channels') actiongroup.add_actions([ ('channels-select-all', None, _('Select all'), None, None, lambda x: self.__set_all_checked(True)), ('channels-deselect-all', None, _('Deselect all'), None, None, lambda x: self.__set_all_checked(False)), ]) uimanager = Gtk.UIManager() uimanager.add_ui_from_string(self.MENU) uimanager.insert_action_group(actiongroup) self.popup_menu = uimanager.get_widget("/channels-popup") topbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) self.pack_start(topbox, True, True, 0) label = TextFieldLabel() label.set_markup_with_mnemonic(_("_Channels:")) topbox.pack_start(label, False, True, 0) # Logo, Name, active, SID, scrambled self.tvchannels = Gtk.ListStore(GdkPixbuf.Pixbuf, str, bool, int, bool) self.tvchannelsview = Gtk.TreeView.new_with_model(self.tvchannels) self.tvchannelsview.connect("button-press-event", self.__on_treeview_button_press_event) self.tvchannelsview.set_reorderable(True) self.tvchannelsview.set_headers_visible(False) label.set_mnemonic_widget(self.tvchannelsview) col_name = Gtk.TreeViewColumn(_("Channel")) cell_active = Gtk.CellRendererToggle() cell_active.connect("toggled", self.__on_active_toggled) col_name.pack_start(cell_active, False) col_name.add_attribute(cell_active, "active", self.COL_ACTIVE) cell_icon = Gtk.CellRendererPixbuf() col_name.pack_start(cell_icon, False) col_name.add_attribute(cell_icon, "pixbuf", self.COL_LOGO) cell_name = Gtk.CellRendererText() col_name.pack_start(cell_name, True) col_name.add_attribute(cell_name, "markup", self.COL_NAME) self.tvchannelsview.append_column(col_name) scrolledtvview = Gtk.ScrolledWindow() scrolledtvview.add(self.tvchannelsview) scrolledtvview.set_shadow_type(Gtk.ShadowType.ETCHED_IN) scrolledtvview.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) topbox.pack_start(scrolledtvview, True, True, 0) self.scrambledbutton = Gtk.CheckButton.new_with_mnemonic( _("Select _scrambled channels")) self.scrambledbutton.set_active(True) self.scrambledbutton.connect("toggled", self.__on_select_encrypted_toggled) topbox.pack_start(self.scrambledbutton, False, True, 0) self.create_signal_box() self.progressbar = Gtk.ProgressBar() self.pack_start(self.progressbar, False, True, 0)