I stumbled across this control and it seemed the answer to my problems.
However I have one little problem; how to I make the contents grow to
fit the available space both horizontally and vertically?
Is there a standard way to do this or should I hack the code of this
control?
Paul
···
--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs
Paul Sijben wrote:
I stumbled across this control and it seemed the answer to my problems.
However I have one little problem; how to I make the contents grow to
fit the available space both horizontally and vertically?
Is there a standard way to do this or should I hack the code of this
control?
Paul
Are you talking about the wx.ListCtrl? It should "grow" automatically if you put it in a sizer with the appropriate flags. I usually do something like this:
mySizer.Add(myListCtrl, 1, wx.EXPAND)
Of course, you might find the ObjectListView widget easier to use in the long run: ObjectListView — ObjectListView v1.2 documentation
···
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
Mike Driscoll wrote:
Are you talking about the wx.ListCtrl?
no I am talking about this one
freenet.org.nz . Announced on this
list some time ago. The control sizes fine but the contents does not.
···
--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com
foundit. hacked the control. Now let’s see if I can make the thing
generic again and then I’ll share the update
Paul Sijben wrote:
···
http://www.freenet.org.nz/python/widgetlistctrl/
-- Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands -----------------------------------------------------
EemValley Technology werft python & wxpython programmeurs:
http://eemvalley.comhttp://www.eemvalley.nl/jobs