[Bf-committers] Declarative UI Experiment

Dan Eicher dan at trollwerks.org
Fri Aug 13 16:42:53 CEST 2010

I'm kind of curious if there's a python equivalent of uiLayoutSetActive()?
-- which would probably take care of 99% of the if cases.

That's what I was talking about with a poll function, just pass a callable
python object (or dump the contents of a <script> tag) to it like
uiLayoutSetActive(subcol, PyObject_CallObject(foo, foo_arg)).

Seems like since the functionality already exists it just needs a little
python wrapper (or xml parser) love to replace the current if/else method of
button visibility.

Another plus is the conditional become part of the UI element and could
theoretically be modified during a program run from scripts and such.

More information about the Bf-committers mailing list