Skip to main content
Brad.Smith
Participant
July 28, 2021
Question

Remove / reload a docked interface via Python

  • July 28, 2021
  • 1 reply
  • 247 views

I have a docked widget that I've added to the Painter UI through python, but I need to dynamically reload / replace the dialog.
The API doesn't appear to provide a method for removing the docked interface, is there a recommended method for doing so?

Iterating over the main window child widgets to find and remove the dock widget via 

ui.add_dock_widget()

seems to cause Painter to crash.

This topic has been closed for replies.

1 reply

Brad.Smith
Participant
July 28, 2021

I should also mention I'm still targeting version 7.1.1