[wxPython-users] wx.Dialog and Hide()
Robin Dunn
robin at alldunn.com
Mon Jul 3 10:02:54 PDT 2006
roee88 shlomo wrote:
> Sure, but then again right after ShowModal() there must be Destroy() [at
> as much as I have cheked].
>
Since you are the one calling Destroy then if you want to support hiding
without destroying then you need to detect the situation when ShowModal
returns and handle it appropriately.
> I was able to by-pass this and 95% of all items can be hidden perfectly
> (the other 5% are wx.MessageDialog and wx.FileDialog which unlike
> wx.Dialog aren't top-level and unlike children they aren't being hidden
> when the parent does).
Because they are not wxWindows, but just a wrapper around a native
platform API that shows the native dialog.
>
> *Thank you Robin!*
>
> btw,
> I have noticed RegisterHotKey\UnregisterHotKey does not appear in the
> wxPython documentation (though it did in the past as it's available
> through google cached).
Which set of docs?
> Why?
> The reaon I'm asking is that UnregisterHotKey doesn't work.
> Coincidence? :-)
It's probably not intentional.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list