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

Commit3d2872e

Browse files
committed
Merge pull request#6854 from anntzer/pyqt57-fix
Fix: bad slot signature for Qtcloses#6853
1 parentf9d696e commit3d2872e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

‎lib/matplotlib/backends/backend_qt5.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -459,18 +459,18 @@ def __init__(self, canvas, num):
459459

460460
self.window._destroying=False
461461

462+
# add text label to status bar
463+
self.statusbar_label=QtWidgets.QLabel()
464+
self.window.statusBar().addWidget(self.statusbar_label)
465+
462466
self.toolbar=self._get_toolbar(self.canvas,self.window)
463467
ifself.toolbarisnotNone:
464468
self.window.addToolBar(self.toolbar)
465-
self.toolbar.message.connect(self._show_message)
469+
self.toolbar.message.connect(self.statusbar_label.setText)
466470
tbs_height=self.toolbar.sizeHint().height()
467471
else:
468472
tbs_height=0
469473

470-
# add text label to status bar
471-
self.statusbar_label=QtWidgets.QLabel()
472-
self.window.statusBar().addWidget(self.statusbar_label)
473-
474474
# resize the main window so it will display the canvas with the
475475
# requested size:
476476
cs=canvas.sizeHint()
@@ -491,10 +491,6 @@ def notify_axes_change(fig):
491491
self.toolbar.update()
492492
self.canvas.figure.add_axobserver(notify_axes_change)
493493

494-
@QtCore.Slot()
495-
def_show_message(self,s):
496-
self.statusbar_label.setText(s)
497-
498494
deffull_screen_toggle(self):
499495
ifself.window.isFullScreen():
500496
self.window.showNormal()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp