dockwidget — Extended QDockWidget for Enki main window¶
- This class adds next features to QDockWidget:
- has action for showing and focusing the widget
- closes themselves on Esc
- title bar contains QToolBar
-
class
enki.widgets.dockwidget.
DockWidget
(parentObject, windowTitle, windowIcon=<QIcon object>, shortcut=None)¶ Bases:
QDockWidget
Extended QDockWidget for Enki main window
-
closed
¶ closed()
Signal emitted, when dock is closed
-
shown
¶ shown()
Signal emitted, when dock is shown
-
keyPressEvent
(event)¶ Catch Esc. Not using QShortcut, because dock shall be closed, only if child widgets haven’t catched Esc event
-
showAction
()¶ Action shows the widget and set focus on it.
Add this action to the main menu
-
titleBarWidget
()¶ QToolBar on the title.
You may add own actions to this tool bar
-
closeEvent
(event)¶ Widget was closed
-
showEvent
(event)¶ Widget was shown
-