Krita Source Code Documentation
Loading...
Searching...
No Matches
selectionsbagdocker.py
Go to the documentation of this file.
1# SPDX-License-Identifier: CC0-1.0
2
3try:
4 from PyQt6.QtWidgets import QWidget
5
6 from PyQt6 import uic
7except:
8 from PyQt5.QtWidgets import QWidget
9
10 from PyQt5 import uic
11from krita import DockWidget
12from builtins import i18n
13import os
14
15
16class SelectionsBagDocker(DockWidget):
17
18 def __init__(self):
19 super().__init__()
20 widget = QWidget(self)
21 ui_filename = os.path.join(
22 os.path.dirname(os.path.realpath(__file__)),
23 'selectionsbagdocker.ui')
24 uic.loadUi(ui_filename, widget)
25 self.setWidget(widget)
26 self.setWindowTitle(i18n("Selections Bag"))
27
28 def canvasChanged(self, canvas):
29 print("Canvas", canvas)