def init_adicional_popover(self): BaseDialogWithApply.init_adicional_popover(self) self.popover_listbox.add(generate_title_row(_('Rotate'), True)) self.rotate_0, row = generate_check_row( '0', None, None) self.popover_listbox.add(row) self.rotate_90, row = generate_check_row( '90', self.rotate_0, None) self.popover_listbox.add(row) self.rotate_180, row = generate_check_row( '180', self.rotate_0, None) self.popover_listbox.add(row) self.rotate_270, row = generate_check_row( '270', self.rotate_0, None) self.popover_listbox.add(row) self.popover_listbox.add(generate_separator_row()) self.popover_listbox.add(generate_title_row(_('Flip'), True)) self.check_vertical, row = generate_swith_row( _('Vertical'), None) self.popover_listbox.add(row) self.check_horizontal, row = generate_swith_row( _('Horizontal'), None) self.popover_listbox.add(row) self.popover_listbox.add(generate_separator_row()) self.popover_listbox.add(generate_title_row(_('File name'), True)) self.add_to_file, row = generate_entry_row(_('Add to file')) self.popover_listbox.add(row)
def init_adicional_popover(self): self.popover_listbox.add( generate_title_row(_('Clear or apply to'), True)) self.check_this, row = generate_check_row(_('This page'), None, None) self.popover_listbox.add(row) self.check_all, row = generate_check_row(_('All'), self.check_this, None) self.popover_listbox.add(row) self.check_range, self.range, row = generate_check_entry_row( _('Range'), self.check_this, None) self.popover_listbox.add(row) self.popover_listbox.add(generate_separator_row()) row = Gtk.ListBoxRow() hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=50) row.add(hbox) clear_button = Gtk.Button.new_with_label(_('Clear')) clear_button.connect('clicked', self.on_apply_clicked, True) hbox.pack_start(clear_button, True, True, 0) apply_button = Gtk.Button.new_with_label(_('Apply')) apply_button.connect('clicked', self.on_apply_clicked) hbox.pack_start(apply_button, True, True, 0) self.popover_listbox.add(row) self.popover_listbox.add(generate_separator_row())
def init_adicional_popover(self): BaseDialogWithApply.init_adicional_popover(self) self.popover_listbox.add(generate_title_row(_('Watermark'), True)) self.zoom_entry, row = generate_spinbutton_row(_('Zoom'), None) self.zoom_entry.set_adjustment(Gtk.Adjustment(1, 100, 1000, 1, 100, 0)) self.popover_listbox.add(row) self.file_entry, row = generate_button_row( _('Watermark'), self.on_button_watermark_clicked) self.file_entry.set_label(_('Select watermark file')) self.popover_listbox.add(row)
def init_adicional_popover(self): BaseDialogWithApply.init_adicional_popover(self) self.popover_listbox.add(generate_title_row(_('Pagination'), True)) self.button_font = Gtk.FontButton() self.button_font.set_size_request(165, 25) self.button_font.set_font('Ubuntu 12') row = generate_widget_row(_('Font'), self.button_font) self.popover_listbox.add(row) self.button_color = Gtk.ColorButton. new_with_rgba(Gdk.RGBA(0, 0, 0, 1)) self.button_color.set_size_request(165, 25) row = generate_widget_row(_('Color'), self.button_color) self.popover_listbox.add(row)