mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 07:32:44 +01:00
chore: clear linting errors
This commit is contained in:
1 parent
4cd900b42f
commit
2aca6c3fa3
6 files changed
+51
-31
No files matched your search
@@ -3,20 +3,23 @@ from dzgui.views.trees.tree_base import TreeView
|
||||
from dzgui.const.enum import ContextMenu
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango # noqa E402
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ContextMixin(TreeView):
|
||||
def present_menu(self,
|
||||
def present_menu(
|
||||
self,
|
||||
widget: Gtk.Widget,
|
||||
event: Gdk.EventButton | Gdk.EventKey,
|
||||
) -> None:
|
||||
|
||||
#if self.is_selection_empty():
|
||||
# return
|
||||
if self.is_selection_empty():
|
||||
return
|
||||
|
||||
if event.type is Gdk.EventType.BUTTON_PRESS:
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user