Skip to content

Commit

Permalink
QPrinter.setPageOrientation: fixed arg
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 16, 2023
1 parent 6742221 commit d921204
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 @@ -12,7 +12,7 @@

import numpy as np
from qtpy.QtCore import Qt
from qtpy.QtGui import QFont, QIcon, QPen, QPixmap
from qtpy.QtGui import QFont, QIcon, QPageLayout, QPen, QPixmap
from qtpy.QtPrintSupport import QPrintDialog, QPrinter
from qtpy.QtWidgets import (
QFrame,
Expand Down Expand Up @@ -251,7 +251,7 @@ def print_(self, unattended=False):
printer = QPrinter(mode)

printer.setCreator("Bode example")
printer.setPageOrientation(QPrinter.Landscape)
printer.setPageOrientation(QPageLayout.Landscape)
printer.setColorMode(QPrinter.Color)

docName = str(self.plot.title().text())
Expand Down

0 comments on commit d921204

Please sign in to comment.