theodox / mGui

Python module for cleaner maya GUI layout syntax
MIT License
123 stars 23 forks source link

recursive application of `wrap()`? #80

Closed theodox closed 7 years ago

theodox commented 7 years ago

Relating to the earlier discussion #77 -- should we extend the strategy in #79 for getting wrapped editors from wrapped panels so that all wrapped mGui controls recursively generate wrapped children? What pros and cons there?

theodox commented 7 years ago

Apart from parent/child relationships, what other gui objects need to return wrappers from their flags?

bob-white commented 7 years ago

popupMenuArray is one culprit, it's on all Control instances. childArray is on all Layout instances menuArray is on Window and MenuBarLayout collectionItemArray on RadioCollection and ToolCollection itemListLong and itemListShort on OptionMenu

theodox commented 7 years ago

add more hiere as we find

theodox commented 7 years ago

I've been thinking this one over and I'm less concerned with it... returning wrapped items is a lot of work to do everywhere particularly because of the complexities of wrapping callbacks. thoughts?

bob-white commented 7 years ago

Yeah, given the pre-existing callback complexity it might be one of those 'would be nice' ideas that we just hold in reserve until we come up with a less insane way of handling it.

theodox commented 7 years ago

OK, retiring this one