Skip to content

Commit f5ae2d1

Browse files
committed
Fix documentation Qt refs (docstrings)
1 parent 43e6107 commit f5ae2d1

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

plotpy/plot/manager.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from guidata.qthelpers import create_action
99
from guidata.utils.misc import assert_interfaces_valid
1010
from qtpy import QtCore as QC
11-
from qtpy import QtGui as QG
1211
from qtpy import QtWidgets as QW
1312

1413
from plotpy.constants import ID_CONTRAST, ID_ITEMLIST, ID_XCS, ID_YCS
@@ -58,9 +57,18 @@
5857
if TYPE_CHECKING: # pragma: no cover
5958
from typing import Callable
6059

60+
from qtpy.QtCore import Qt
61+
from qtpy.QtGui import QIcon, QKeySequence
6162
from qwt import QwtPlotCanvas, QwtScaleDiv
6263

63-
from plotpy.panels import ContrastAdjustment, PanelWidget, PlotItemList
64+
from plotpy.panels import (
65+
ContrastAdjustment,
66+
PanelWidget,
67+
PlotItemList,
68+
XCrossSection,
69+
YCrossSection,
70+
)
71+
from plotpy.tools import GuiTool, GuiToolT
6472

6573

6674
class DefaultPlotID:
@@ -491,11 +499,11 @@ def create_action(
491499
title: str,
492500
triggered: Callable | None = None,
493501
toggled: Callable | None = None,
494-
shortcut: QG.QKeySequence | None = None,
495-
icon: QG.QIcon | None = None,
502+
shortcut: QKeySequence | None = None,
503+
icon: QIcon | None = None,
496504
tip: str | None = None,
497505
checkable: bool | None = None,
498-
context: QC.Qt.ShortcutContext = QC.Qt.ShortcutContext.WindowShortcut,
506+
context: Qt.ShortcutContext = QC.Qt.ShortcutContext.WindowShortcut,
499507
enabled: bool | None = None,
500508
):
501509
"""

0 commit comments

Comments
 (0)