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