wx.lib.grids something missing ?

Hi

I've imported wx.lib.grids, and check what I've got:

import wx.lib.grids
dir( wx.lib.grids )

['__builtins__', '__cvsid__', '__doc__', '__file__', '__name__',
'__revision__']

Some how this seems not enought. I was expecting to find a GridSizer object.

A'm I doing something wrong ?

Thanks for sugestions

Przemek

ps. linux rh 9.0, python 2.2, wxPython 2.4.1.2.

···

--
Przemyslaw G. Gawronski
Informatyk w Sekcji Systemu, Telemetria
TNS OBOP
ul.Dereniowa 11
02-776 Warszawa
e przemyslaw.gawronski@tns-global.pl
t +48 22 648 20 44 (-46)
f +48 22 644 9947
http://www.tns-global.pl

Przemyslaw Gawronski wrote:

Hi

I've imported wx.lib.grids, and check what I've got:

import wx.lib.grids dir( wx.lib.grids )

['__builtins__', '__cvsid__', '__doc__', '__file__', '__name__',
'__revision__']

Some how this seems not enought. I was expecting to find a GridSizer object.

A'm I doing something wrong ?

No. The names from wxPython.lib.grids are not translated because they already exist in the core library. The wxGridSizer and wxFlexGrid sizer were ported to C++ a long time ago, but I left the python module in place to serve as an example of how to write sizers in Python.

You can use wx.GridSizer to access the one implemented in C++.

···

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