Windows ListCtrl with multiple columns

Registered by Stani

Needs wx.LC_AUTOARRANGE

Blueprint information

Status:
Complete
Approver:
Stani
Priority:
Medium
Drafter:
Stani
Direction:
Approved
Assignee:
Stani
Definition:
Approved
Series goal:
Accepted for 0.2
Implementation:
Implemented
Milestone target:
milestone icon 0.2.8
Started by
Stani
Completed by
Stani

Related branches

Sprints

Whiteboard

Committed revision 1912.

$ bzr diff
=== modified file 'phatch/lib/pyWx/imageFileBrowser.py'
--- phatch/lib/pyWx/imageFileBrowser.py 2010-03-25 21:43:13 +0000
+++ phatch/lib/pyWx/imageFileBrowser.py 2010-03-26 22:46:24 +0000
@@ -44,7 +44,7 @@
     def __init__(self, parent, files, icon_size=ICON_SIZE,
             checkboard=False, force_size=(255, 255, 255), **keyw):
         super(ListCtrl, self).__init__(parent, -1,
- style=wx.LC_ICON | wx.LC_SINGLE_SEL, **keyw)
+ style=wx.LC_ICON | wx.LC_SINGLE_SEL | wx.LC_AUTOARRANGE, **keyw)
         #create image list
         self.image_list = wx.ImageList(*icon_size)
         self.icons = {}

=== modified file 'phatch/pyWx/gui.py'
--- phatch/pyWx/gui.py 2010-03-26 21:21:55 +0000
+++ phatch/pyWx/gui.py 2010-03-26 22:46:24 +0000
@@ -534,6 +534,8 @@
         if not self.dlg_library:
             if wx.Platform == '__WXMAC__':
                 height = 405
+ elif wx.Platform == '__WXMSW__':
+ height = 415
             else:
                 height = 390
             self.dlg_library = imageFileBrowser.Dialog(

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.