lib/matplotlib/backends/backend_tkagg.py
def show(self):
        """
        this function doesn't segfault but causes the
        PyEval_RestoreThread: NULL state bug on win32
        """

        def destroy(*args):
            self.window = None
            Gcf.destroy(self._num)

        if not self._shown: self.canvas._tkcanvas.bind("<Destroy>", destroy)
        _focus = windowing.FocusManager()
        if not self._shown:
            self.window.deiconify()
            # anim.py requires this
            if sys.platform=='win32' : self.window.update()
        else:
            self.canvas.draw_idle()
        self._shown = True

        this function doesn't segfault but causes the
        PyEval_RestoreThread: NULL state bug on win32
        
this function doesn't segfault but causes the
PyEval_RestoreThread: NULL state bug on win32
this function doesn ' t segfault but causes the PyEval_RestoreThread : NULL state bug on win32
def show(self):
        def destroy(*args):
            self.window = None
            Gcf.destroy(self._num)
        if not self._shown: self.canvas._tkcanvas.bind("<Destroy>", destroy)
        _focus = windowing.FocusManager()
        if not self._shown:
            self.window.deiconify()
            if sys.platform=='win32' : self.window.update()
        else:
            self.canvas.draw_idle()
        self._shown = True
def show ( self ) : def destroy ( * args ) : self . window = None Gcf . destroy ( self . _num ) if not self . _shown : self . canvas . _tkcanvas . bind ( "<Destroy>" , destroy ) _focus = windowing . FocusManager ( ) if not self . _shown : self . window . deiconify ( ) if sys . platform == 'win32' : self . window . update ( ) else : self . canvas . draw_idle ( ) self . _shown = True
this function doesn't segfault but causes the
PyEval_RestoreThread: NULL state bug on win32
this function doesn ' t segfault but causes the PyEval_RestoreThread : NULL state bug on win32
"""
        this function doesn't segfault but causes the
        PyEval_RestoreThread: NULL state bug on win32
        """ # anim.py requires this
self