Dear all,
on windows 10, python 2.7 and wxpython 3 I noted a thing:
notebook.AddPage fires EVT_NOTEBOOK_PAGE_CHANGED only if the “select” parameters of notebook.AddPage is True.
Any idea how to fix that?
On linux I have no problem.
Thank you very much.
Best.
Paolo
Paolo Zaffino wrote:
on windows 10, python 2.7 and wxpython 3 I noted a thing:
notebook.AddPage fires EVT_NOTEBOOK_PAGE_CHANGED only if the "select"
parameters of notebook.AddPage is True.
Any idea how to fix that?
What would you want to fix? Unless you specify "select", the new page
will be added without being displayed, so the current page is not
changed, and the EVT_NOTEBOOK_PAGE_CHANGED event should not fire.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Thanks a lot for answering!
Yes, it definitely makes sense.
But why on Linux even if I do not set select=True, EVT_NOTEBOOK_PAGE_CHANGED is fired?
Thank you very much.
Best.
Paolo
···
On Thursday, November 3, 2016 at 11:17:47 PM UTC+1, Paolo Zaffino wrote:
Dear all,
on windows 10, python 2.7 and wxpython 3 I noted a thing:
notebook.AddPage fires EVT_NOTEBOOK_PAGE_CHANGED only if the “select” parameters of notebook.AddPage is True.
Any idea how to fix that?
On linux I have no problem.
Thank you very much.
Best.
Paolo
Don’t know. If the visible tab doesn’t change, then I’d call that a
bug in the Linux code. Do you see the tab change when you add a new
one?
I can try this with my wxWidgets C++ app and see if the same thing
happens.
···
Paolo Zaffino wrote:
Thanks a lot for answering!
Yes, it definitely makes sense.
But why on Linux even if I do not set select=True,
EVT_NOTEBOOK_PAGE_CHANGED is fired?
-- Tim Roberts, Providenza & Boekelheide, Inc.
timr@probo.com
Thanks a lot!
I'm trying to figure out if there is something else that causes that.
I'll let you know.
Thanks again.
Paolo
···
On 04/11/2016 18:15, Tim Roberts wrote:
Paolo Zaffino wrote:
Thanks a lot for answering!
Yes, it definitely makes sense.
But why on Linux even if I do not set select=True, EVT_NOTEBOOK_PAGE_CHANGED is fired?
Don't know. If the visible tab doesn't change, then I'd call that a bug in the Linux code. Do you see the tab change when you add a new one?
I can try this with my wxWidgets C++ app and see if the same thing happens.
--
Tim Roberts,timr@probo.com
Providenza & Boekelheide, Inc.
--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/KryZyouWUrY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com <mailto:wxpython-users+unsubscribe@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.