Skip to content

Commit 617582e

Browse files
committed
Fixed QPrinter/test_bodedemo for PyQt6/Linux
1 parent fc674e4 commit 617582e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwt/tests/test_bodedemo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ def __init__(self, *args):
245245
def print_(self, unattended=False):
246246
try:
247247
mode = QPrinter.HighResolution
248+
printer = QPrinter(mode)
248249
except AttributeError:
249250
# Some PySide6 / PyQt6 versions do not have this attribute on Linux
250-
mode = QPrinter.ScreenResolution
251-
printer = QPrinter(mode)
251+
printer = QPrinter()
252252

253253
printer.setCreator("Bode example")
254254
printer.setPageOrientation(QPageLayout.Landscape)

0 commit comments

Comments
 (0)