DirectGUI Button Positioning

I’m just experimenting around trying to learn DirecGUI, and I want to put a button at the top left corner of a frame, but completely inside the frame. Is there a way to change the anchor of the button so it’s at, say, the top left corner of the button? By default the anchor seems to be at the bottom center of the text, not even the center of the button…

import direct.directbase.DirectStart
from direct.gui.DirectGui import *

myFrame = DirectFrame(frameColor = (0, 0, 255, 1),
                      frameSize = (-0.5, 0.5, -0.5, 0.5),
                      pos = (-0.5, 0, 0))

button = DirectButton(text = "Text",
                      scale = 0.05)

(left, right, bottom, top) = myFrame["frameSize"]
frameWidth = abs(right - left)
frameHeight = abs(top - bottom)

button.reparentTo(myFrame)
button.setPos(-frameWidth / 2.0, 0, frameHeight / 2.0)

run()