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
I create a Text Input widget for file selector, but the file list value of Text Input widget is different from the actual contents.
The OPI file is as the follow picture.
The name of Text Input widget is "FileInput". By click "text" action button, Python script will run and the console will print selected file list.
My Python script attached to this action button are as follows.
from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
text = display.getWidget("FileInput").getPropertyValue("text")
ConsoleUtil.writeInfo(text)
new_text = text.strip(" \n").split("|")
for item in new_text:
ConsoleUtil.writeInfo(item)
When I selecte all files of a directory by this Text Input widget and click "test" action button, the output information are as follows.
We can see, "test_action_order05.py" was print twice, "test.py" wasn't print.
Question2:
what is the function of display.isActive() ?
I can't find any description about it in Help Contents of Cs-studio.
Could you provided a full and online help document for Cs-studio?
Thanks for your help very much, looking forward to your reply.
The text was updated successfully, but these errors were encountered:
I create a Text Input widget for file selector, but the file list value of Text Input widget is different from the actual contents.
The OPI file is as the follow picture.
The name of Text Input widget is "FileInput". By click "text" action button, Python script will run and the console will print selected file list.
My Python script attached to this action button are as follows.
When I selecte all files of a directory by this Text Input widget and click "test" action button, the output information are as follows.
What's strange is that the output information is different from the actual file list.
The actual file list is as the follow.
We can see, "test_action_order05.py" was print twice, "test.py" wasn't print.
Question2:
what is the function of display.isActive() ?
I can't find any description about it in Help Contents of Cs-studio.
Could you provided a full and online help document for Cs-studio?
Thanks for your help very much, looking forward to your reply.
The text was updated successfully, but these errors were encountered: