Hi,
I have masked.TextCtrl:
self.maskedCtrl = masked.TextCtrl(self, wx.ID_ANY, mask='#{15}',
formatcodes='Fr<', size=(200,-1),
style=wx.ALIGN_RIGHT)
On Linux/GTK it's working fine. It accept only digits, but not latin chars nor cyrillic. But on a Windows 2000 it somehow allow to insert cyrillic chars and than I got an error:
\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 2876, in _OnChar
pos = self._adjustPos( orig_pos, key ) ## get insertion position, adjuste d as needed
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 4154, in _adjustPos
field = self._FindField(pos)
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 3068, in _FindField
raise IndexError('position %s out of range of control' % str(pos)) IndexError?: position 16 out of range of control Traceback (most recent call last):
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 2876, in _OnChar
pos = self._adjustPos( orig_pos, key ) ## get insertion position, adjuste d as needed
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 4154, in _adjustPos
field = self._FindField(pos)
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 3068, in _FindField
raise IndexError('position %s out of range of control' % str(pos)) IndexError?: position 16 out of range of control Traceback (most recent call last):
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 5363, in _OnKillFocus
self._AdjustField(self._GetInsertionPoint())
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 4102, in _AdjustField
field = self._FindField(pos)
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 3068, in _FindField
raise IndexError('position %s out of range of control' % str(pos)) IndexError?: position 16 out of range of control Traceback (most recent call last):
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 2876, in _OnChar
pos = self._adjustPos( orig_pos, key ) ## get insertion position, adjuste d as needed
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 4154, in _adjustPos
field = self._FindField(pos)
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 3068, in _FindField
raise IndexError('position %s out of range of control' % str(pos)) IndexError?: position 16 out of range of control Traceback (most recent call last):
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 5363, in _OnKillFocus
self._AdjustField(self._GetInsertionPoint())
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 4102, in _AdjustField
field = self._FindField(pos)
File "C: \Python24\lib\site-packages\wx-2.6-msw-unicode\wx\lib\masked\maskededi t.py", line 3068, in _FindField
raise IndexError('position %s out of range of control' % str(pos)) IndexError?: position 16 out of range of control
What is it, bug or not the bug?! How I can solve this or is there any workaround for it? Please, I need you help!
Thanks in advance!
PS. wxPython 2.6.3.2.1.5 - on Linux, wxPython 2.6.3.3 - on Windows!
···
--
Basil Shubin
Freelance Software Developer