ADDING CUSTOM PANELS

Custom panels can be added to the UTILS tab by modifying the setup_utils.py module in the lib directory. Utilities are typically custom widgets that can be created progammatically with python or graphically with QtDesigner. In either case, some python support software will be required.

Example code to insert a custom widget (panel) is:

If the module is required to be known to the main handler file, then a reference to the module object needs to be passed to the handler. This is done with:

Of course, the qtdragon_handler.py file must contain an empty object in the __init__ section.

The self.module_name object will be updated when the handler executes the setup_utils module.

The setup_utils.py module provides several instances of utilities added to QtDragon that can be used as a guide.