OpenWindow with update



  • I realized that I can check if a window is already open so it won't be opened again with the OpenWindow. But I was wondering is there any neat way to do the following?

    if window is not open:
        open(window)
    else:
        window.update()
    

    Thanks!


  • admin

    Good point!

    In the next update, OpenWindow will return True when the window is already open and False if it hast to create a new instance of the class

    Thanks



  • Is there any update on this. I'm trying to make a sub class of BaseWindowController to run a method if the window is already open. Still OpenWindow returns None.

    Thanks


Log in to reply
 

Looks like your connection to RoboFont ● Forum was lost, please wait while we try to reconnect.