Skip to content

Commit 9639a59

Browse files
committed
Update custom_app_template.py
1 parent d03964d commit 9639a59

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/pymodaq_plugins_template/app/custom_app_template.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22

33
from pymodaq.utils import gui_utils as gutils
44

5+
# todo: replace here *pymodaq_plugins_template* by your plugin package name
6+
from pymodaq_plugins_template.utils import Config as PluginConfig
57

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
715
# method at the end of the script
816
class CustomAppTemplate(gutils.CustomApp):
917

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
1119
# automatically added as children of self.settings. Morevover, the self.settings_tree will
1220
# render the widgets in a Qtree. If you wish to see it in your app, add is into a Dock
1321
params = []
@@ -31,7 +39,7 @@ def setup_docks(self):
3139
--------
3240
pyqtgraph.dockarea.Dock
3341
"""
34-
#todo: create docks and add them here to hold your widgets
42+
# todo: create docks and add them here to hold your widgets
3543
# reminder, the attribute self.settings_tree will render the widgets in a Qtree.
3644
# If you wish to see it in your app, add is into a Dock
3745
raise NotImplementedError
@@ -75,7 +83,7 @@ def setup_menu(self):
7583
--------
7684
pymodaq.utils.managers.action_manager.ActionManager
7785
"""
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
7987
pass
8088

8189
def value_changed(self, param):
@@ -103,7 +111,7 @@ def main():
103111
dockarea = gutils.DockArea()
104112
mainwindow.setCentralWidget(dockarea)
105113

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
107115
prog = CustomAppTemplate(dockarea)
108116

109117
mainwindow.show()

0 commit comments

Comments
 (0)