mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
52f80efdb9
commit
49e7bf5c97
@ -154,7 +154,6 @@ class AllGUIActions(InterfaceAction):
|
||||
add_action(sm, name)
|
||||
else:
|
||||
for name in names:
|
||||
act = self.gui.iactions[name]
|
||||
add_action(m, name)
|
||||
|
||||
# Add a named section for builtin actions if user plugins are installed.
|
||||
@ -190,4 +189,3 @@ class AllGUIActions(InterfaceAction):
|
||||
for m in action.qaction.menu().actions():
|
||||
menu.addAction(m)
|
||||
show_menu_under_widget(self.gui, menu, self.qaction, self.name)
|
||||
|
||||
|
@ -11,7 +11,7 @@ from qt.core import (
|
||||
QListWidgetItem, QMenu, QSize, Qt, QToolButton, QVBoxLayout, pyqtSignal,
|
||||
)
|
||||
|
||||
from calibre.gui2.actions import InterfaceAction, show_menu_under_widget, toolbar_widgets_for_action
|
||||
from calibre.gui2.actions import InterfaceAction, show_menu_under_widget
|
||||
from calibre.library.field_metadata import category_icon_map
|
||||
from calibre.utils.icu import primary_sort_key
|
||||
from polyglot.builtins import iteritems
|
||||
|
Loading…
x
Reference in New Issue
Block a user