Changed characterEditor.py to mirror the exact way shipBrowser.py works, this way the character editor will open, fixing ticket 173

This commit is contained in:
Weeknie
2010-10-23 20:42:27 +02:00
parent b57b22cb75
commit f94a8e6fdd
2 changed files with 3 additions and 7 deletions

View File

@@ -66,14 +66,11 @@ class CharacterEditor(wx.Frame):
self.navSizer.Add(self.skillTreeChoice, 1, wx.ALL | wx.EXPAND, 5)
buttons = (("new", wx.ART_NEW),
("copy", wx.ART_COPY),
("rename", bitmapLoader.getBitmap("rename", "icons")),
("delete", wx.ART_DELETE))
buttons = (("new", wx.ART_NEW), ("copy", wx.ART_COPY), ("rename", bitmapLoader.getBitmap("rename", "icons")), ("delete", wx.ART_DELETE))
size = None
for name, art in buttons:
bitmap = wx.ArtProvider.GetBitmap(art) if isinstance(art, unicode) else art
bitmap = wx.ArtProvider.GetBitmap(art, wx.ART_BUTTON) if name != "rename" else art
btn = wx.BitmapButton(self, wx.ID_ANY, bitmap)
if size is None:
size = btn.GetSize()

View File

@@ -52,7 +52,6 @@ class MainFrame(wx.Frame):
self.SetMinSize((1000, 700))
self.SetSize((1000, 700))
self.splitter = wx.SplitterWindow(self, style = wx.SP_LIVE_UPDATE)
self.notebookBrowsers = wx.Notebook(self.splitter, wx.ID_ANY)