Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor in ObjectPanel disappears if you close the window with the cross #30

Open
j-levy opened this issue Jun 10, 2021 · 1 comment
Open
Labels

Comments

@j-levy
Copy link
Collaborator

j-levy commented Jun 10, 2021

Tested on:

  • macOS 11.4, Lpy 3.8.0 using Python 3.9
  • Windows 10 21H1, Lpy 3.0.0 using Python 3.9

reproduce:

  • open object panel, for example python -m openalea.lpy.gui.objectpanel
  • create any kind of object (Right click, New Item, whatever)
  • you can create several items if you want
  • double click on an item, this opens the Editor window
  • close the editor window using the red dot in the window bar[*]
  • double click on any item, this opens the Editor window
  • the editor window have the "editor" part not displaying any more, see screenshot :

[*] message in the console:

External WM_DESTROY received for  QWidgetWindow(0x227ca5b27e0, name="objectViewWindow") , parent:  QWidgetWindow(0x227ca5b18e0, name="ObjectDialogWindow") , transient parent:  QWindow(0x0)

image

@j-levy j-levy added the bug label Jun 10, 2021
@j-levy
Copy link
Collaborator Author

j-levy commented Jun 15, 2021

After a bit of investigation I think that:

  • the QWidget containing the "editor" part is not destroyed, not resized to a small size, and not overlapped.
  • the editor object is still present and reacts to signals like key presses (e.g. pressing H brings up the help page)
  • the editor object has still his visibility set to True (if you set the visibility to False while it's still working, you still have the right click that works, for example ; in the bug case it doesn't work anymore)

I think the widget part is crashed

I'll try to delete and re-create it from scratch when creating the window?

pradal added a commit that referenced this issue Jan 26, 2024
Declare openalea namespace package in setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant