Test Gui closes after selecting mesh shape on Windows

Domino Marama's picture
Project:Primstar - Blender Scripts for Second Life Sculpties
Version:0.9.4-git
Component:User Interface
Category:bug report
Priority:normal
Assigned:Domino Marama
Status:fixed
Description

Test gui closes leaving just the tkinter root window after selecting a shape from the popup menu on Windows XP.

Linux does not have this problem, Mac status is unknown.

Comments

gaia.clary's picture

#1

Version:<none>» 0.9.4-git

The problem is again with the catching of the mouse click. It is obvious that mouse clicks are only catched (caught?) from the primstar GUI window. All menu entries in the sculpt selection menu do NOT catch mouse clicks or probably the better description is "All elements of the sculpt selection menu are interpreted to be outside of the primstar GUI and thus as soon as a click occurs on these elements, the primstar GUI will see "a click outside of my canvas" and close. Apparently this problem does only occur on Windows ? I remember that in the original implementation i added the ability to catch mouse clicks from all over the screen in order to get around this problem.

What can we do? 

- Make the primstar GUI bigger and ensure, that the selection menu keeps fully inside the primstar menu. Simple but effective Wink

- revert to the full screen catching as it was done a few months ago. (maybe only for windows, how could i create operating system dependent code ?)

- consider again to revert to the "simple GUI" and try to make that better.

Domino Marama's picture

#2

If you can identify which events are occuring when the click outside the Window occurs, it may be that we can add an event handler to the appropriate widgets to handle the mouse click, thus preventing the root from ever seeing it when a menu is involved.

Domino Marama's picture

#4

Assigned to:Anonymous» Domino Marama
Status:active» fixed

Fixed in Primstar 0.9.11

Post new comment

Edit issue settings
Note: changing any of these items will update the issue's overall values.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p> <pre>
  • Lines and paragraphs break automatically.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options