theodox / mGui

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

Extends the API of ObservableCollection by inheriting from MutableSequence #38

Closed bob-white closed 8 years ago

bob-white commented 8 years ago

This made it a lot easier to teach others how to work with the collections, as they could just reuse what they knew about manipulating lists.

I also went ahead and added a reverse method, which for some reason is not on the MutableSequence abstract class. Though it looks like they fixed this somewhere along the lines for Py3.

The original API was left in place, and all tests continue to pass.

Also extended the API of BoundCollection by inheriting from Sequence, which makes it more tuple-like.

theodox commented 8 years ago

I'm pulling this into remove_keys, I'll try it out that way and merge it sideways. I want to make sure I understand how it fires the update events