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

What should happen when you close a dv3d canvas? #1187

Open
jypeter opened this issue Apr 2, 2015 · 1 comment
Open

What should happen when you close a dv3d canvas? #1187

jypeter opened this issue Apr 2, 2015 · 1 comment
Labels

Comments

@jypeter
Copy link
Member

jypeter commented Apr 2, 2015

I don't know if the following behavior is a bug or a feature, but closing a dv3d canvas works 'strangely'!

If I create a dvd3 canvas and work with it after using x.interact() and then try to close the canvas by clicking on the 'X' at the top right of the canvas (in my xfce window manager), I go back to the python interpreter, but the canvas stays open.

I have mixed feelings about that because:

There is also a possible real bug: when I'm back in the python shell after clicking on the canvas close button, and I click a second time on the dv3d canvas close button, the canvas still stays open, but I can't go back to interactive mode by typing x.interact(): nothing happens, I just stay in the python shell

If I open a second y dv3d canvas, and plot to it, and do a y.interact(), I can interact with y, but I also gain back the control of the x canvas. And I have to click 2 times in both of the canvas windows close button to lose control of the canvases.

And there is also the problem that nothing happens when I call the close() method a the dv3d canvas: I get a closing! debug message that should probably be removed, but the canvas stays open

>>> x.close()
Closing!
>>> y.close()
Closing!
>>>
@chaosphere2112
Copy link
Contributor

@jypeter As far as the y.interact() giving you access to x, that's expected behavior. There's no way to discriminate between multiple canvases at this time.

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

3 participants