Work on some char stuff, more soon
This commit is contained in:
32
controller/character.py
Normal file
32
controller/character.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#===============================================================================
|
||||
# Copyright (C) 2010 Diego Duclos
|
||||
#
|
||||
# This file is part of pyfa.
|
||||
#
|
||||
# pyfa is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# pyfa is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
|
||||
#===============================================================================
|
||||
|
||||
import eos.db
|
||||
|
||||
class Character():
|
||||
instance = None
|
||||
@classmethod
|
||||
def getInstance(cls):
|
||||
if cls.instance is None:
|
||||
cls.instance = Character()
|
||||
|
||||
return cls.instance
|
||||
|
||||
def getCharacterList(self):
|
||||
map(lambda c: c.name, eos.db.getCharacterList())
|
||||
2
eos
2
eos
Submodule eos updated: 7cea84e99b...b557bb7ec5
@@ -90,6 +90,14 @@ class CharacterEditor (wx.Dialog):
|
||||
|
||||
self.Centre(wx.BOTH)
|
||||
|
||||
self.registerEvents()
|
||||
|
||||
def registerEvents(self):
|
||||
self.Bind(wx.EVT_CLOSE, self.closeEvent)
|
||||
|
||||
def closeEvent(self, event):
|
||||
pass
|
||||
|
||||
class NewCharacter (wx.Dialog):
|
||||
def __init__(self, parent):
|
||||
wx.Dialog.__init__ (self, parent, id=wx.ID_ANY, title=u"Create new character", pos=wx.DefaultPosition, size=wx.Size(344, 89), style=wx.DEFAULT_DIALOG_STYLE)
|
||||
|
||||
Reference in New Issue
Block a user