Permalink
Browse files

Allow Deferred as kwarg to .display().

  • Loading branch information...
ralphbean committed Jul 11, 2012
1 parent 284c66a commit d4c6dcfc68d46e7dc6c384ee0524d1fdce951aa2
Showing with 5 additions and 0 deletions.
  1. +5 −0 tw2/core/widgets.py
@@ -396,6 +396,11 @@ def display(self, cls, value=None, displays_on=None, **kw):
else:
self = cls.req(**kw)
# Register any deferred params that are handed to us late in the game
# (after post_define). The .prepare method handles processing them
# later.
self._deferred += [k for k, v in kw.items() if isinstance(v, pm.Deferred)]
if not self.parent:
self.prepare()

0 comments on commit d4c6dcf

Please sign in to comment.