Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New IntVar needs a parent widget #18259

Closed
Labels
Milestone
@richardsheridan

Description

@richardsheridan

Bug report

Bug summary

A recent bugfix (#17102) in the Tk backend created a new IntVar that does not make reference to a parent widget.


This causes any users oftkinter.NoDefaultRoot() to crash when the navbar is instantiated.

Code for reproduction

importtkinterfrommatplotlib.figureimportFigurefrommatplotlib.backends.backend_tkaggimportNavigationToolbar2Tk,FigureCanvasTkAggtkinter.NoDefaultRoot()window=tkinter.Tk()fig=Figure()canvas=FigureCanvasTkAgg(fig,window)navbar=NavigationToolbar2Tk(canvas,window)

Actual outcome

NameError: name '_default_root' is not defined

Expected outcome

no crashes

Matplotlib version

  • Operating system: Win10
  • Matplotlib version: 3.3.1
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.8.5
  • Jupyter version (if applicable):
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp