-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathplugin.py
More file actions
37 lines (29 loc) · 920 Bytes
/
plugin.py
File metadata and controls
37 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-FileCopyrightText: 2021-2024 Helmholtz-Zentrum hereon GmbH
#
# SPDX-License-Identifier: LGPL-3.0-only
from psyplot.config.rcsetup import RcParams, validate_bool, validate_dict
from psyplot_gui.common import DockMixin
from psyplot_gui.compat.qtcompat import Qt, QWidget
class W1(QWidget, DockMixin):
title = "w1"
dock_position = Qt.LeftDockWidgetArea
class W2(QWidget, DockMixin):
title = "w2"
dock_position = Qt.BottomDockWidgetArea
hidden = True
rcParams = RcParams(
defaultParams={
"test_plugin": [True, validate_bool],
"project.plotters": [
{
"gui_test_plotter": {
"module": "psyplot_gui_test.plotter",
"plotter_name": "TestPlotter",
"import_plotter": True,
}
},
validate_dict,
],
}
)
rcParams.update_from_defaultParams()