'Fake a mouse-button-press on the bar. Co-ordinates are relative
to the top-left corner of the bar.
:screen The integer screen offset
:position One of "top", "bottom", "left", or "right"'

def cmd_fake_button_press(self, screen, position, x, y, button=1):

    class _Fake(object, ):
        pass
    fake = _Fake()
    fake.event_x = x
    fake.event_y = y
    fake.detail = button
    self.handle_ButtonPress(fake)
