names of methods in wxwindows/wxpython

I am, more or less, new to wxpython. I've asked a few questions and read
quite a bit now. I have noticed a few 'method name changes' between
wxwindows and wxpython.

For example, to change the width of a column for a wxGrid object, in
wxwindows it's SetColumnWidth(int, int) and evidently, the same method in
wxpython is named SetColSize(int, int).

Since wxGrid isn't in my copy of the wxpython manual, I looked in the
wxwindows manual -- wrong -- unknown method in wxpython. Next, I looked
in the demo programs and found it.

I'm not complaining -- don't know enough to complain :slight_smile: -- but is this the
norm? Should I simply not look in the wxwindows manual? Should I rely
entirely on the demo programs as "the manual?"

gary

For example, to change the width of a column for a wxGrid object, in
wxwindows it's SetColumnWidth(int, int) and evidently, the same method in
wxpython is named SetColSize(int, int).

In my installation of wxPython 2.4.0.7 there is a SetColumnWidth in the
wxGrid and wxListCtrl classes, which I have used to set the column width as
you want to do.

In general, I have found that the wxWindows help covers everything
basically, but that wxPython has additional things that can make life
easier, but which you just have to find out about somehow or periodically
ramble through the demo and the source to find.
-Rick King

Same here. I use 2.4.0.7 as well and the docs are quite useful even if
they don't have everything. I refer to them daily.

···

On Thursday 01 May 2003 05:28 am, Rick King wrote:

> For example, to change the width of a column for a wxGrid object,
> in wxwindows it's SetColumnWidth(int, int) and evidently, the same
> method in wxpython is named SetColSize(int, int).

In my installation of wxPython 2.4.0.7 there is a SetColumnWidth in
the wxGrid and wxListCtrl classes, which I have used to set the
column width as you want to do.

In general, I have found that the wxWindows help covers everything
basically, but that wxPython has additional things that can make life
easier, but which you just have to find out about somehow or
periodically ramble through the demo and the source to find.
-Rick King

--
Chuck
http://ChuckEsterbrook.com

gh@rattler.cameron.edu wrote:

I am, more or less, new to wxpython. I've asked a few questions and read
quite a bit now. I have noticed a few 'method name changes' between
wxwindows and wxpython.

For example, to change the width of a column for a wxGrid object, in
wxwindows it's SetColumnWidth(int, int) and evidently, the same method in
wxpython is named SetColSize(int, int).

SetColumnWidth was left for compatibility with the old grid class. Since it was deprecated I didn't add it to the Python wrapper for the new class.

···

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