|
8 | 8 | from guidata.qthelpers import create_action |
9 | 9 | from guidata.utils.misc import assert_interfaces_valid |
10 | 10 | from qtpy import QtCore as QC |
11 | | -from qtpy import QtGui as QG |
12 | 11 | from qtpy import QtWidgets as QW |
13 | 12 |
|
14 | 13 | from plotpy.constants import ID_CONTRAST, ID_ITEMLIST, ID_XCS, ID_YCS |
|
58 | 57 | if TYPE_CHECKING: # pragma: no cover |
59 | 58 | from typing import Callable |
60 | 59 |
|
| 60 | + from qtpy.QtCore import Qt |
| 61 | + from qtpy.QtGui import QIcon, QKeySequence |
61 | 62 | from qwt import QwtPlotCanvas, QwtScaleDiv |
62 | 63 |
|
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 |
64 | 72 |
|
65 | 73 |
|
66 | 74 | class DefaultPlotID: |
@@ -491,11 +499,11 @@ def create_action( |
491 | 499 | title: str, |
492 | 500 | triggered: Callable | None = None, |
493 | 501 | 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, |
496 | 504 | tip: str | None = None, |
497 | 505 | checkable: bool | None = None, |
498 | | - context: QC.Qt.ShortcutContext = QC.Qt.ShortcutContext.WindowShortcut, |
| 506 | + context: Qt.ShortcutContext = QC.Qt.ShortcutContext.WindowShortcut, |
499 | 507 | enabled: bool | None = None, |
500 | 508 | ): |
501 | 509 | """ |
|
0 commit comments