Re: Regression in build 1964, AddGrowableCol fails

Scott Talbert <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
I'm guessing this is probably related to the size_t mapping changes that 
Robin did.

You're running 64-bit Windows?  Did you compile Phoenix yourself or did 
you use one of the precompiled versions?

On Tue, 12 Apr 2016, Eric Fahlgren wrote:

> > cat grow.py
> from __future__ import print_function
> 
> from sys import version
> print(version)
> 
> import wx
> print(wx.__version__)
> 
> app = wx.App()
> 
> sizer = wx.FlexGridSizer(4, 4, 0, 0)
> print("cols", sizer.GetCols(), sizer.EffectiveColsCount)
> print("rows", sizer.GetRows(), sizer.EffectiveRowsCount)
> 
> sizer.AddGrowableCol(1)
> for col in range(sizer.GetCols()):
>     print(col, sizer.IsColGrowable(col))
> 
> 
> > python grow.py
> 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit
> (AMD64)]
> 3.0.3.dev1943+fdf739f
> cols 4 4
> rows 4 4
> 0 False
> 1 True
> 2 False
> 3 False
> 
> > python grow.py
> 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit
> (AMD64)]
> 3.0.3.dev1964+f780b21
> cols 4 4
> rows 4 4
> Traceback (most recent call last):
>   File "grow.py", line 15, in <module>
>     sizer.AddGrowableCol(1)
> wx._core.wxAssertionError: C++ assertion "!m_cols || idx < (size_t)m_cols"
> failed at ..\..\src\common\sizer.cpp(1980) in
> wxFlexGridSizer::AddGrowableCol(): invalid column index
> 
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.