2
2
3
3
from pymodaq .utils import gui_utils as gutils
4
4
5
+ # todo: replace here *pymodaq_plugins_template* by your plugin package name
6
+ from pymodaq_plugins_template .utils import Config as PluginConfig
5
7
6
- #todo: modify the name of this class to reflect its application and chnage the name in the main
8
+ logger = set_logger (get_module_name (__file__ ))
9
+
10
+ main_config = Config ()
11
+ plugin_config = PluginConfig ()
12
+
13
+
14
+ # todo: modify the name of this class to reflect its application and change the name in the main
7
15
# method at the end of the script
8
16
class CustomAppTemplate (gutils .CustomApp ):
9
17
10
- #todo: if you wish to create custom Parameter and corresponding widgets. These will be
18
+ # todo: if you wish to create custom Parameter and corresponding widgets. These will be
11
19
# automatically added as children of self.settings. Morevover, the self.settings_tree will
12
20
# render the widgets in a Qtree. If you wish to see it in your app, add is into a Dock
13
21
params = []
@@ -31,7 +39,7 @@ def setup_docks(self):
31
39
--------
32
40
pyqtgraph.dockarea.Dock
33
41
"""
34
- #todo: create docks and add them here to hold your widgets
42
+ # todo: create docks and add them here to hold your widgets
35
43
# reminder, the attribute self.settings_tree will render the widgets in a Qtree.
36
44
# If you wish to see it in your app, add is into a Dock
37
45
raise NotImplementedError
@@ -75,7 +83,7 @@ def setup_menu(self):
75
83
--------
76
84
pymodaq.utils.managers.action_manager.ActionManager
77
85
"""
78
- #todo create and populate menu using actions defined above in self.setup_actions
86
+ # todo create and populate menu using actions defined above in self.setup_actions
79
87
pass
80
88
81
89
def value_changed (self , param ):
@@ -103,7 +111,7 @@ def main():
103
111
dockarea = gutils .DockArea ()
104
112
mainwindow .setCentralWidget (dockarea )
105
113
106
- #todo: change the name here to be the same as your app class
114
+ # todo: change the name here to be the same as your app class
107
115
prog = CustomAppTemplate (dockarea )
108
116
109
117
mainwindow .show ()
0 commit comments