OpenWindow with update

RoboFont Forums Enhancements OpenWindow with update

This topic contains 2 replies, has 2 voices, and was last updated by  bahman 3 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6288

    bahman
    Participant

    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!

    #6293

    frederik
    Keymaster

    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

    #6308

    bahman
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.