Show preference pages in the order they appear in builtinPreferenceViews

This commit is contained in:
blitzmann
2014-03-02 20:02:36 -05:00
parent cd5d047891
commit ea3969e1e3
4 changed files with 6 additions and 10 deletions

View File

@@ -20,17 +20,13 @@
import wx
class PreferenceView(object):
views = {}
views = []
def __init__(self):
pass
@classmethod
def register(cls):
PreferenceView.views[cls.title] = cls()
@classmethod
def getView(cls, name):
return cls.views[name]
PreferenceView.views.append(cls())
def populatePanel(self, panel):
raise NotImplementedError()