~phill-ridout/openlp/display_fixes

« back to all changes in this revision

Viewing changes to openlp/core/ui/printserviceform.py

  • Committer: Raoul Snyman
  • Date: 2019-02-14 07:04:30 UTC
  • mfrom: (2766.3.118 webengine-migrate)
  • Revision ID: raoul@snyman.info-20190214070430-nxe1vaeaapq3ult5
Migration from WebKit to Webengine. Also introduced reveal.js for slide rendering, new screen setup dialogs and many other changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import html
27
27
 
28
28
import lxml.html
29
 
from PyQt5 import QtCore, QtGui, QtWidgets, QtPrintSupport
 
29
from PyQt5 import QtCore, QtGui, QtPrintSupport, QtWidgets
30
30
 
31
31
from openlp.core.common.applocation import AppLocation
32
32
from openlp.core.common.i18n import UiStrings, translate
36
36
from openlp.core.lib import get_text_file_string, image_to_byte
37
37
from openlp.core.ui.printservicedialog import Ui_PrintServiceDialog, ZoomSize
38
38
 
 
39
 
39
40
DEFAULT_CSS = """/*
40
41
Edit this file to customize the service order print. Note, that not all CSS
41
42
properties are supported. See:
133
134
        self.print_dialog = QtPrintSupport.QPrintDialog(self.printer, self)
134
135
        self.document = QtGui.QTextDocument()
135
136
        self.zoom = 0
136
 
        self.setupUi(self)
 
137
        self.setup_ui(self)
137
138
        # Load the settings for the dialog.
138
139
        settings = Settings()
139
140
        settings.beginGroup('advanced')