def do_tips(self, id_, pobj):
     onetext = ""
     #if xfl.fl_is_same_object(pobj, self.fd_form0.done):
     #    onetext = "Want to quit ?\nPress me"
     #elif xfl.fl_is_same_object(pobj, self.fd_form0.peek):
     #    onetext = "Turn preempting off"
     #elif xfl.fl_is_same_object(pobj, self.fd_form0.override):
     #    onetext = "Turn preempting on"
     xfl.fl_show_oneliner(onetext, pobj.contents.form.x + \
             pobj.contents.x, pobj.contents.form.y + \
             pobj.contents.y + pobj.contents.h + 1)
     self.timeoutID = xfl.fl_add_timeout(self.INTERVAL, self.do_tips, pobj)
def post(pobj, ev, mx, my, key, pxev):

    if ev == xfl.FL_PUSH or ev == xfl.FL_MOTION:
        wx, wy = xfl.fl_xyplot_s2w(pobj, mx, my)
        buf = "x=%d y=%d wx=%.1f wy=%.1f" % (mx, my, wx, wy)
        xfl.fl_show_oneliner(buf, pobj.contents.x + \
                pobj.contents.form.contents.x + 5, pobj.contents.y + \
                pobj.contents.form.contents.y)
        #  xfl.fl_object_ps_dump(pobj, "test.ps")
        pobj.contents.wantkey = xfl.FL_KEY_ALL
        pobj.contents.input = 1
    elif ev == xfl.FL_RELEASE:
        xfl.fl_hide_oneliner()
    elif ev == xfl.FL_KEYPRESS:
        keytxt = "key=%d\n" % key
        print(keytxt)

    return 0