Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55618 > unrolled thread
| Started by | Mark Carter <alt.mcarter@gmail.com> |
|---|---|
| First post | 2011-02-11 04:52 -0800 |
| Last post | 2011-02-11 06:12 -0800 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
wx.Frame hidden, and customising the close button Mark Carter <alt.mcarter@gmail.com> - 2011-02-11 04:52 -0800
Re: wx.Frame hidden, and customising the close button Vlastimil Brom <vlastimil.brom@gmail.com> - 2011-02-11 14:39 +0100
Re: wx.Frame hidden, and customising the close button Mark Carter <alt.mcarter@gmail.com> - 2011-02-11 06:12 -0800
| From | Mark Carter <alt.mcarter@gmail.com> |
|---|---|
| Date | 2011-02-11 04:52 -0800 |
| Subject | wx.Frame hidden, and customising the close button |
| Message-ID | <03497879-b376-4d66-8c3b-93fb5b0fbbd3@d16g2000yqd.googlegroups.com> |
Is there a way of testing whether a frame (suppose I have it as a variable my_frame) is hidden in wxPython? Also, is there a way that I can over-ride the close button so that the frame becomes hidden rather than destroyed, and perform supplementary tests?
[toc] | [next] | [standalone]
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
|---|---|
| Date | 2011-02-11 14:39 +0100 |
| Message-ID | <mailman.100.1297431566.1633.python-list@python.org> |
| In reply to | #55618 |
2011/2/11 Mark Carter <alt.mcarter@gmail.com>: > Is there a way of testing whether a frame (suppose I have it as a > variable my_frame) is hidden in wxPython? > > Also, is there a way that I can over-ride the close button so that the > frame becomes hidden rather than destroyed, and perform supplementary > tests? > -- > http://mail.python.org/mailman/listinfo/python-list > Hi, For testing whether the frame is shown, you can simply use frm.IsShown() >>> my_frame.IsShown() True >>> [here shown with a shell connected to that frame] To intercept closing the window using a clicks on the "x icon" catch the respective event wx.EVT_CLOSE Check the sample e.g. in http://wiki.wxpython.org/wxPython%20by%20Example "Adding an Event Handler" (wxPython-specific questions may be rather discussed on that maillist: http://groups.google.com/group/wxpython-users/topics?pli=1 wxpython-users@googlegroups.com ) hth, vbr
[toc] | [prev] | [next] | [standalone]
| From | Mark Carter <alt.mcarter@gmail.com> |
|---|---|
| Date | 2011-02-11 06:12 -0800 |
| Message-ID | <d04a797b-bbbc-48bf-b195-bbc8950c4587@k7g2000yqj.googlegroups.com> |
| In reply to | #55931 |
On Feb 11, 1:39 pm, Vlastimil Brom <vlastimil.b...@gmail.com> wrote: > (wxPython-specific questions may be rather discussed on that maillist:http://groups.google.com/group/wxpython-users/topics?pli=1 Just the ticket! Many thanks!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web