Force a fake ctrl resize on populate/refresh in marketBrowser.ItemView in order to have the columns resized ( ListCtrlAutoWidthMixin listens on wx.EVT_SIZE and resizes columns when that event is produced - on wxgtk this event isn't generated )

This commit is contained in:
HomeWorld
2010-12-06 14:43:19 +02:00
parent c244398875
commit a777aba6e5

View File

@@ -344,6 +344,10 @@ class ItemView(d.Display, listmix.ListCtrlAutoWidthMixin):
self.active = stuff
d.Display.populate(self, stuff)
self.SetSize((-1, -1))
def refresh(self, stuff):
stuff.sort(key=self.itemSort)
d.Display.refresh(self, stuff)
self.SetSize((-1, -1))