direct.gui.OnscreenGeom

It looks like this problem has been addressed before:

Perhaps that post would solve your problem?