Properly size the first column of fittingview, this 'solves' a visual bug in wxmsw (winxp). Do not touch it without consulting me first

This commit is contained in:
HomeWorld
2010-11-15 18:31:25 +02:00
parent 458d1f995e
commit ebed3f3858
2 changed files with 3 additions and 3 deletions

View File

@@ -6,9 +6,9 @@ from eos.types import Drone, Fit, Module, Slot
class BaseIcon(ViewColumn):
name = "Base Icon"
def __init__(self, fittingView, params):
def __init__(self, fittingView, params, defaultSize = 16):
ViewColumn.__init__(self, fittingView)
self.size = 16
self.size = defaultSize
self.maxsize = self.size
self.mask = wx.LIST_MASK_IMAGE
self.columnText = ""

View File

@@ -28,7 +28,7 @@ class State(ViewColumn):
def __init__(self, fittingView, params):
ViewColumn.__init__(self, fittingView)
self.resizable = False
self.size = 24
self.size = 20
self.maxsize = self.size
self.mask = wx.LIST_MASK_IMAGE
for name, state in (("checked", wx.CONTROL_CHECKED), ("unchecked", 0)):