Finish first complete implementation of character implant editor: needs

polishing
This commit is contained in:
cncfanatics
2010-09-30 15:10:10 +02:00
parent bb49727317
commit 60d3ae7a8a
3 changed files with 76 additions and 7 deletions

View File

@@ -23,9 +23,9 @@ from gui.builtinViewColumns import *
import sys
class Display(wx.ListCtrl):
def __init__(self, parent):
def __init__(self, parent, style = 0):
wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | wx.BORDER_NONE)
wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | wx.BORDER_NONE | style)
self.imageList = wx.ImageList(16, 16)
self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL)
@@ -149,6 +149,10 @@ class Display(wx.ListCtrl):
self.Select(sel)
self.Thaw()
def update(self, stuff):
self.populate(stuff)
self.refresh(stuff)
def getColumn(self, point):
x = point[0]
total = 0