
Change-Id: I1dfdcb88a492401851d5157c734cd708496bf004 Reviewed-on: https://forge.frm2.tum.de/review/17734 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
49 lines
2.1 KiB
Python
49 lines
2.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# *****************************************************************************
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along with
|
|
# this program; if not, write to the Free Software Foundation, Inc.,
|
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
# Module authors:
|
|
# Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
|
|
#
|
|
# *****************************************************************************
|
|
"""Import needed stuff from PyQt4/PyQt5"""
|
|
|
|
# pylint: disable=unused-import
|
|
from __future__ import print_function
|
|
|
|
try:
|
|
from PyQt5 import uic
|
|
from PyQt5.QtCore import Qt, QObject, pyqtSignal, pyqtSlot
|
|
from PyQt5.QtGui import QFont, QTextCursor, QFontMetrics
|
|
from PyQt5.QtWidgets import QLabel, QWidget, QDialog, QLineEdit, QCheckBox, QPushButton, \
|
|
QSizePolicy, QMainWindow, QMessageBox, QInputDialog, QTreeWidgetItem, QApplication, \
|
|
QGroupBox, QSpinBox, QDoubleSpinBox, QComboBox, QRadioButton, QVBoxLayout, QHBoxLayout, \
|
|
QGridLayout, QScrollArea, QFrame
|
|
|
|
from xml.sax.saxutils import escape as toHtmlEscaped
|
|
|
|
except ImportError:
|
|
from PyQt4 import uic
|
|
from PyQt4.QtCore import Qt, QObject, pyqtSignal, pyqtSlot
|
|
from PyQt4.QtGui import QFont, QTextCursor, QFontMetrics, \
|
|
QLabel, QWidget, QDialog, QLineEdit, QCheckBox, QPushButton, \
|
|
QSizePolicy, QMainWindow, QMessageBox, QInputDialog, QTreeWidgetItem, QApplication, \
|
|
QGroupBox, QSpinBox, QDoubleSpinBox, QComboBox, QRadioButton, QVBoxLayout, QHBoxLayout, \
|
|
QGridLayout, QScrollArea, QFrame
|
|
|
|
def toHtmlEscaped(s):
|
|
return Qt.escape(s)
|