Hi there,
I’m new to wxPython and am developing a wxPython application which I want to be cross platform (at least between Linux and Windows). The application I have developed upto now contains a list of items. The items are dynamically populated as the user click button for relevant items in a different panel. The list of items are shown properly as I want in Linux. But in Windows the first colums size is huge and makes other columns into far right, which I can only see by dragging the horizontal scrolled bar.The code sinppet which I use to create the list headers is as follows
self.InsertColumn(0, "pppppp ", format=wx.LIST_FORMAT_LEFT)
self.SetColumnWidth(0, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(1, "mmmmmmmmm ", format=wx.LIST_FORMAT_LEFT)
self.SetColumnWidth(1, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(2, “fffffffffff”, format=wx.LIST_FORMAT_LEFT)
self.SetColumnWidth(2, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(3, "cccccccc ", format=wx.LIST_FORMAT_LEFT)
self.SetColumnWidth(3, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(4, “ddddddd”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(4, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(5, “qqqqqqq”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(5, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(6, " ssssss", format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(6, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(7, “rrrrrrrrrr”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(7, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(8, “zzzzzzz”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(8, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(9, “yyyyyyy”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(9, wx.LIST_AUTOSIZE_USEHEADER)
self.InsertColumn(10, “xxxxxx”, format=wx.LIST_FORMAT_RIGHT)
self.SetColumnWidth(10, wx.LIST_AUTOSIZE_USEHEADER)
The ListContrl is written in a separate class.
What could I possible be doing in terms of windows. I use python 2.7.5 in Linux but 2.7.3 in Windows, but I doubt that would be an issue. Also the wxPython version in Linux is (2.8.12.0) and in windows I use (3.0.0.0)