mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
e3bcbac8b9
commit
70f28e78fb
@ -98,6 +98,7 @@ def init_manage_action(ac, field, value):
|
|||||||
ac.current_fmt = field, value
|
ac.current_fmt = field, value
|
||||||
return ac
|
return ac
|
||||||
|
|
||||||
|
|
||||||
def init_find_in_tag_browser(menu, ac, field, value):
|
def init_find_in_tag_browser(menu, ac, field, value):
|
||||||
from calibre.gui2.ui import get_gui
|
from calibre.gui2.ui import get_gui
|
||||||
hidden_cats = get_gui().tags_view.model().hidden_categories
|
hidden_cats = get_gui().tags_view.model().hidden_categories
|
||||||
@ -107,6 +108,7 @@ def init_find_in_tag_browser(menu, ac, field, value):
|
|||||||
ac.current_fmt = field, value
|
ac.current_fmt = field, value
|
||||||
menu.addAction(ac)
|
menu.addAction(ac)
|
||||||
|
|
||||||
|
|
||||||
def render_html(mi, vertical, widget, all_fields=False, render_data_func=None, pref_name='book_display_fields'): # {{{
|
def render_html(mi, vertical, widget, all_fields=False, render_data_func=None, pref_name='book_display_fields'): # {{{
|
||||||
func = render_data_func or render_data
|
func = render_data_func or render_data
|
||||||
try:
|
try:
|
||||||
@ -292,6 +294,7 @@ def add_item_specific_entries(menu, data, book_info):
|
|||||||
menu.addAction(ac)
|
menu.addAction(ac)
|
||||||
return search_internet_added
|
return search_internet_added
|
||||||
|
|
||||||
|
|
||||||
def details_context_menu_event(view, ev, book_info, add_popup_action=False):
|
def details_context_menu_event(view, ev, book_info, add_popup_action=False):
|
||||||
url = view.anchorAt(ev.pos())
|
url = view.anchorAt(ev.pos())
|
||||||
menu = view.createStandardContextMenu()
|
menu = view.createStandardContextMenu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user