problem with navigation key

Hi all and merry crhistmas.

Attached script where i’ve problem with navigation tabs.

This form consists of a fltnotebook and 3 pages. The last page in

particular consists in the following format:

fltnotebook.page

→ wxPanel

     > -> PythnoSTC

           button1

           button2 

           button3

           button4 

           button5

Now if I go into the third page and I press tab the focus is made on the editor

I expected that when the focus is on the editor and press the esc key

the focus is made on the first button and the focus to any other tab

is made on other buttons. This feature works perfectly on Linux but not on Windows.

In fact, when the focus is on a first button the next tab but also the down arrow key move the focus back on page 3.

Someone can give light?

Attached script.

pannelli.py (19 KB)

···


Fabio Spadaro
www.fabiospadaro.com

Hi.

···

2010/12/24 Fabio Spadaro fabiolinospad@gmail.com

Hi all and merry crhistmas.
Attached script where i’ve problem with navigation tabs.

This form consists of a fltnotebook and 3 pages. The last page in

particular consists in the following format:

fltnotebook.page

→ wxPanel

     > -> PythnoSTC
           button1
           button2 
           button3
           button4 
           button5

Now if I go into the third page and I press tab the focus is made on the editor

I expected that when the focus is on the editor and press the esc key

the focus is made on the first button and the focus to any other tab

is made on other buttons. This feature works perfectly on Linux but not on Windows.

In fact, when the focus is on a first button the next tab but also the down arrow key move the focus back on page 3.

Someone can give light?

Attached script.

Fabio Spadaro
www.fabiospadaro.com

Any ideas or workaround?


Fabio Spadaro
www.fabiospadaro.com

It's probably because you are calling Skip in the event handlers and so the event is still being handled by the default handlers in the native widget.

···

On 12/24/10 7:09 AM, Fabio Spadaro wrote:

Hi all and merry crhistmas.
Attached script where i've problem with navigation tabs.
This form consists of a fltnotebook and 3 pages. The last page in
particular consists in the following format:

fltnotebook.page
> -> wxPanel
> -> PythnoSTC
                button1
                button2
                button3
                button4
                button5

Now if I go into the third page and I press tab the focus is made on the
editor
I expected that when the focus is on the editor and press the esc key
the focus is made on the first button and the focus to any other tab
is made on other buttons. This feature works perfectly on Linux but not
on Windows.
In fact, when the focus is on a first button the next tab but also the
down arrow key move the focus back on page 3.
Someone can give light?

--
Robin Dunn
Software Craftsman

Hi

···

2010/12/27 Robin Dunn robin@alldunn.com

On 12/24/10 7:09 AM, Fabio Spadaro wrote:

Hi all and merry crhistmas.

Attached script where i’ve problem with navigation tabs.

This form consists of a fltnotebook and 3 pages. The last page in

particular consists in the following format:

fltnotebook.page

→ wxPanel

→ PythnoSTC

            button1

            button2

            button3

            button4

            button5

Now if I go into the third page and I press tab the focus is made on the

editor

I expected that when the focus is on the editor and press the esc key

the focus is made on the first button and the focus to any other tab

is made on other buttons. This feature works perfectly on Linux but not

on Windows.

In fact, when the focus is on a first button the next tab but also the

down arrow key move the focus back on page 3.

Someone can give light?

It’s probably because you are calling Skip in the event handlers and so the event is still being handled by the default handlers in the native widget.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I tried to comment all Skip but still fails


Fabio Spadaro
www.fabiospadaro.com

Hi all.

pannelli.py (17.4 KB)

···

2010/12/28 Fabio Spadaro fabiolinospad@gmail.com

Hi

2010/12/27 Robin Dunn robin@alldunn.com

On 12/24/10 7:09 AM, Fabio Spadaro wrote:

Hi all and merry crhistmas.

Attached script where i’ve problem with navigation tabs.

This form consists of a fltnotebook and 3 pages. The last page in

particular consists in the following format:

fltnotebook.page

→ wxPanel

→ PythnoSTC

            button1

            button2

            button3

            button4

            button5

Now if I go into the third page and I press tab the focus is made on the

editor

I expected that when the focus is on the editor and press the esc key

the focus is made on the first button and the focus to any other tab

is made on other buttons. This feature works perfectly on Linux but not

on Windows.

In fact, when the focus is on a first button the next tab but also the

down arrow key move the focus back on page 3.

Someone can give light?

It’s probably because you are calling Skip in the event handlers and so the event is still being handled by the default handlers in the native widget.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I tried to comment all Skip but still fails


Fabio Spadaro
www.fabiospadaro.com

Attached new code with more bit about notebook 's wx.WANTS_CHAR in EditQuery class.
Once the focus is on button “1” the navigation between buttons can be done with any character except with

tab, enter and navigation key.
Someone tell me why?

Fabio Spadaro
www.fabiospadaro.com