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

different behaviour between 3.3.0 and 3.2.2 (and earlier) for plotting in a Tk canvas #18232

Closed
Milestone
@yevgenyr

Description

@yevgenyr

Bug report

I am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2.
I am running the same code:

The code I am reusing it from here:https://github.com/SuperMechaDeathChrist/Widgets/blob/master/plt_figure_w_controls.py

it runs well for 3.2.2 and bellow but get the following error for 3.3.0:

Traceback (mostrecentcalllast):File"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py",line90,in<module>'fig_cv').TKCanvas,fig,window.FindElement('controls_cv').TKCanvas)File"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py",line17,indraw_figure_w_toolbartoolbar=Toolbar(figure_canvas_agg,canvas_toolbar)File"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py",line34,in__init__super(Toolbar,self).__init__(*args,**kwargs)File"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backends/_backend_tk.py",line525,in__init__NavigationToolbar2.__init__(self,canvas)File"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backend_bases.py",line2866,in__init__self.set_history_buttons()File"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backends/_backend_tk.py",line640,inset_history_buttonsself._buttons['Back']['state']=tk.DISABLEDKeyError:'Back'Processfinishedwithexitcode1

It looks like an easy fix, but maybe I am wrong - let me know what additional details you need from me.
I use python 3.7.8
ps - to test the code - pip install pysimplegui

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp