Example #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)
Example #2
0
 def control_adapter_for(self, control):
     """ Returns the GUI toolkit neutral adapter for the specified GUI
         toolkit specific control.
     """
     return adapted_control(control)
Example #3
0
 def control_at(self, x, y):
     """ Returns the Control at the specified screen coordinates, or None if
         there is no control at that position.
     """
     return adapted_control(QApplication.widgetAt(x, y))