wxPython Dialog

Hello,
    I would like to make a window that is modal (like a dialog) but can contain a menu bar (like a frame). Any ideas? Thanks.

Gilad

Gilad Suberri wrote:

Hello, I would like to make a window that is modal (like a dialog)
but can contain a menu bar (like a frame). Any ideas?

Use a wxFrame and call it's MakeModal method.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Does anyone have more information on the EVT_LIST_DELETE_ITEM() for a list
ctrl? I thought it would be called when the user presses the delete key with
the focus on a list box, but that does not seem to be the case. Thanks.

Gilad

Gilad Suberri wrote:

Does anyone have more information on the EVT_LIST_DELETE_ITEM() for a list
ctrl? I thought it would be called when the user presses the delete key with
the focus on a list box, but that does not seem to be the case. Thanks.

No that event is only sent when an item has been deleted from the list. If you want the delete key to delete the current item theh you'll need to catch the key event yourself and then call DeleteItem.

BTW, for questions like this it is better to ask them on the wxPython-users maillist.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!