wx.MenuBar, wx.TaskBarIcon, wx.MessageDialog - How open dialog one time only ?

Hello,

  • launch the program (test.py).
  • select menu “Help\About” (first dialog).
  • select menu “About” into taskBarIcon (second dialog).

How can i open the about dialog one time only ?

Thanks you for the answer (no little example available).

test.py (2.56 KB)

images.py (7.27 KB)

You could disable or remove the menu item after you have shown the dialog.

···

On 8/20/11 7:40 AM, CJC wrote:

Hello,

- launch the program (test.py).
- select menu "Help\About" (first dialog).
- select menu "About" into taskBarIcon (second dialog).

How can i open the about dialog one time only ?

--
Robin Dunn
Software Craftsman