wx.lib.rcsizer

A couple of questions:

1) With wx.GridBagSizer (whatta name!), is rcsizer going to be deprecated?
I've been adding deprecation warnings to the deprecated modules as I go
along, so now's as good a time as any if that's the case.

2) I can't see what's wrong with this code. Previously, it was:

        curWidth = self.GetSize().width
        curHeight = self.GetSize().height

I changed it to:

        curWidth, curHeight = self.GetSize()

I get an exception:

Traceback (most recent call last):
  File "C:\Python\lib\site-packages\wx\lib\rcsizer.py", line 134, in
RecalcSizes

    (curWidth, curHeight) = self.GetSize()
  File "C:\Python\lib\site-packages\wx\core.py", line 6891, in GetSize
    return _core.Sizer_GetSize(*args, **kwargs)
TypeError: Expected a pointer

Any ideas? It's 1:30 AM, I should probably hit the sack.

Jeff Grimmett wrote:

A couple of questions:

1) With wx.GridBagSizer (whatta name!), is rcsizer going to be deprecated?
I've been adding deprecation warnings to the deprecated modules as I go
along, so now's as good a time as any if that's the case.

It probably could be.

2) I can't see what's wrong with this code. Previously, it was:

        curWidth = self.GetSize().width
        curHeight = self.GetSize().height

I changed it to:

        curWidth, curHeight = self.GetSize()

I get an exception:

Traceback (most recent call last):
  File "C:\Python\lib\site-packages\wx\lib\rcsizer.py", line 134, in
RecalcSizes

    (curWidth, curHeight) = self.GetSize()
  File "C:\Python\lib\site-packages\wx\core.py", line 6891, in GetSize
    return _core.Sizer_GetSize(*args, **kwargs)
TypeError: Expected a pointer

Probably a problem in the wrapper for __getitem__ or something. I'll take a look.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

> 1) With wx.GridBagSizer (whatta name!), is rcsizer going to be
deprecated?
> I've been adding deprecation warnings to the deprecated modules as I go
> along, so now's as good a time as any if that's the case.

It probably could be.

Command and it shall be so :slight_smile:

> curWidth, curHeight = self.GetSize()
>
> I get an exception:
>
> Traceback (most recent call last):
> File "C:\Python\lib\site-packages\wx\lib\rcsizer.py", line 134, in
> RecalcSizes
>
> (curWidth, curHeight) = self.GetSize()
> File "C:\Python\lib\site-packages\wx\core.py", line 6891, in GetSize
> return _core.Sizer_GetSize(*args, **kwargs)
> TypeError: Expected a pointer

Probably a problem in the wrapper for __getitem__ or something. I'll
take a look.

OK. I'll move on.