Hi, I have created my own module that displays segments. To accomplish this, I added some functions to the logic class of the module, all of which I call in the setup() function of the widget class. While this works well for most functions, I have to reload the module several times for other functions to work. For example, one of the functions I have defined resets all view and slice node FOVs. This function does not do its job at startup of the module unlike other functions, i.e. the FOVs are not reset at the start of the module. Rather, I have to hit ‘reload’ for the function to take effect and reset the FOVs. Is there a way to fix this issue for all functions? Where should I move my logic function calls so that I don’t need to repeatedly reload the module?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to call a function from the logic | 3 | 1039 | April 9, 2019 | |
Use button widget to run function | 3 | 297 | October 10, 2020 | |
Issues separating logic, widget and main classes | 3 | 314 | May 9, 2023 | |
Getting pointer on module's logic and open/show the logic widget | 1 | 198 | March 29, 2023 | |
Accessing a custom loadable module's logic from python | 9 | 1044 | March 4, 2021 |