I did use pyCard very, very long ago, and want to try out gui2py which looks like a nice upgrade.
Following instructions I installed wxPython2.9-win32-2.9.4.0-py27 and gui2py-0.9.3-py2x.win32. I have Python 2.7.3 (win32) on a (French) Windows 7.
Trying out the examples in gui2py-0.9.3.zip, I can run the small ones but sample.pyw gives me the following exception :
>C:\Python\pythonw -u "sample.pyw"
Traceback (most recent call last):
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 1244, in OnTextChange
value = self.GetValue()
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 1269, in GetValue
return self._fromGUI( BaseMaskedTextCtrl.GetValue(self) )
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 1660, in _fromGUI
value = self._GetNumValue(value)
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 916, in _GetNumValue
return value.replace(self._groupChar, '').replace(self._decimalChar, '.').replace('(', '-').replace(')','').strip()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "sample.pyw", line 172, in <module>
top='46', width='101', parent='mywin.notebook.tab0', value=98.76, )
File "D:\python\3rd-party\gui2py-0.9.3\gui\controls\textbox.py", line 43, in __init__
Control.__init__(self, *args, **kwargs)
File "D:\python\3rd-party\gui2py-0.9.3\gui\component.py", line 642, in __init__
Component.__init__(self, parent, **kwargs)
File "D:\python\3rd-party\gui2py-0.9.3\gui\component.py", line 168, in __init__
self.wx_obj = self._wx_class(wx_parent, **self._wx_kwargs)
File "D:\python\3rd-party\gui2py-0.9.3\gui\controls\textbox.py", line 293, in __init__
masked.NumCtrl.__init__(self, *args, **kwargs)
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 618, in __init__
self.SetParameters(**init_args)
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 875, in SetParameters
newtext = self._toGUI(text)
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 1570, in _toGUI
value = self._GetNumValue(value)
File "C:\Python\lib\site-packages\wx-2.9.4-msw\wx\lib\masked\numctrl.py", line 916, in _GetNumValue
return value.replace(self._groupChar, '').replace(self._decimalChar, '.').replace('(', '-').replace(')','').strip()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)
Exception KeyError: ('mywin.notebook.tab0.numeric',) in <bound method TextBox.__del__ of gui.TextBox(id='', name='numeric', pos='', size='', alignment='right',
sizer_align='', sizer_border='', bgcolor='', client_size='',
editable='', enabled='', fgcolor='', helptext='',
parent='mywin.notebook.tab0', userdata='', visible='', onblur='',
onchange='', onfocus='', onkeydown='', onkeypress='', onkeyup='',
onmousedown='', onmousemove='', onmouseout='', onmouseover='',
onmouseup='', onmousewheel='', )> ignored
Thanks for any hint...
fp