Forum: Poser Python Scripting


Subject: wxPython and UI controls... Did anyone code any Poser-like replacements?

Dizzi opened this issue on Aug 01, 2010 · 11 posts


Netherworks posted Mon, 30 August 2010 at 2:27 PM

That's even true of tkinter and poser's dialog resources.  I had scripts failing on Mac with dialog resource cannot be found (or somesuch) and I had to define where the poser UI elements are. o.o

Normally, we can do this:

dlg = poser.Dialog(file="./Runtime/ui/simpleDlgOk.xml", message=msg, width=wd, height=ht)

but I found that instead I had to do this (or similar) or Mac OSX 10 was having a baby:

poserPath = os.path.split(poser.AppLocation())[0]
okPath = os.path.join(poserPath, 'Runtime', 'ui', 'simpleDlgOk.xml')
dlg = poser.Dialog(file=okPath, message=msg, width=wd, height=ht)

.