More work on the drone pane, more specificly, a pwetty + & - button (not working yet) and a bit of polish on the columns

This commit is contained in:
cncfanatics
2010-09-05 09:55:37 +02:00
parent c05ae0c87c
commit a44ec58aaa
7 changed files with 68 additions and 30 deletions

View File

@@ -54,7 +54,7 @@ class AttributeDisplay(ViewColumn):
def getText(self, mod):
attr = mod.getModifiedItemAttr(self.info.name)
if attr:
return shorten(attr, 3, 0, 0)
return (shorten(attr, 3, 0, 3))
else:
return ""

View File

@@ -94,8 +94,8 @@ class Display(wx.ListCtrl):
for i, col in enumerate(self.activeColumns):
if not col.resized:
self.SetColumnWidth(i, wx.LIST_AUTOSIZE)
if self.GetColumnWidth(i) < 40:
self.SetColumnWidth(i, col.size)
if self.GetColumnWidth(i) < 40 and col.size == wx.LIST_AUTOSIZE:
self.SetColumnWidth(i, 40)
for sel in selection: