Jump to content

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

 

Link to comment

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.

×
×
  • Create New...