Thanks, This is what I ended up with, but I don't want to display the gallery until I hit accept. I want to wait for the dialog to be done. Say the dialog asks for the user to make a button choice then accept before the gallery is displayed.
import viz
import vizdlg
viz.go()
#Create empty dialog
dlg = vizdlg.Dialog(title='Dialog title')
#Link dialog to center of window
viz.link(viz.CenterCenter,dlg)
#Toggle dialog visibility when spacebar is pressed
vizact.onkeydown(' ',dlg.visible,viz.TOGGLE)
# Look for the Accept button to be pressed.
vizact.onbuttondown(dlg.accept,dlg.visible,viz.TOG GLE)
viz.add('gallery.ive')
__________________
VizMaster
|