wx.NoteBook tab autoclose

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

wx.NoteBook tab autoclose

Zickfor
Is there any way to automaticaly close tabs if it is not focused(you switched to another tab)

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/a53880c4-bb46-45c2-b723-79beed2c602b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wx.NoteBook tab autoclose

Robin Dunn
On Monday, June 24, 2019 at 2:13:25 PM UTC-7, Zickfor wrote:
Is there any way to automaticaly close tabs if it is not focused(you switched to another tab)

You can catch the EVT_NOTEBOOK_PAGE_CHANGED event and then call DeletePage for the old page.

--
RobinĀ 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/9469e8b1-2157-46a6-965e-228479536792%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.