Add the basic looks of the char picker, right above the stats pane
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
|
||||
import wx
|
||||
|
||||
class CharacterSelection(wx.Choice):
|
||||
class CharacterSelection(wx.Panel):
|
||||
def __init__(self, parent):
|
||||
wx.Choice.__init__(self, parent)
|
||||
wx.Panel.__init__(self, parent)
|
||||
mainSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
self.SetSizer(mainSizer)
|
||||
|
||||
mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Character: "), 0, wx.CENTER)
|
||||
|
||||
self.charChoice = wx.Choice(self)
|
||||
mainSizer.Add(self.charChoice, 1, wx.EXPAND)
|
||||
@@ -27,6 +27,7 @@ from gui.statsPane import StatsPane
|
||||
from gui.shipBrowser import ShipBrowser
|
||||
from wx.lib.wordwrap import wordwrap
|
||||
from gui.characterEditor import CharacterEditor
|
||||
from gui.characterSelection import CharacterSelection
|
||||
import aboutData
|
||||
from wx._core import PyDeadObjectError
|
||||
|
||||
@@ -74,9 +75,14 @@ class MainFrame(wx.Frame):
|
||||
self.additionsPane = AdditionsPane(self.fittingPanel)
|
||||
fittingSizer.Add(self.additionsPane, 0, wx.EXPAND)
|
||||
|
||||
self.statsCharPickerSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
self.statsSizer.Add(self.statsCharPickerSizer, 0, wx.EXPAND)
|
||||
|
||||
self.charSelection = CharacterSelection(statsFitviewPanel)
|
||||
self.statsCharPickerSizer.Add(self.charSelection, 0, wx.EXPAND)
|
||||
|
||||
self.statsPane = StatsPane(statsFitviewPanel)
|
||||
self.statsSizer.Add(self.statsPane, 0, wx.EXPAND)
|
||||
self.statsCharPickerSizer.Add(self.statsPane, 0, wx.EXPAND)
|
||||
|
||||
self.splitter.SplitVertically(self.notebookBrowsers, statsFitviewPanel)
|
||||
self.splitter.SetMinimumPaneSize(10)
|
||||
|
||||
Reference in New Issue
Block a user