2019-04-03, 08:24
So I know that I can pass args to a window, and that works great. Right now I have window created, when open I have it run a some code that loads a config into a "Object". Now that object it sitting in the OnInit par of the window class. This window is just a inbetween the user doesn't have to do anything once the code had finished running i would like to return to the previous window; but with my "Object" is there a way that i can pass that object back.
So to pass it back is there a way to do something like
python:ui=mywindow
ui.doModal()
delete ui
So to pass it back is there a way to do something like
python:ui=mywindow
data = ui.doModal()
delete ui
print(data)