You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
César Román edited this page Apr 30, 2024
·
7 revisions
Description
Open up a popup input dialog box.
This dialog box will show a prompt message, and allow the user to type in a
string. When the user is done, they can press "OK" or "Cancel". If OK is
pressed, this function will return with the value that they typed in. If Cancel
is pressed, this function will return the value None.
Syntax
incendium.vision.gui.input(message, [title])
Args:
message (str): The message to display. This will be translated to the
selected Locale. Will accept html formatting.
title (str): A title for the input box. This will be translated to the
selected Locale. Optional. Defaults to "Input".
Returns:
str: The string value that was entered in the input box.
Recommendations
None.
Code Examples
from __future__ importprint_functionfromincendium.visionimportguicomments=gui.input("Comments")
print(comments)