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)
def control_adapter_for(self, control): """ Returns the GUI toolkit neutral adapter for the specified GUI toolkit specific control. """ return adapted_control(control)
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))