How to close current window by invoking a function from another window #1298
Answered
by
hoffenmerCode
hoffenmerCode
asked this question in
Q&A
-
Quasi code in class TogaProject: def startup:
def anotherWindow:
def openNewWindow:
So I am able to open a new window from 'startup' but at the same time I would like to close the 'startup' window and I cannot. I tried self.startup.close() = error. I tried giving mainWindow in startup an 'id' and then calling that 'id'.close() inside the openNewWindow function but I get an error. How should this be done properly? Using OSX desktop app. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
hoffenmerCode
Jul 2, 2021
Replies: 1 comment
-
Got it: I used the .window selector of one of the fields in the startup window and closed() it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hoffenmerCode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it:
I used the .window selector of one of the fields in the startup window and closed() it.