Configuring the Display?

Hello,
I do something like:

from my_app_manager import app, speak
from direct.gui.DirectGui import *
from panda3d.core import loadPrcFileData

loadPrcFileData('', 'load-display pandadx9')

def spk():
	speak("Hello world")

button = DirectButton(text="Big Bad Button", command=spk)
app.run()

The button doesn’t seem to be connected to UIA or MSAA. am I doing the directX configuration correct?
Is there a better way to configure the load-display at runtime rather than using the prc file? Something like

from pandac.PandaModules import WindowProperties
w = WindowProperties()
w.setFullscreen(True)

app.win.requestProperties(w)

I don’t think I’m configuring it correctly which is why I can’t use the UIA properties.

You need to make sure to call it before a window is opened. This means before instantiating ShowBase and before importing DirectStart.

I don’t know anything about MSAA and UIA or how they are used, though (didn’t even know of the terms until just yet), so I can’t really offer any advice on how go to get it to work with Panda3D specifically.