3 from ....util.pluggable import IsSubclass, construct_odict
\r
18 """List of panel modules. TODO: autodiscovery
\r
21 class Panel (object):
\r
22 """Base class for Hooke GUI panels.
\r
24 :attr:`name` identifies the request type and should match the
\r
27 def __init__(self, name=None, callbacks=None, **kwargs):
\r
28 super(Panel, self).__init__(**kwargs)
\r
30 if callbacks == None:
\r
32 self._callbacks = callbacks
\r
35 PANELS = construct_odict(
\r
36 this_modname=__name__,
\r
37 submodnames=PANEL_MODULES,
\r
38 class_selector=IsSubclass(Panel, blacklist=[Panel]),
\r
40 """:class:`hooke.compat.odict.odict` of :class:`Panel`
\r
41 instances keyed by `.name`.
\r