ListCtrl icon-view question

PLATFORM:
Fedora Core 3 (Linux i686 AMD Athlon)
Python 2.3 and 2.4 depending on the Gods of the command-line.

wxPython, as reported by rpm -qa | grep wxPython
wxPython2.6-gtk2-unicode-2.6.3.2-fc2_py2.3

Hi,
Please see the attached code.

PROBLEM:
On Windows a list control using "big" icons will fill the area of the
control with the icons.
On Linux there is only one column on the far left.

In ascii art:
Windows:
X X X
X X X

Linux:
X
X
X
X
X
X

What am I missing, perhaps in the style of the list control?
Thanks,
Donn.

iconview.py (1.42 KB)

Donn Ingle wrote:

PLATFORM:
Fedora Core 3 (Linux i686 AMD Athlon)
Python 2.3 and 2.4 depending on the Gods of the command-line.

wxPython, as reported by rpm -qa | grep wxPython
wxPython2.6-gtk2-unicode-2.6.3.2-fc2_py2.3

Hi,
Please see the attached code.

PROBLEM:
On Windows a list control using "big" icons will fill the area of the
control with the icons.
On Linux there is only one column on the far left.

In ascii art:
Windows:
X X X X X X

Linux:
X

What am I missing, perhaps in the style of the list control?

A style of wx.LC_ICON|wx.LC_AUTOARRANGE should do it.

ยทยทยท

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

A style of wx.LC_ICON|wx.LC_AUTOARRANGE should do it.

Thanks a mill. I had wx.LC_ALIGN_TOP mixed-in with AUTOARRANGE and it didn't
work. I never thought to remove the ALIGN_TOP bit.

Much obliged,
Donn.