Hi,
I just running an old software I made some months ago using wxPython 2.8.x now in my Ubuntu 15.04 64bit (I compiled myself and install the v.3.0.2 running with Python 2.7) I can see this error:
Traceback (most recent call last):
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 195, in treeMainOnTreeSelChanged
self.addTab(it)
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 252, in addTab
self.CargaTablero()
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 358, in CargaTablero
pr = prod.clsProduccion(self)
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmProduccion.py”, line 20, in init
forms.frmProduccion.init( self, parent )
File “/home/mario/Proyectos/pymegestor/velantur/frm/forms.py”, line 4319, in init
fgSizer103.Add( fgIzqAbajo, 1, wx.EXPAND, 5 )
File “/usr/local/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py”, line 14453, in Add
return core.Sizer_Add(args, **kwargs)
wx._core.PyAssertionError: C++ assertion “Assert failure” failed at /home/mario/Programas/wxPython-src-3.0.2.0/src/common/sizer.cpp(1401) in DoInsert(): too many items (4 > 13) in grid sizer (maybe you should omit the number of either rows or columns?)
Any idea?? the software was running fine in previous version, thanks in advance for any advise.
···
Saludos / Best regards
Mario Lacunza
Email:: mlacunza@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Skype: mlacunzav
Lima - Peru
Hi Werner,
Looks like v 3 dont allow bad params
in v 2.8 this one:
fgSizer103 = wx.FlexGridSizer( 3, 1, 0, 0 )
works, but I checked my GUI and I can see 5 rows there with controls (not only 3), so I think now its not created dynamically… so I change the code to:
fgSizer103 = wx.FlexGridSizer( 5, 1, 0, 0 )
and its works now. Thanks!
···
2015-08-05 15:33 GMT-05:00 Werner wernerfbd@gmx.ch:
Hi,
I just running an old software I made some months ago using wxPython 2.8.x now in my Ubuntu 15.04 64bit (I compiled myself and install the v.3.0.2 running with Python 2.7) I can see this error:
Traceback (most recent call last):
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 195, in treeMainOnTreeSelChanged
self.addTab(it)
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 252, in addTab
self.CargaTablero()
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmMain.py”, line 358, in CargaTablero
pr = prod.clsProduccion(self)
File “/home/mario/Proyectos/pymegestor/velantur/frm/frmProduccion.py”, line 20, in init
forms.frmProduccion.__init__( self, parent )
File “/home/mario/Proyectos/pymegestor/velantur/frm/forms.py”, line 4319, in init
fgSizer103.Add( fgIzqAbajo, 1, wx.EXPAND, 5 )
File “/usr/local/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py”, line 14453, in Add
return _core_.Sizer_Add(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “Assert failure” failed at /home/mario/Programas/wxPython-src-3.0.2.0/src/common/sizer.cpp(1401) in DoInsert(): too many items (4 > 1*3) in grid sizer (maybe you should omit the number of either rows or columns?)
Hi Mario,
On 8/5/2015 20:14, Mario Lacunza wrote:
How do you create ‘fgSizer103’?
Werner
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saludos / Best regards
Mario Lacunza
Email:: mlacunza@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Skype: mlacunzav
Lima - Peru
Hi Mario,
Hi Werner,
Looks like v 3 dont allow bad params
in v 2.8 this one:
Yes v3 is stricter with some stuff.
fgSizer103 = wx.FlexGridSizer( 3, 1, 0, 0 )
works, but I checked my GUI and I can see 5 rows there with controls (not only 3), so I think now its not created dynamically... so I change the code to:
fgSizer103 = wx.FlexGridSizer( 5, 1, 0, 0 )
and its works now. Thanks!
BTW, I believe this would work too:
fgSizer103 = wx.FlexGridSizer( 0, 1, 0, 0 )
See the exception message
Werner
···
On 8/5/2015 22:43, Mario Lacunza wrote: