Exemplo n.º 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)
Exemplo n.º 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)