Forum Discussion
tc_2018
Contributor
I try to declare variable in class and call it from a script file as shown below:
In class_objects.py file:
Class MyObjects:
user_name_box = Sys.Process("myapp").VBObject("login").VBObject("txtUserName")
In my script file:
import class_objects
def test():
mo = class_objects.MyObjects()
mo.user_name_box.SetText("test")
And it works.
Do you have any input for doing this way? Thanks.
tristaanogre
7 years agoEsteemed Contributor
See the second option I mentioned above.
Related Content
- 5 years ago
- 13 years ago
Recent Discussions
- 8 hours ago