X-Git-Url: http://www.iramuteq.org/git?a=blobdiff_plain;f=ProfList.py;fp=ProfList.py;h=ebc9a53ddb8eed2c2a0c33fa3203f6c73b180733;hb=e6f6318b1ab077a97c10559b3323ccf158ae6203;hp=6038edb90ce316a372872fce9eeff0d4851175a3;hpb=971de797b3c5602affd200633161ba87576b93f5;p=iramuteq diff --git a/ProfList.py b/ProfList.py index 6038edb..ebc9a53 100644 --- a/ProfList.py +++ b/ProfList.py @@ -116,12 +116,12 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col self.InsertColumn(6, "forme", wx.LIST_FORMAT_RIGHT) self.InsertColumn(7, "p", wx.LIST_FORMAT_RIGHT) self.SetColumnWidth(0, 60) - self.SetColumnWidth(1, 70) - self.SetColumnWidth(2, 80) - self.SetColumnWidth(3, 100) - self.SetColumnWidth(4, 70) - self.SetColumnWidth(5, 60) - self.SetColumnWidth(6, 140) + self.SetColumnWidth(1, 100) + self.SetColumnWidth(2, 100) + self.SetColumnWidth(3, 120) + self.SetColumnWidth(4, 150) + self.SetColumnWidth(5, 100) + self.SetColumnWidth(6, 300) self.SetColumnWidth(7, wx.LIST_AUTOSIZE) #These two should probably be passed to init more cleanly #setting the numbers of items = number of elements in the dictionary @@ -131,8 +131,10 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col #mixins listmix.ListCtrlAutoWidthMixin.__init__(self) listmix.ColumnSorterMixin.__init__(self, len(classen[0])) - #sort by genre (column 2), A->Z ascending order (1) self.SortListItems(0, True) + #sort by genre (column 2), A->Z ascending order (1) + + #events #self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected) self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnPopupTwo, self)