• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Remove / reload a docked interface via Python

New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

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.

TOPICS
Scripting

Views

70

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

LATEST

I should also mention I'm still targeting version 7.1.1

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources