Cannot close MessageDialog using kbd if text has focus



Hi all

I am developing an app using wxPython/GTK2 on FC5. I reported this issue to
the wxPython mailing list and was told that as MessageDialog is a native
widget, it should be reported to the GTK project. I *think* that the version
of GTK2 is 2.8.15 - not sure how to check properly.

If I display a MessageDialog with only an OK button, and the user presses
<tab> by mistake, focus passes to the message text, but it is not visually
obvious what has happened. If the user then presses <enter>, nothing happens
and it looks as if the application is not responding. The solution is to
press <tab> again, which passes focus back to the button. Then pressing
<enter> closes the dialog correctly. However, this is not obvious, and the
user can think that the application has hung.

Is this a bug? Normal behaviour with a dialog is that, if there is a default
button, pressing <enter> activates the button, even if it does not have
focus.

This problem does not occur with a MessageDialog with two buttons, such as
Yes/No. The text may have focus, but pressing <enter> does close the dialog
correctly.

A secondary point is that, if the text does have focus, this is not very
obvious visually - there is just a vertical non-blinking line to the left of
the text. Possibly the text should outlined with a dashed border.

Thanks

Frank Millman




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]