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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

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.

×
×
  • Create New...