BasicOperations/GetUserValue.py
17 lastButtonIsCancel =
True
18 btn, value =
FBMessageBoxGetUserValue(
"Rename",
"Enter new name:",
"", FBPopupInputType.kFBPopupString,
"Ok",
"Cancel",
None, 1, lastButtonIsCancel)
21 msg =
"Name has been changed to %s" % (value)
23 msg =
"Name has not been changed, value has not been updated."
27 lastButtonIsCancel =
False
28 btn, value =
FBMessageBoxGetUserValue(
"Select Choices",
"Enter a value and select an action:",
"", FBPopupInputType.kFBPopupString,
"Do this",
"Do that",
"Do it that way", 1, lastButtonIsCancel)
30 msg =
"Do this with value %s" % (value)
32 msg =
"Do that with value %s" % (value)
34 msg =
"Do it that way with value %s" % (value)