detect tk mainloop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Hunter

    detect tk mainloop


    In matplotlib using the tkagg backend, the tk mainloop is started at
    the end of a python script by issuing a call to a "show" function,
    which realizes all the created figure windows and the calls
    Tkinter.mainloo p(). This can cause problems if the mainloop was
    started by another module (eg idle).

    Is there a way to query tkinter to detect whether the mainloop has
    already been called?

    Thanks,
    JDH
Working...