Skip to content

Commit d921204

Browse files
committed
QPrinter.setPageOrientation: fixed arg
1 parent 6742221 commit d921204

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qwt/tests/test_bodedemo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import numpy as np
1414
from qtpy.QtCore import Qt
15-
from qtpy.QtGui import QFont, QIcon, QPen, QPixmap
15+
from qtpy.QtGui import QFont, QIcon, QPageLayout, QPen, QPixmap
1616
from qtpy.QtPrintSupport import QPrintDialog, QPrinter
1717
from qtpy.QtWidgets import (
1818
QFrame,
@@ -251,7 +251,7 @@ def print_(self, unattended=False):
251251
printer = QPrinter(mode)
252252

253253
printer.setCreator("Bode example")
254-
printer.setPageOrientation(QPrinter.Landscape)
254+
printer.setPageOrientation(QPageLayout.Landscape)
255255
printer.setColorMode(QPrinter.Color)
256256

257257
docName = str(self.plot.title().text())

0 commit comments

Comments
 (0)