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

Commit 76b16e3

Browse files
suppress font warnings
1 parent f164a39 commit 76b16e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
import os
23
import re
34
import numpy as np
45
import matplotlib.pyplot as plt
@@ -14,6 +15,9 @@
1415
)
1516
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
1617

18+
# Suppress font warnings
19+
os.environ["QT_LOGGING_RULES"] = "qt.qpa.fonts.warning=false"
20+
1721

1822
class FunctionPlotter(QMainWindow):
1923
"""

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /