font
authorpierre <ratinaud@univ-tlse2.fr>
Wed, 4 Sep 2024 09:20:15 +0000 (11:20 +0200)
committerpierre <ratinaud@univ-tlse2.fr>
Wed, 4 Sep 2024 09:20:15 +0000 (11:20 +0200)
listlex.py
tree.py

index 41fa727..58f2a0a 100644 (file)
@@ -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 (executable)
--- 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