if you look in the code, you can see how to use it. just look at the def line with GDIALOG in it.