def setbitmapcursor_cb(self, pobj, data):
        if not self.pbitmapcur:
            self.pbitmapcur = xfl.fl_create_bitmap_cursor(bm1_bits, \
                    bm2_bits, bm1_width, bm1_height, bm1_width / 2, \
                    bm1_height / 2)

        xfl.fl_reset_cursor(xfl.FL_ObjWin(pobj))      # back to default
        xfl.fl_set_cursor(xfl.FL_ObjWin(pobj), self.pbitmapcur)
        xfl.fl_redraw_form(self.fd_cursor.cursor)
 def setanimatedcursor_cb(self, pobj, data):
     xfl.fl_reset_cursor(xfl.FL_ObjWin(pobj))      # back to default
     xfl.fl_set_cursor(xfl.FL_ObjWin(pobj), self.panimated)