Some changes in graphFrame, it doesnt look awesome, but it's nonetheless prettier than before
This commit is contained in:
@@ -25,7 +25,7 @@ import sys
|
|||||||
class Display(wx.ListCtrl):
|
class Display(wx.ListCtrl):
|
||||||
def __init__(self, parent, style = 0):
|
def __init__(self, parent, style = 0):
|
||||||
|
|
||||||
wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | wx.BORDER_NONE | style)
|
wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | ( style | wx.BORDER_NONE if not (style & wx.SIMPLE_BORDER) else style) )
|
||||||
self.imageList = wx.ImageList(16, 16)
|
self.imageList = wx.ImageList(16, 16)
|
||||||
self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL)
|
self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL)
|
||||||
self.activeColumns = []
|
self.activeColumns = []
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ class GraphFrame(wx.Frame):
|
|||||||
self.subplot.grid(True)
|
self.subplot.grid(True)
|
||||||
|
|
||||||
self.mainSizer.Add(self.canvas, 1, wx.EXPAND)
|
self.mainSizer.Add(self.canvas, 1, wx.EXPAND)
|
||||||
|
self.mainSizer.Add(wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ), 0 , wx.EXPAND)
|
||||||
|
|
||||||
self.gridPanel = wx.Panel(self)
|
self.gridPanel = wx.Panel(self)
|
||||||
self.mainSizer.Add(self.gridPanel, 0, wx.EXPAND)
|
self.mainSizer.Add(self.gridPanel, 0, wx.EXPAND)
|
||||||
@@ -198,15 +199,15 @@ class FitList(wx.Panel):
|
|||||||
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
|
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||||
self.SetSizer(self.mainSizer)
|
self.SetSizer(self.mainSizer)
|
||||||
|
|
||||||
self.mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Fits: Drag fits onto the list to graph them"), 0, wx.ALIGN_CENTER_HORIZONTAL)
|
|
||||||
|
|
||||||
self.fitList = FitDisplay(self)
|
self.fitList = FitDisplay(self)
|
||||||
self.mainSizer.Add(self.fitList, 1, wx.EXPAND)
|
self.mainSizer.Add(self.fitList, 1, wx.EXPAND)
|
||||||
|
fitToolTip = wx.ToolTip("Drag a fit into this list to graph it")
|
||||||
|
self.fitList.SetToolTip(fitToolTip)
|
||||||
|
|
||||||
class FitDisplay(gui.display.Display):
|
class FitDisplay(gui.display.Display):
|
||||||
DEFAULT_COLS = ["Base Icon",
|
DEFAULT_COLS = ["Base Icon",
|
||||||
"Base Name"]
|
"Base Name"]
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
gui.display.Display.__init__(self, parent)
|
gui.display.Display.__init__(self, parent, style = wx.SIMPLE_BORDER)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user