コード例 #1
0
ファイル: toolkit.py プロジェクト: davidmorrill/facets
    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
ファイル: toolkit.py プロジェクト: davidmorrill/facets
 def layout_adapter_for(self, layout):
     """ Returns the GUI toolkit neutral adapter for the specified GUI
         toolkit specific layout manager.
     """
     return adapted_layout(layout)