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

Commitc38f70a

Browse files
authored
Merge pull request#29821 from anntzer/bt
Tweak minimal checks for GUI binding installs.
2 parentsa1aa994 +74dc88f commitc38f70a

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

‎galleries/users_explain/figure/backends.rst‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,12 @@ program that can be run to test basic functionality. If this test fails, try re
292292
QtAgg, QtCairo, Qt5Agg, and Qt5Cairo
293293
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294294

295-
Test ``PyQt5``.
296-
297-
If you have ``PySide`` or ``PyQt6`` installed rather than ``PyQt5``, just change the import
298-
accordingly:
295+
Test ``PyQt6`` (if you have ``PyQt5``, ``PySide2`` or ``PySide6`` installed
296+
rather than ``PyQt6``, just change the import accordingly):
299297

300298
..code-block::bash
301299
302-
python -c"fromPyQt5.QtWidgets import *; app = QApplication([]); win = QMainWindow(); win.show(); app.exec()"
300+
python3 -c"fromPyQt6.QtWidgets import *; app = QApplication([]); win = QMainWindow(); win.show(); app.exec()"
303301
304302
305303
TkAgg and TkCairo
@@ -325,14 +323,9 @@ wxAgg and wxCairo
325323

326324
Test ``wx``:
327325

328-
..code-block::python3
329-
330-
import wx
326+
..code-block::bash
331327
332-
app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window.
333-
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
334-
frame.Show(True) # Show the frame.
335-
app.MainLoop()
328+
python3 -c"import wx; app = wx.App(); frame = wx.Frame(None); frame.Show(); app.MainLoop()"
336329
337330
If the test works for your desired backend but you still cannot get Matplotlib to display a figure, then contact us (see
338331
:ref:`get-help`).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp