我已經(jīng)很好地使用了下面的 python 代碼,但是當(dāng)我重新安裝 Anaconda python 2.7 版本時,該代碼有錯誤。為什么會這樣?plt.subplots_adjust(top=0.9, bottom=0.05, left=0.05, right=0.95, wspace=0.55, hspace=0.2)plt.figtext(0.5, 0.95, str(os.path.basename(self.filepath)),ha='center', color='black', weight='bold', size='small')mngr = plt.get_current_fig_manager()mngr.window.setGeometry(810, 30, 800, 800)show()Traceback (most recent call last): File "C:\Users\hyeyoung\Desktop\20200211MHyeyoung.py", line 4482, in onOpenImageFile self.ShowAFewFrames() File "C:\Users\hyeyoung\Desktop\20200211MHyeyoung.py", line 4509, in ShowAFewFrames mngr.window.setGeometry(810,30,800, 800)AttributeError: 'FigureManagerBase' object has no attribute 'window'--------------------------------------------------------------------------Anaconda python ver. : 2.7matplotlib ver. :2.2.2please give me an answer. thx
AttributeError:“FigureManagerBase”對象沒有屬性“window”
慕的地8271018
2022-07-26 20:55:29