From: pierre Date: Wed, 4 Sep 2024 09:20:15 +0000 (+0200) Subject: font X-Git-Url: http://iramuteq.org/git?a=commitdiff_plain;h=5bd29abeeb32560b6f1a528db14102af98f326e3;p=iramuteq font --- diff --git a/listlex.py b/listlex.py index 41fa727..58f2a0a 100644 --- a/listlex.py +++ b/listlex.py @@ -83,9 +83,12 @@ class ListForSpec(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSor 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)) diff --git a/tree.py b/tree.py index 67df4c3..39bee82 100755 --- a/tree.py +++ b/tree.py @@ -136,7 +136,7 @@ class LeftTree(CT.CustomTreeCtrl): 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