AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/matplotlib/backends/backend_qt5.py

29 lines
787 B
Python
Raw Normal View History

2024-10-02 22:15:59 +04:00
from .. import backends
backends._QT_FORCE_QT5_BINDING = True
from .backend_qt import ( # noqa
SPECIAL_KEYS,
# Public API
cursord, _create_qApp, _BackendQT, TimerQT, MainWindow, FigureCanvasQT,
FigureManagerQT, ToolbarQt, NavigationToolbar2QT, SubplotToolQt,
SaveFigureQt, ConfigureSubplotsQt, RubberbandQt,
HelpQt, ToolCopyToClipboardQT,
# internal re-exports
FigureCanvasBase, FigureManagerBase, MouseButton, NavigationToolbar2,
TimerBase, ToolContainerBase, figureoptions, Gcf
)
from . import backend_qt as _backend_qt # noqa
@_BackendQT.export
class _BackendQT5(_BackendQT):
pass
def __getattr__(name):
if name == 'qApp':
return _backend_qt.qApp
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")