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 )
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( wx.FindWindowAtPoint( wx.Point( x, y ) ) )