for name in ['formes'] + self.etoiles :
self.InsertColumn(i,name,wx.LIST_FORMAT_LEFT)
i+=1
- self.SetColumnWidth(0, 180)
+ self.SetColumnWidth(0, 250)
for i in range(0,len(self.etoiles)):
- self.SetColumnWidth(i + 1, self.checkcolumnwidth(len(self.etoiles[i]) * 10))
+ size = self.checkcolumnwidth(len(self.etoiles[i]) * 20)
+ if size < 200 :
+ size = 200
+ self.SetColumnWidth(i + 1, size)
self.itemDataMap = self.dlist
self.itemIndexMap = list(self.dlist.keys())
self.SetItemCount(len(self.dlist))
events.append(data)
self.parent = parent
self.ira = parent
- font = wx.Font(pointSize=self.ira.fontsize + 2, family=wx.FONTFAMILY_DEFAULT, style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL)
+ font = wx.Font(pointSize=self.ira.fontsize, family=wx.FONTFAMILY_DEFAULT, style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL)
self.SetFont(font)
self.events = events
self.styles = treestyles