Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed May 23, 2021
1 parent 895c6af commit 116936c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/source/developer_guide/viewer_modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ Instructions

#. Download the `__init__.py <https://github.com/kushalkolar/MESmerize/raw/master/mesmerize/viewer/modules/custom_modules/__init__.py>`_ and place it within the plugins directory.

#. Create the main module file for your custom module. This file can be named as you wish and must use the struture outlined below. In addition to this main module file you can create a directory to house any other modules, files etc. You can create Qt templates using Qt Creator and convert them to .py template files using pyuic5 and use them for your custom module.
#. Your directory structure & :ref:`SystemConfiguration` should look something like this. A ``__pycache__`` will automatically be created when you launch ``mesmerize``, this is normal.

.. image:: ./plugin_dir_structure.png

#. Create the main module file for your custom module, in this example we'll create ``example_plugin.py`` and place it in the plugins directory that we specific in the :ref:`SystemConfiguration` alongside the provided ``__init__.py``. You can create as many plugin modules as you want, they can be named as you wish but must use the struture outlined below. In addition to this main module file you can create a separate subdirectory to house any modules or files associated to this module. You can create Qt templates using Qt Creator and convert them to .py template files using pyuic5 and use them for your custom module.

**Basic Structure**

Expand Down

0 comments on commit 116936c

Please sign in to comment.