Better resolution as to whether WriteDialogToFile has been passed in a set of properties or a dialog (and we need to get the properties)

This commit is contained in:
markm 2006-01-17 20:21:31 +00:00
parent 7b79e7858a
commit 9b28de4eaf

@ -132,9 +132,9 @@ def WriteDialogToFile(fileName, props):
# if we are passed in a wrapped handle then
# get the properties
try:
props[0].keys()
except:
props = controls.GetDialogPropsFromHandle(props)
except AttributeError:
pass
# build a tree structure
root = Element("DIALOG")