예제 #1
0
    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 )
예제 #2
0
 def layout_adapter_for ( self, layout ):
     """ Returns the GUI toolkit neutral adapter for the specified GUI
         toolkit specific layout manager.
     """
     return adapted_layout( layout )