PYME.ui.cascading_layout module

A mixin for wxPython windows that allows for cascading layout of parent windows. This allows easier hiding and showing of nested panels.

This is a cleaner and more easily readable replacement for the previous fold1() method in the fold panels.

class PYME.ui.cascading_layout.CascadingLayoutMixin

Bases: object

cascading_layout(depth=0)

Lays out the parent window in a cascading fashion.

class PYME.ui.cascading_layout.CascadingLayoutPanel(*args, **kwargs)

Bases: mClass, CascadingLayoutMixin

A panel that supports cascading layout.