Text output and refresh for Text COMP

Hi,
I am working on a UI for visitors of an exhibition where they can type in answers based on the “Voigt-Kampff-Test” questions from Blade Runner.

However what I am trying to achieve seems to be not as easy as I thought…What I want to achieve is to “refresh” the text based on hitting the Enter key on the keyboard, so it will be blank afterwards for using it for the next answer.

Is there a workaround for this? And is it also possible to make the “type pointer” inside the text panel constantly visible instead of only whenever someone clicks on the panel?

I have attached an example of my setup here:

Text_COMP-questions.toe (6.6 KB)

You can use the textCOMP callbacks to react to enter however you like. You can use textCOMP.setKeyboardFocus to bring kb focus back to the entry area.

1 Like

Thanks for the reply!
I could not wrap my head around the Callbacks DAT and how to make use of them…is there a documentation? Unfortunately nothing in the Operator Snippets or Documentation is referencing to anything related Callbacks…

Here’s something that will get you started with the callbacks
Text_COMP-answers.toe (8.1 KB)

2 Likes

Thanks for your help @Ivan !
I am totally new to Python beyond Operator References and your callbacks DAT was a great starting point, now everything works accordingly after a little dive into Callback DAT’s :slight_smile:

1 Like