Jump to content
Gonda

Dialog Builder Python Issues

Recommended Posts

Hey All,

 

So, now that I'm in the process of attempting to use the python that was generated by Dialog Builder, I'm finding a few other issues.  I'll summarize below in addition to my already mentioned post regarding semicolons:

 

All instances of the true/false inbuilt constants are listed in all caps (i.e. TRUE, FALSE), which generates an error since the inbuilts in python are "True" and "False".

 

Dialog Builder is trying to pass strings directly to the GetStr function instead of an integer.  Since all GetStr does, is index a number to a string I can't think of a good reason not to just pass the hard integer values in this call:

dialog = vs.CreateLayout( GetStr('dialog_title'), True, GetStr('ok_button'), GetStr('cancel_button') )
 

Cheers,

-gonda

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×