示例#1
0
    def adapter_for ( self, item ):
        """ Returns the correct type of adapter (control or layout) for the
            specified item.
        """
        if isinstance( item, wx.Window ):
            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 )