Was following the code examples in
http://wiki.dabodev.com/HowToUseADGridSizer
Code :
-------------------------------------------------------
gSzr = dabo.ui.dGridSizer()
for pta in range(32):
pta = dabo.ui.dImage(self,
Picture='../resources/Imagenes/system-log-out.png',
Size=(10, 20))
gSzr.append(pta, row=1, col=pta)
led = dabo.ui.dLed(self,
RegID='Puerta-{}'.format(pta),
OnColor='Green',
OffColor='Red',
On=False)
gSzr.append(led, row=1, col=pta)
hSzr.append(gSzr)
-------------------------------------------------------
Traceback :
-------------------------------------------------------
Traceback (most recent call last):
File "/home/richie/Python/WinProx/main.py", line 32, in <module>
app.start()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/dApp.py",
line 388, in start
self.setup()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/dApp.py",
line 340, in setup
self.initUIApp()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/dApp.py",
line 380, in initUIApp
self.uiApp.setup()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/uiApp.py",
line 432, in setup
frm = self.dApp.MainForm = mfc()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dForm.py",
line 1044, in __init__
*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dForm.py",
line 40, in __init__
attProperties=attProperties, *args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dFormMixin.py",
line 76, in __init__
attProperties=attProperties, *args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dPemMixin.py",
line 202, in __init__
self._afterInit()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dForm.py",
line 58, in _afterInit
super(BaseForm, self)._afterInit()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dFormMixin.py",
line 128, in _afterInit
super(dFormMixin, self)._afterInit()
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dPemMixin.py",
line 340, in _afterInit
self.afterInit()
File "/home/richie/Python/WinProx/ui/WinProx.py", line 237, in afterInit
gSzr.append(pta, row=1, col=pta)
File
"/usr/local/lib/python2.7/dist-packages/Dabo-0.9.13-py2.7.egg/dabo/ui/uiwx/dGridSizer.py",
line 75, in append
flag=_wxFlags, border=border)
File
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
14082, in Add
return _core_.GridBagSizer_Add(*args, **kwargs)
TypeError: Expected a 2-tuple of integers or a wxGBPosition object.
-------------------------------------------------------
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/52309d3e.9060...@gmail.com