[wxPython] Boa01alpha and non american keyboards

Boa 0.1alpha and european keyboards

To Riaan and all Boa 0.1alpha users

Windows 98SE, Python 2.1.1, wxPython 2.3.2, swiss french keyboard

Boa 0.0.5 had problems with european keyboards (AltGr + XXX keys). In Boa
0.1alpha, a "mapping key procedure", handleSpecialEuropeanKeys(), has been
introduced to solve this.

There was the same type of problem with PyCrust 0.6. After some mail
exchanges with Patrick O'Brien (PyCrust) and Robin Dunn, we can conclude to
the following:
- wxStyledTextCtrl from wxPython 2.3.1 was not ok with european keyboards.
- wxStylesTextCtrl from wxPython 2.3.2 is working ok.
- a PyCrust version 0.7.1 has been released and is working correctly. (but
not the 0.7 from the wxPython 2.3.2 demo)

Back to Boa 0.1alpha
- it uses wxPython 2.3.2, so the wxStyledTextCtrl is working fine.
- look in the module shell.py, def OnKeyDown(self, event):, from PyCrust
0.7.1 to see how Ctrl+Alt+keys (AltGr+keys) are handled.
- boa 0.1alpha is working ok on my non american keyboards even if the the
flag handleSpecialEuropeanKeys() is false.
- so let all the handleSpecialEuropeanKeys() and euroKeysCountry = 'euro'
stuff away from boa.
- A problem like this should be a wxWindows/wxPython problem and must not be
corrected in an application
- I made tests with swiss french and swiss german keyboards and
handleSpecialEuropeanKeys = false: that's ok

Regards

Jean-Michel Fauth, Martigny, Switwerland

Hi Jean-Michel, thanks for the report and testing.

In Boa 0.1.0-alpha with handleSpecialEuropeanKeys=false the correct
thing happens by default. (Same as in PyCrust 0.7.1, do nothing and
Skip() the event)

I will remove the handleSpecialEuropeanKeys tests and preferences
from the code.

I've never been able to test any of this as I have a standard keyboard,
but it sounds as if it has been sorted out.

Thanks,

Jean-Michel Fauth wrote:

···

Boa 0.1alpha and european keyboards

To Riaan and all Boa 0.1alpha users

Windows 98SE, Python 2.1.1, wxPython 2.3.2, swiss french keyboard

Boa 0.0.5 had problems with european keyboards (AltGr + XXX keys). In Boa
0.1alpha, a "mapping key procedure", handleSpecialEuropeanKeys(), has been
introduced to solve this.

There was the same type of problem with PyCrust 0.6. After some mail
exchanges with Patrick O'Brien (PyCrust) and Robin Dunn, we can conclude to
the following:
- wxStyledTextCtrl from wxPython 2.3.1 was not ok with european keyboards.
- wxStylesTextCtrl from wxPython 2.3.2 is working ok.
- a PyCrust version 0.7.1 has been released and is working correctly. (but
not the 0.7 from the wxPython 2.3.2 demo)

Back to Boa 0.1alpha
- it uses wxPython 2.3.2, so the wxStyledTextCtrl is working fine.
- look in the module shell.py, def OnKeyDown(self, event):, from PyCrust
0.7.1 to see how Ctrl+Alt+keys (AltGr+keys) are handled.
- boa 0.1alpha is working ok on my non american keyboards even if the the
flag handleSpecialEuropeanKeys() is false.
- so let all the handleSpecialEuropeanKeys() and euroKeysCountry = 'euro'
stuff away from boa.
- A problem like this should be a wxWindows/wxPython problem and must not be
corrected in an application
- I made tests with swiss french and swiss german keyboards and
handleSpecialEuropeanKeys = false: that's ok

Regards

Jean-Michel Fauth, Martigny, Switwerland

--
Riaan Booysen
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net

Most of us have standard keyboards. Just
not the same standard. :slight_smile: I think you mean
that you have an English standard keyboard.
(I was about to type "English keyboard" but
I guess it's more likely to be from SE Asia...
Oh, never mind...)

But the computer doesn't know what keyboard
you have! You can always tell it that you have
another keyboard. That's simple in both Windows
and Linux at least. If you can't find out what
keys to expect in different locations, I'm
sure we can help you, but it's rather simple
to find out by typing stuff in a word processor
or something like that and see what happens.
This will not damage you computer. :wink: Note
that in non-English keyboards, the AltGr key
is used to get some symbols, but AltGr is
the same as Ctrl+Alt, so you don't need that
key anyway.

So, if you want to make people in the rest of
the world happy: Switch keyboard settings once
in a while and see what happens. Maybe you'll
be given a lot of free beer next time you come
to Europe? :wink:

I have a Swedish standard keyboard, but if my
wife writes letters to her relatives, we'll
just pretend it's a Lithuanian keyboard so that
she get's her own alphabet. No problem. Windows
swallows that, hook, bait and sink!

Hm... when I think of it, we do have one more
key than the US keyboards. Used to be 102 instead
of 101. Now it's 105 instead of 104, right? But
I'm pretty sure that extra key (lower left part
of the Enter key) is not dead if I switch to US
keyboard.... How is that? Now you confused me! :frowning:

Ever-so-slightly-off-topic-ly yours

Magnus

···

At 19:28 2002-02-25 +0200, Riaan Booysen wrote:

I've never been able to test any of this as I have a standard keyboard,
but it sounds as if it has been sorted out.

--
Magnus Lyckå, Thinkware AB
Älvans väg 99, SE-907 50 UMEÅ
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se