Skip to content

Commit

Permalink
Fixed QPrinter/test_bodedemo for PyQt6/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 16, 2023
1 parent fc674e4 commit 617582e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qwt/tests/test_bodedemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def __init__(self, *args):
def print_(self, unattended=False):
try:
mode = QPrinter.HighResolution
printer = QPrinter(mode)
except AttributeError:
# Some PySide6 / PyQt6 versions do not have this attribute on Linux
mode = QPrinter.ScreenResolution
printer = QPrinter(mode)
printer = QPrinter()

printer.setCreator("Bode example")
printer.setPageOrientation(QPageLayout.Landscape)
Expand Down

0 comments on commit 617582e

Please sign in to comment.