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:
@@ -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 = ""
|
||||
|
||||
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user