Rework the stats pane to be modular, add a short sample on how it works too
This commit is contained in:
8
gui/builtinStatsViews/__init__.py
Normal file
8
gui/builtinStatsViews/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
__all__ = ["exampleView"]
|
||||
|
||||
columns = {}
|
||||
def registerView(column):
|
||||
columns[column.name] = column
|
||||
|
||||
def getView(name):
|
||||
return columns[name]
|
||||
Reference in New Issue
Block a user