Trying a callback user interface and it needs text field

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  01 January 2013
Trying a callback user interface and it needs text field

So yup, I kinda used this page
HTML Code:
to create a simple user interface (scroll down to the callback object part), although everything I've tried to actually add a text field doesn't seem to work.

I've cut it down to the basics to make it easier to read aha, the checkbox is fine not using that callback command but the button needs it, unfortunately it mentions nothing about radio buttons or text fields on the site

Does anyone know how to get any of those two working?


def buttonPressed(formInfo):
    (setting some variables using .getValue() and formInfo)
    (run the rest of the script)
 win = window(title="title")
 layout = columnLayout( rowSpacing = 10 )
 win_createButton = button( label="button", command = Callback( buttonPressed, "cB" ) )
 win_createCheckBox = checkBox( label = "check box", value=True )
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:00 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.