def adapter_for ( self, item ): """ Returns the correct type of adapter (control or layout) for the specified item. """ if isinstance( item, QWidget ): return adapted_control( item ) return adapted_layout( item )
def layout_adapter_for ( self, layout ): """ Returns the GUI toolkit neutral adapter for the specified GUI toolkit specific layout manager. """ return adapted_layout( layout )