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