FlatNotebook and EnableTab(False) on OSX

I’ve been messing about with FlatNotebook and having all kinds of success but I just ran into an interesting little problem. I have a several pages, and want to disable a few of them. EnableTab(tab_no, False) does just what it’s supposed to. However, the “You can’t go here” cursor which appears when you mouse-over a disabled tab doesn’t return to and Arrow cursor when you are no longer over the disabled tab, and I can’t seem to make it go back to the regular cursor. Is that possible? or is it a limitation of OSX?

···


Stand Fast,
tjg. [Timothy Grant]

My guess is something definitely Mac. I’ll take a look and see if I can find out where the cursor reset code is.

···

On Mon, Jul 14, 2008 at 12:59 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

Hi Tim,

On 7/14/08, Timothy Grant wrote:

I’ve been messing about with FlatNotebook and having all kinds of success

but I just ran into an interesting little problem. I have a several pages,

and want to disable a few of them. EnableTab(tab_no, False) does just what

it’s supposed to. However, the “You can’t go here” cursor which appears when

you mouse-over a disabled tab doesn’t return to and Arrow cursor when you

are no longer over the disabled tab, and I can’t seem to make it go back to

the regular cursor. Is that possible? or is it a limitation of OSX?

Well, as FlatNotebook is a custom drawn control, it should be

possible. Actually, it should already work… It works for me on

Windows XP, Python 2.5.2, wxPython 2.8.8.0. It may be another issue

with Mac, but unfortunately I don’t have a Mac to test it :frowning:

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


Stand Fast,
tjg. [Timothy Grant]

Andrea Gavana wrote:

Hi Tim,

I've been messing about with FlatNotebook and having all kinds of success
but I just ran into an interesting little problem. I have a several pages,
and want to disable a few of them. EnableTab(tab_no, False) does just what
it's supposed to. However, the "You can't go here" cursor which appears when
you mouse-over a disabled tab doesn't return to and Arrow cursor when you
are no longer over the disabled tab, and I can't seem to make it go back to
the regular cursor. Is that possible? or is it a limitation of OSX?

Well, as FlatNotebook is a custom drawn control, it should be
possible. Actually, it should already work... It works for me on
Windows XP, Python 2.5.2, wxPython 2.8.8.0. It may be another issue
with Mac, but unfortunately I don't have a Mac to test it :frowning:

There is no other SetCursor call in the module so there is nothing there to reset it back to the normal cursor. I expect that the only reason it works on Windows is a fortunate accident.

BTW, wxGTK has the same problem as Mac.

···

On 7/14/08, Timothy Grant wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi All,

···

On Mon, Jul 14, 2008 at 8:29 PM, Robin Dunn wrote:

Andrea Gavana wrote:

Hi Tim,

On 7/14/08, Timothy Grant wrote:

I've been messing about with FlatNotebook and having all kinds of success
but I just ran into an interesting little problem. I have a several
pages,
and want to disable a few of them. EnableTab(tab_no, False) does just
what
it's supposed to. However, the "You can't go here" cursor which appears
when
you mouse-over a disabled tab doesn't return to and Arrow cursor when you
are no longer over the disabled tab, and I can't seem to make it go back
to
the regular cursor. Is that possible? or is it a limitation of OSX?

Well, as FlatNotebook is a custom drawn control, it should be
possible. Actually, it should already work... It works for me on
Windows XP, Python 2.5.2, wxPython 2.8.8.0. It may be another issue
with Mac, but unfortunately I don't have a Mac to test it :frowning:

There is no other SetCursor call in the module so there is nothing there to
reset it back to the normal cursor. I expect that the only reason it works
on Windows is a fortunate accident.

BTW, wxGTK has the same problem as Mac.

Uhm, I didn't see that in my quick tests, as I only have Windows here
to check the code. Anyway, thanks for the advice, I'm modifying the
SVN source in this very moment :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/