diff options
author | Christian Tismer <tismer@stackless.com> | 2015-09-21 20:38:51 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2015-09-21 20:38:51 +0200 |
commit | c8c9f64eb4657c54f063f01f00116732cb3fc100 (patch) | |
tree | aeb11ab83b4f4da43777a6f0304ae1e2887a1a04 | |
parent | d45034c5b2ef602a4a011ca2f12609e4760266f7 (diff) |
change all scripts to respect the new PySide2 module name.
212 files changed, 217 insertions, 217 deletions
diff --git a/examples/animation/animatedtiles/animatedtiles.py b/examples/animation/animatedtiles/animatedtiles.py index 2e67b0c..e08a25f 100755 --- a/examples/animation/animatedtiles/animatedtiles.py +++ b/examples/animation/animatedtiles/animatedtiles.py @@ -4,7 +4,7 @@ # which was an adaptation of the original C++ Qt's examples. -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import animatedtiles_rc diff --git a/examples/animation/animatedtiles/animatedtiles_rc.py b/examples/animation/animatedtiles/animatedtiles_rc.py index a562a8a..6f11d7f 100644 --- a/examples/animation/animatedtiles/animatedtiles_rc.py +++ b/examples/animation/animatedtiles/animatedtiles_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x36\xe2\ diff --git a/examples/animation/appchooser/appchooser.py b/examples/animation/appchooser/appchooser.py index fc21263..7d0e360 100755 --- a/examples/animation/appchooser/appchooser.py +++ b/examples/animation/appchooser/appchooser.py @@ -44,7 +44,7 @@ # which are adaptations of the original C++ Qt's examples. -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import appchooser_rc diff --git a/examples/animation/appchooser/appchooser_rc.py b/examples/animation/appchooser/appchooser_rc.py index 41e5d49..551da84 100644 --- a/examples/animation/appchooser/appchooser_rc.py +++ b/examples/animation/appchooser/appchooser_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0d\x06\ diff --git a/examples/animation/easing/easing.py b/examples/animation/easing/easing.py index 18cd87d..8e65094 100755 --- a/examples/animation/easing/easing.py +++ b/examples/animation/easing/easing.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import easing_rc from ui_form import Ui_Form diff --git a/examples/animation/easing/easing_rc.py b/examples/animation/easing/easing_rc.py index 40b09b9..d15afe2 100644 --- a/examples/animation/easing/easing_rc.py +++ b/examples/animation/easing/easing_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x14\x1d\ diff --git a/examples/animation/easing/ui_form.py b/examples/animation/easing/ui_form.py index f7d2f89..93d6361 100644 --- a/examples/animation/easing/ui_form.py +++ b/examples/animation/easing/ui_form.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_Form(object): def setupUi(self, Form): diff --git a/examples/animation/states/states.py b/examples/animation/states/states.py index dad6c62..b089cb6 100755 --- a/examples/animation/states/states.py +++ b/examples/animation/states/states.py @@ -43,7 +43,7 @@ # This file was taken from the PyQt examples, # which are adapted from the original C++ Qt examples. -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import states_rc diff --git a/examples/animation/states/states_rc.py b/examples/animation/states/states_rc.py index fe1642d..613a7b6 100644 --- a/examples/animation/states/states_rc.py +++ b/examples/animation/states/states_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x1b\x48\ diff --git a/examples/declarative/photoviewer/main.py b/examples/declarative/photoviewer/main.py index 48f981f..34ea7cb 100755 --- a/examples/declarative/photoviewer/main.py +++ b/examples/declarative/photoviewer/main.py @@ -36,7 +36,7 @@ from PySide.QtCore import QObject, QUrl, QAbstractListModel, QModelIndex, QThread, QTimer from PySide.QtCore import Property, Signal, Qt -from PySide import QtGui, QtDeclarative +from PySide2 import QtGui, QtDeclarative import gdata.photos, gdata.photos.service diff --git a/examples/declarative/signals/pytoqml1/main.py b/examples/declarative/signals/pytoqml1/main.py index 1bc2451..e857344 100755 --- a/examples/declarative/signals/pytoqml1/main.py +++ b/examples/declarative/signals/pytoqml1/main.py @@ -36,7 +36,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." # $QT_END_LICENSE$ -from PySide import QtCore, QtGui, QtDeclarative +from PySide2 import QtCore, QtGui, QtDeclarative if __name__ == '__main__': import sys diff --git a/examples/declarative/signals/qmltopy1/main.py b/examples/declarative/signals/qmltopy1/main.py index bfbbe4c..76e7995 100755 --- a/examples/declarative/signals/qmltopy1/main.py +++ b/examples/declarative/signals/qmltopy1/main.py @@ -37,7 +37,7 @@ # $QT_END_LICENSE$ -from PySide import QtCore, QtGui, QtDeclarative +from PySide2 import QtCore, QtGui, QtDeclarative class Console(QtCore.QObject): """Output stuff on the console.""" diff --git a/examples/declarative/signals/qmltopy2/main.py b/examples/declarative/signals/qmltopy2/main.py index 49d8663..deaab94 100755 --- a/examples/declarative/signals/qmltopy2/main.py +++ b/examples/declarative/signals/qmltopy2/main.py @@ -36,7 +36,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." # $QT_END_LICENSE$ -from PySide import QtCore, QtGui, QtDeclarative +from PySide2 import QtCore, QtGui, QtDeclarative class RotateValue(QtCore.QObject): def __init__(self): diff --git a/examples/declarative/signals/qmltopy3/main.py b/examples/declarative/signals/qmltopy3/main.py index b9ac696..ee4500f 100755 --- a/examples/declarative/signals/qmltopy3/main.py +++ b/examples/declarative/signals/qmltopy3/main.py @@ -36,7 +36,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." # $QT_END_LICENSE$ -from PySide import QtCore, QtGui, QtDeclarative +from PySide2 import QtCore, QtGui, QtDeclarative class Console(QtCore.QObject): diff --git a/examples/declarative/signals/qmltopy4/main.py b/examples/declarative/signals/qmltopy4/main.py index 6fd6904..7c0cf42 100755 --- a/examples/declarative/signals/qmltopy4/main.py +++ b/examples/declarative/signals/qmltopy4/main.py @@ -36,7 +36,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." # $QT_END_LICENSE$ -from PySide import QtCore, QtGui, QtDeclarative +from PySide2 import QtCore, QtGui, QtDeclarative def sayThis(s): print(s) diff --git a/examples/demos/embeddeddialogs/embeddeddialog.py b/examples/demos/embeddeddialogs/embeddeddialog.py index 90d8c38..1c21887 100644 --- a/examples/demos/embeddeddialogs/embeddeddialog.py +++ b/examples/demos/embeddeddialogs/embeddeddialog.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_embeddedDialog(object): def setupUi(self, embeddedDialog): diff --git a/examples/demos/embeddeddialogs/embeddeddialogs.py b/examples/demos/embeddeddialogs/embeddeddialogs.py index 900bc24..b97d696 100755 --- a/examples/demos/embeddeddialogs/embeddeddialogs.py +++ b/examples/demos/embeddeddialogs/embeddeddialogs.py @@ -6,7 +6,7 @@ #import sip #sip.setapi('QString', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from embeddeddialog import Ui_embeddedDialog from embeddeddialogs_rc import * diff --git a/examples/demos/embeddeddialogs/embeddeddialogs_rc.py b/examples/demos/embeddeddialogs/embeddeddialogs_rc.py index c2fea3c..c16a12d 100644 --- a/examples/demos/embeddeddialogs/embeddeddialogs_rc.py +++ b/examples/demos/embeddeddialogs/embeddeddialogs_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x78\x0a\ diff --git a/examples/demos/qtdemo/colors.py b/examples/demos/qtdemo/colors.py index c29ade7..4e31e54 100644 --- a/examples/demos/qtdemo/colors.py +++ b/examples/demos/qtdemo/colors.py @@ -1,6 +1,6 @@ import sys -from PySide import QtGui +from PySide2 import QtGui class Colors(object): @@ -230,7 +230,7 @@ class Colors(object): @classmethod def detectSystemResources(cls): try: - from PySide import QtOpenGL + from PySide2 import QtOpenGL cls.openGlAvailable = True except ImportError: cls.openGlAvailable = False diff --git a/examples/demos/qtdemo/demoitem.py b/examples/demos/qtdemo/demoitem.py index 170651c..3e5f439 100644 --- a/examples/demos/qtdemo/demoitem.py +++ b/examples/demos/qtdemo/demoitem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors diff --git a/examples/demos/qtdemo/demoitemanimation.py b/examples/demos/qtdemo/demoitemanimation.py index 925fcbb..5fb2a12 100644 --- a/examples/demos/qtdemo/demoitemanimation.py +++ b/examples/demos/qtdemo/demoitemanimation.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors diff --git a/examples/demos/qtdemo/demoscene.py b/examples/demos/qtdemo/demoscene.py index b05c6e3..f03ba1f 100644 --- a/examples/demos/qtdemo/demoscene.py +++ b/examples/demos/qtdemo/demoscene.py @@ -1,4 +1,4 @@ -from PySide import QtGui +from PySide2 import QtGui class DemoScene(QtGui.QGraphicsScene): diff --git a/examples/demos/qtdemo/demotextitem.py b/examples/demos/qtdemo/demotextitem.py index e77a55c..db13987 100644 --- a/examples/demos/qtdemo/demotextitem.py +++ b/examples/demos/qtdemo/demotextitem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from demoitem import DemoItem diff --git a/examples/demos/qtdemo/dockitem.py b/examples/demos/qtdemo/dockitem.py index 6dccce9..5483d24 100644 --- a/examples/demos/qtdemo/dockitem.py +++ b/examples/demos/qtdemo/dockitem.py @@ -1,4 +1,4 @@ -from PySide import QtGui +from PySide2 import QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/examplecontent.py b/examples/demos/qtdemo/examplecontent.py index cc9320f..4727c04 100644 --- a/examples/demos/qtdemo/examplecontent.py +++ b/examples/demos/qtdemo/examplecontent.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui, QtXml +from PySide2 import QtCore, QtGui, QtXml from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/guide.py b/examples/demos/qtdemo/guide.py index 6dd9140..c481fd2 100644 --- a/examples/demos/qtdemo/guide.py +++ b/examples/demos/qtdemo/guide.py @@ -1,4 +1,4 @@ -from PySide import QtCore +from PySide2 import QtCore class Guide(object): diff --git a/examples/demos/qtdemo/guidecircle.py b/examples/demos/qtdemo/guidecircle.py index 330d251..75953e7 100644 --- a/examples/demos/qtdemo/guidecircle.py +++ b/examples/demos/qtdemo/guidecircle.py @@ -1,6 +1,6 @@ import math -from PySide import QtCore +from PySide2 import QtCore from guide import Guide diff --git a/examples/demos/qtdemo/guideline.py b/examples/demos/qtdemo/guideline.py index 9ffcc26..b8c0529 100644 --- a/examples/demos/qtdemo/guideline.py +++ b/examples/demos/qtdemo/guideline.py @@ -1,4 +1,4 @@ -from PySide import QtCore +from PySide2 import QtCore from guide import Guide diff --git a/examples/demos/qtdemo/headingitem.py b/examples/demos/qtdemo/headingitem.py index b5aaad4..4ddcab0 100644 --- a/examples/demos/qtdemo/headingitem.py +++ b/examples/demos/qtdemo/headingitem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/imageitem.py b/examples/demos/qtdemo/imageitem.py index 3b66da7..48ab05b 100644 --- a/examples/demos/qtdemo/imageitem.py +++ b/examples/demos/qtdemo/imageitem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/itemcircleanimation.py b/examples/demos/qtdemo/itemcircleanimation.py index 17992be..14fcf60 100644 --- a/examples/demos/qtdemo/itemcircleanimation.py +++ b/examples/demos/qtdemo/itemcircleanimation.py @@ -1,7 +1,7 @@ import math import random -from PySide import QtCore +from PySide2 import QtCore from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/letteritem.py b/examples/demos/qtdemo/letteritem.py index 487409b..2ecfb27 100644 --- a/examples/demos/qtdemo/letteritem.py +++ b/examples/demos/qtdemo/letteritem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/mainwindow.py b/examples/demos/qtdemo/mainwindow.py index 25a8111..f111ca6 100644 --- a/examples/demos/qtdemo/mainwindow.py +++ b/examples/demos/qtdemo/mainwindow.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem @@ -65,7 +65,7 @@ class MainWindow(QtGui.QGraphicsView): self.setCacheMode(QtGui.QGraphicsView.CacheNone) Colors.debug("- using Direct3D") elif Colors.openGlRendering: - from PySide import QtOpenGL + from PySide2 import QtOpenGL viewport = QtOpenGL.QGLWidget(QtOpenGL.QGLFormat(QtOpenGL.QGL.SampleBuffers)) diff --git a/examples/demos/qtdemo/menucontent.py b/examples/demos/qtdemo/menucontent.py index 91a3323..2f39323 100644 --- a/examples/demos/qtdemo/menucontent.py +++ b/examples/demos/qtdemo/menucontent.py @@ -1,4 +1,4 @@ -from PySide import QtCore +from PySide2 import QtCore from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/menumanager.py b/examples/demos/qtdemo/menumanager.py index 99a586e..8e189e9 100644 --- a/examples/demos/qtdemo/menumanager.py +++ b/examples/demos/qtdemo/menumanager.py @@ -1,7 +1,7 @@ import os import sys -from PySide import QtCore, QtGui, QtHelp, QtXml +from PySide2 import QtCore, QtGui, QtHelp, QtXml from colors import Colors from demoitemanimation import DemoItemAnimation diff --git a/examples/demos/qtdemo/qtdemo.py b/examples/demos/qtdemo/qtdemo.py index 1838429..c875143 100755 --- a/examples/demos/qtdemo/qtdemo.py +++ b/examples/demos/qtdemo/qtdemo.py @@ -46,7 +46,7 @@ #import sip #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import qtdemo_rc diff --git a/examples/demos/qtdemo/qtdemo_rc.py b/examples/demos/qtdemo/qtdemo_rc.py index e80e46f..7aae6d9 100644 --- a/examples/demos/qtdemo/qtdemo_rc.py +++ b/examples/demos/qtdemo/qtdemo_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0d\xda\ diff --git a/examples/demos/qtdemo/scanitem.py b/examples/demos/qtdemo/scanitem.py index f8eea57..dac0bff 100644 --- a/examples/demos/qtdemo/scanitem.py +++ b/examples/demos/qtdemo/scanitem.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/demos/qtdemo/textbutton.py b/examples/demos/qtdemo/textbutton.py index 9da6b5d..1bc7eb0 100644 --- a/examples/demos/qtdemo/textbutton.py +++ b/examples/demos/qtdemo/textbutton.py @@ -1,4 +1,4 @@ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from colors import Colors from demoitem import DemoItem diff --git a/examples/designer/calculatorform/calculatorform.py b/examples/designer/calculatorform/calculatorform.py index 8186b87..06b5619 100755 --- a/examples/designer/calculatorform/calculatorform.py +++ b/examples/designer/calculatorform/calculatorform.py @@ -24,7 +24,7 @@ ############################################################################# import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui from ui_calculatorform import Ui_CalculatorForm diff --git a/examples/designer/calculatorform/ui_calculatorform.py b/examples/designer/calculatorform/ui_calculatorform.py index de65767..23a6959 100644 --- a/examples/designer/calculatorform/ui_calculatorform.py +++ b/examples/designer/calculatorform/ui_calculatorform.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_CalculatorForm(object): def setupUi(self, CalculatorForm): diff --git a/examples/desktop/screenshot.py b/examples/desktop/screenshot.py index f30c3ad..76bbf61 100755 --- a/examples/desktop/screenshot.py +++ b/examples/desktop/screenshot.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Screenshot(QtGui.QWidget): diff --git a/examples/desktop/systray/systray.py b/examples/desktop/systray/systray.py index 62fe31e..7ba6e50 100755 --- a/examples/desktop/systray/systray.py +++ b/examples/desktop/systray/systray.py @@ -42,7 +42,7 @@ #import sip #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import systray_rc diff --git a/examples/desktop/systray/systray_rc.py b/examples/desktop/systray/systray_rc.py index 94c6874..e028195 100644 --- a/examples/desktop/systray/systray_rc.py +++ b/examples/desktop/systray/systray_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0f\x21\ diff --git a/examples/dialogs/classwizard/classwizard.py b/examples/dialogs/classwizard/classwizard.py index d3b7dff..a5260c4 100755 --- a/examples/dialogs/classwizard/classwizard.py +++ b/examples/dialogs/classwizard/classwizard.py @@ -5,7 +5,7 @@ #sip.setapi('QString', 2) #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import classwizard_rc diff --git a/examples/dialogs/classwizard/classwizard_rc.py b/examples/dialogs/classwizard/classwizard_rc.py index 25a2775..d652f36 100644 --- a/examples/dialogs/classwizard/classwizard_rc.py +++ b/examples/dialogs/classwizard/classwizard_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x06\x53\ diff --git a/examples/dialogs/configdialog/configdialog.py b/examples/dialogs/configdialog/configdialog.py index 8759a5f..a158778 100755 --- a/examples/dialogs/configdialog/configdialog.py +++ b/examples/dialogs/configdialog/configdialog.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import configdialog_rc diff --git a/examples/dialogs/configdialog/configdialog_rc.py b/examples/dialogs/configdialog/configdialog_rc.py index 1185fd8..b5a1cae 100644 --- a/examples/dialogs/configdialog/configdialog_rc.py +++ b/examples/dialogs/configdialog/configdialog_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x1b\x93\ diff --git a/examples/dialogs/extension.py b/examples/dialogs/extension.py index f6dff13..8867b58 100755 --- a/examples/dialogs/extension.py +++ b/examples/dialogs/extension.py @@ -2,7 +2,7 @@ """PyQt4 port of the dialogs/extension example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class FindDialog(QtGui.QDialog): diff --git a/examples/dialogs/findfiles.py b/examples/dialogs/findfiles.py index 85fbdc3..c3b01ee 100755 --- a/examples/dialogs/findfiles.py +++ b/examples/dialogs/findfiles.py @@ -2,7 +2,7 @@ """PyQt4 port of the dialogs/findfiles example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QDialog): diff --git a/examples/dialogs/findfiles_test.py b/examples/dialogs/findfiles_test.py index ea2a280..6495b43 100644 --- a/examples/dialogs/findfiles_test.py +++ b/examples/dialogs/findfiles_test.py @@ -1,5 +1,5 @@ from findfiles import Window
-from PySide import QtCore
+from PySide2 import QtCore
#===================================================================================================
diff --git a/examples/dialogs/standarddialogs.py b/examples/dialogs/standarddialogs.py index 767fb78..256ba40 100755 --- a/examples/dialogs/standarddialogs.py +++ b/examples/dialogs/standarddialogs.py @@ -7,7 +7,7 @@ #sip.setapi('QString', 2) import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Dialog(QtGui.QDialog): diff --git a/examples/dialogs/tabdialog.py b/examples/dialogs/tabdialog.py index 42b6974..8665724 100755 --- a/examples/dialogs/tabdialog.py +++ b/examples/dialogs/tabdialog.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class TabDialog(QtGui.QDialog): diff --git a/examples/dialogs/trivialwizard.py b/examples/dialogs/trivialwizard.py index f559f7f..608a1af 100755 --- a/examples/dialogs/trivialwizard.py +++ b/examples/dialogs/trivialwizard.py @@ -2,7 +2,7 @@ """PyQt4 port of the dialogs/trivialwizard example from Qt v4.x""" -from PySide import QtGui +from PySide2 import QtGui def createIntroPage(): diff --git a/examples/draganddrop/draggableicons/draggableicons.py b/examples/draganddrop/draggableicons/draggableicons.py index 4fc5082..83a890f 100755 --- a/examples/draganddrop/draggableicons/draggableicons.py +++ b/examples/draganddrop/draggableicons/draggableicons.py @@ -24,7 +24,7 @@ ############################################################################ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import draggableicons_rc diff --git a/examples/draganddrop/draggableicons/draggableicons_rc.py b/examples/draganddrop/draggableicons/draggableicons_rc.py index 18db335..d762370 100644 --- a/examples/draganddrop/draggableicons/draggableicons_rc.py +++ b/examples/draganddrop/draggableicons/draggableicons_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0c\x57\ diff --git a/examples/draganddrop/draggabletext/draggabletext.py b/examples/draganddrop/draggabletext/draggabletext.py index 64fa4fd..202cf3f 100755 --- a/examples/draganddrop/draggabletext/draggabletext.py +++ b/examples/draganddrop/draggabletext/draggabletext.py @@ -27,7 +27,7 @@ #import sip #sip.setapi('QString', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import draggabletext_rc diff --git a/examples/draganddrop/draggabletext/draggabletext_rc.py b/examples/draganddrop/draggabletext/draggabletext_rc.py index 77fedcb..eb6d954 100644 --- a/examples/draganddrop/draggabletext/draggabletext_rc.py +++ b/examples/draganddrop/draggabletext/draggabletext_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x00\xf7\ diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets.py b/examples/draganddrop/fridgemagnets/fridgemagnets.py index 3a7ec21..5f77570 100755 --- a/examples/draganddrop/fridgemagnets/fridgemagnets.py +++ b/examples/draganddrop/fridgemagnets/fridgemagnets.py @@ -27,7 +27,7 @@ #import sip #sip.setapi('QString', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import fridgemagnets_rc diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets_rc.py b/examples/draganddrop/fridgemagnets/fridgemagnets_rc.py index 6ed5373..90e028b 100644 --- a/examples/draganddrop/fridgemagnets/fridgemagnets_rc.py +++ b/examples/draganddrop/fridgemagnets/fridgemagnets_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x01\x16\ diff --git a/examples/draganddrop/puzzle/puzzle.py b/examples/draganddrop/puzzle/puzzle.py index ed98ff9..b494209 100755 --- a/examples/draganddrop/puzzle/puzzle.py +++ b/examples/draganddrop/puzzle/puzzle.py @@ -29,7 +29,7 @@ import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import puzzle_rc diff --git a/examples/draganddrop/puzzle/puzzle_rc.py b/examples/draganddrop/puzzle/puzzle_rc.py index af5f2eb..450bc27 100644 --- a/examples/draganddrop/puzzle/puzzle_rc.py +++ b/examples/draganddrop/puzzle/puzzle_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\xa6\x9e\ diff --git a/examples/effects/lighting.py b/examples/effects/lighting.py index a2c3818..4650346 100755 --- a/examples/effects/lighting.py +++ b/examples/effects/lighting.py @@ -3,7 +3,7 @@ import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Lighting(QtGui.QGraphicsView): diff --git a/examples/graphicsview/anchorlayout.py b/examples/graphicsview/anchorlayout.py index b06c615..b9f11ff 100755 --- a/examples/graphicsview/anchorlayout.py +++ b/examples/graphicsview/anchorlayout.py @@ -1,7 +1,7 @@ #!/usr/bin/env python -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui def createItem(minimum, preferred, maximum, name): diff --git a/examples/graphicsview/collidingmice/collidingmice.py b/examples/graphicsview/collidingmice/collidingmice.py index 9ff7268..0156650 100755 --- a/examples/graphicsview/collidingmice/collidingmice.py +++ b/examples/graphicsview/collidingmice/collidingmice.py @@ -23,7 +23,7 @@ import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import mice_rc diff --git a/examples/graphicsview/collidingmice/mice_rc.py b/examples/graphicsview/collidingmice/mice_rc.py index cdc4027..9a2e80c 100644 --- a/examples/graphicsview/collidingmice/mice_rc.py +++ b/examples/graphicsview/collidingmice/mice_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0b\xd5\ diff --git a/examples/graphicsview/diagramscene/diagramscene.py b/examples/graphicsview/diagramscene/diagramscene.py index 1262cc2..51c38b0 100755 --- a/examples/graphicsview/diagramscene/diagramscene.py +++ b/examples/graphicsview/diagramscene/diagramscene.py @@ -6,7 +6,7 @@ import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import diagramscene_rc diff --git a/examples/graphicsview/diagramscene/diagramscene_rc.py b/examples/graphicsview/diagramscene/diagramscene_rc.py index 3310a16..51b0db4 100644 --- a/examples/graphicsview/diagramscene/diagramscene_rc.py +++ b/examples/graphicsview/diagramscene/diagramscene_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x01\x12\ diff --git a/examples/graphicsview/dragdroprobot/dragdroprobot.py b/examples/graphicsview/dragdroprobot/dragdroprobot.py index 16798fc..080ce70 100755 --- a/examples/graphicsview/dragdroprobot/dragdroprobot.py +++ b/examples/graphicsview/dragdroprobot/dragdroprobot.py @@ -21,7 +21,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import dragdroprobot_rc diff --git a/examples/graphicsview/dragdroprobot/dragdroprobot_rc.py b/examples/graphicsview/dragdroprobot/dragdroprobot_rc.py index c859f44..2b82f86 100644 --- a/examples/graphicsview/dragdroprobot/dragdroprobot_rc.py +++ b/examples/graphicsview/dragdroprobot/dragdroprobot_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x3a\x7c\ diff --git a/examples/graphicsview/elasticnodes.py b/examples/graphicsview/elasticnodes.py index 939b55d..bd29b7a 100755 --- a/examples/graphicsview/elasticnodes.py +++ b/examples/graphicsview/elasticnodes.py @@ -24,7 +24,7 @@ import sys import weakref import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Edge(QtGui.QGraphicsItem): diff --git a/examples/graphicsview/padnavigator/padnavigator.py b/examples/graphicsview/padnavigator/padnavigator.py index 7dbea7e..1e4d84d 100755 --- a/examples/graphicsview/padnavigator/padnavigator.py +++ b/examples/graphicsview/padnavigator/padnavigator.py @@ -4,7 +4,7 @@ import math -from PySide import QtCore, QtGui, QtOpenGL +from PySide2 import QtCore, QtGui, QtOpenGL from padnavigator_rc import * from ui_backside import Ui_BackSide diff --git a/examples/graphicsview/padnavigator/padnavigator_rc.py b/examples/graphicsview/padnavigator/padnavigator_rc.py index f29ff9e..efc558e 100644 --- a/examples/graphicsview/padnavigator/padnavigator_rc.py +++ b/examples/graphicsview/padnavigator/padnavigator_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x09\x4c\ diff --git a/examples/graphicsview/padnavigator/ui_backside.py b/examples/graphicsview/padnavigator/ui_backside.py index b112a0d..833e9b5 100644 --- a/examples/graphicsview/padnavigator/ui_backside.py +++ b/examples/graphicsview/padnavigator/ui_backside.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_BackSide(object): def setupUi(self, BackSide): diff --git a/examples/hyperui/hyperuilib/kineticscroll.py b/examples/hyperui/hyperuilib/kineticscroll.py index ee3d4e1..5933187 100644 --- a/examples/hyperui/hyperuilib/kineticscroll.py +++ b/examples/hyperui/hyperuilib/kineticscroll.py @@ -24,7 +24,7 @@ """ -from PySide import QtGui, QtCore +from PySide2 import QtGui, QtCore class KineticScroll(QtCore.QObject): MAX_SPEED = 2000 diff --git a/examples/hyperui/hyperuilib/resource/hyperui_rc.py b/examples/hyperui/hyperuilib/resource/hyperui_rc.py index 2f77268..fa59b86 100644 --- a/examples/hyperui/hyperuilib/resource/hyperui_rc.py +++ b/examples/hyperui/hyperuilib/resource/hyperui_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x0d\x4b\ diff --git a/examples/hyperui/hyperuilib/scrollarea.py b/examples/hyperui/hyperuilib/scrollarea.py index dcc1c93..4d85199 100644 --- a/examples/hyperui/hyperuilib/scrollarea.py +++ b/examples/hyperui/hyperuilib/scrollarea.py @@ -23,7 +23,7 @@ */ """ -from PySide import QtGui, QtCore +from PySide2 import QtGui, QtCore from kineticscroll import KineticScroll #Ok I know, this class is not necessary in python diff --git a/examples/itemviews/basicsortfiltermodel.py b/examples/itemviews/basicsortfiltermodel.py index 4cb7e34..79e33bb 100755 --- a/examples/itemviews/basicsortfiltermodel.py +++ b/examples/itemviews/basicsortfiltermodel.py @@ -21,7 +21,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QWidget): diff --git a/examples/itemviews/chart/chart.py b/examples/itemviews/chart/chart.py index 58d20b9..13a8670 100755 --- a/examples/itemviews/chart/chart.py +++ b/examples/itemviews/chart/chart.py @@ -25,7 +25,7 @@ import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import chart_rc diff --git a/examples/itemviews/chart/chart_rc.py b/examples/itemviews/chart/chart_rc.py index 1796215..9637014 100644 --- a/examples/itemviews/chart/chart_rc.py +++ b/examples/itemviews/chart/chart_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x01\x90\ diff --git a/examples/itemviews/dirview.py b/examples/itemviews/dirview.py index cd00290..a1e08fd 100755 --- a/examples/itemviews/dirview.py +++ b/examples/itemviews/dirview.py @@ -24,7 +24,7 @@ ############################################################################ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui if __name__ == '__main__': diff --git a/examples/itemviews/editabletreemodel/editabletreemodel.py b/examples/itemviews/editabletreemodel/editabletreemodel.py index 18d70b9..b681673 100755 --- a/examples/itemviews/editabletreemodel/editabletreemodel.py +++ b/examples/itemviews/editabletreemodel/editabletreemodel.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import editabletreemodel_rc from ui_mainwindow import Ui_MainWindow diff --git a/examples/itemviews/editabletreemodel/editabletreemodel_rc.py b/examples/itemviews/editabletreemodel/editabletreemodel_rc.py index e50dfec..a3e4e31 100644 --- a/examples/itemviews/editabletreemodel/editabletreemodel_rc.py +++ b/examples/itemviews/editabletreemodel/editabletreemodel_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x07\xb9\ diff --git a/examples/itemviews/editabletreemodel/ui_mainwindow.py b/examples/itemviews/editabletreemodel/ui_mainwindow.py index f0e0075..6af05b7 100644 --- a/examples/itemviews/editabletreemodel/ui_mainwindow.py +++ b/examples/itemviews/editabletreemodel/ui_mainwindow.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_MainWindow(object): def setupUi(self, MainWindow): diff --git a/examples/itemviews/fetchmore.py b/examples/itemviews/fetchmore.py index c8763d8..4e9f13a 100755 --- a/examples/itemviews/fetchmore.py +++ b/examples/itemviews/fetchmore.py @@ -3,7 +3,7 @@ # Fetch More Example # Ported to PyQt4 by Darryl Wallace, 2009 - wallacdj@gmail.com -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class FileListModel(QtCore.QAbstractListModel): diff --git a/examples/itemviews/pixelator/pixelator.py b/examples/itemviews/pixelator/pixelator.py index a057abf..117a990 100755 --- a/examples/itemviews/pixelator/pixelator.py +++ b/examples/itemviews/pixelator/pixelator.py @@ -24,7 +24,7 @@ ############################################################################ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import pixelator_rc diff --git a/examples/itemviews/pixelator/pixelator_rc.py b/examples/itemviews/pixelator/pixelator_rc.py index 50bf458..0abdac9 100644 --- a/examples/itemviews/pixelator/pixelator_rc.py +++ b/examples/itemviews/pixelator/pixelator_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x02\x90\ diff --git a/examples/itemviews/puzzle/puzzle.py b/examples/itemviews/puzzle/puzzle.py index 8277d42..4f8e74d 100755 --- a/examples/itemviews/puzzle/puzzle.py +++ b/examples/itemviews/puzzle/puzzle.py @@ -24,7 +24,7 @@ ############################################################################ import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import puzzle_rc diff --git a/examples/itemviews/puzzle/puzzle_rc.py b/examples/itemviews/puzzle/puzzle_rc.py index f0b1738..1309093 100644 --- a/examples/itemviews/puzzle/puzzle_rc.py +++ b/examples/itemviews/puzzle/puzzle_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x7c\x1a\ diff --git a/examples/itemviews/simpledommodel.py b/examples/itemviews/simpledommodel.py index 566ec45..93ae049 100755 --- a/examples/itemviews/simpledommodel.py +++ b/examples/itemviews/simpledommodel.py @@ -23,7 +23,7 @@ ** ***************************************************************************""" -from PySide import QtCore, QtGui, QtXml +from PySide2 import QtCore, QtGui, QtXml class DomItem(object): diff --git a/examples/itemviews/simpletreemodel/simpletreemodel.py b/examples/itemviews/simpletreemodel/simpletreemodel.py index 657b8ab..6b7f467 100755 --- a/examples/itemviews/simpletreemodel/simpletreemodel.py +++ b/examples/itemviews/simpletreemodel/simpletreemodel.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import simpletreemodel_rc diff --git a/examples/itemviews/simpletreemodel/simpletreemodel_rc.py b/examples/itemviews/simpletreemodel/simpletreemodel_rc.py index 8ae2a50..aa49fc3 100644 --- a/examples/itemviews/simpletreemodel/simpletreemodel_rc.py +++ b/examples/itemviews/simpletreemodel/simpletreemodel_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x07\xb9\ diff --git a/examples/itemviews/spinboxdelegate.py b/examples/itemviews/spinboxdelegate.py index e838781..5bdeade 100755 --- a/examples/itemviews/spinboxdelegate.py +++ b/examples/itemviews/spinboxdelegate.py @@ -24,7 +24,7 @@ ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SpinBoxDelegate(QtGui.QItemDelegate): diff --git a/examples/layouts/basiclayouts.py b/examples/layouts/basiclayouts.py index 8bf4bc5..eedc3fe 100755 --- a/examples/layouts/basiclayouts.py +++ b/examples/layouts/basiclayouts.py @@ -2,7 +2,7 @@ """PyQt4 port of the layouts/basiclayout example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Dialog(QtGui.QDialog): diff --git a/examples/layouts/borderlayout.py b/examples/layouts/borderlayout.py index 33f5127..5f17ad0 100755 --- a/examples/layouts/borderlayout.py +++ b/examples/layouts/borderlayout.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class ItemWrapper(object): diff --git a/examples/layouts/flowlayout.py b/examples/layouts/flowlayout.py index 8d117f6..27f0bf9 100755 --- a/examples/layouts/flowlayout.py +++ b/examples/layouts/flowlayout.py @@ -2,7 +2,7 @@ """PyQt4 port of the layouts/flowlayout example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QWidget): diff --git a/examples/mainwindows/application/application.py b/examples/mainwindows/application/application.py index ac8b2d4..43605ff 100755 --- a/examples/mainwindows/application/application.py +++ b/examples/mainwindows/application/application.py @@ -4,7 +4,7 @@ #import sip #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import application_rc diff --git a/examples/mainwindows/application/application_rc.py b/examples/mainwindows/application/application_rc.py index 0765de8..5464425 100644 --- a/examples/mainwindows/application/application_rc.py +++ b/examples/mainwindows/application/application_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x54\ diff --git a/examples/mainwindows/dockwidgets/dockwidgets.py b/examples/mainwindows/dockwidgets/dockwidgets.py index d0984cf..d648222 100755 --- a/examples/mainwindows/dockwidgets/dockwidgets.py +++ b/examples/mainwindows/dockwidgets/dockwidgets.py @@ -27,7 +27,7 @@ #import sip #sip.setapi('QString', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import dockwidgets_rc diff --git a/examples/mainwindows/dockwidgets/dockwidgets_rc.py b/examples/mainwindows/dockwidgets/dockwidgets_rc.py index fb216e2..fe6fb42 100644 --- a/examples/mainwindows/dockwidgets/dockwidgets_rc.py +++ b/examples/mainwindows/dockwidgets/dockwidgets_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x06\xc4\ diff --git a/examples/mainwindows/mdi/mdi.py b/examples/mainwindows/mdi/mdi.py index 9337fda..c76f71c 100755 --- a/examples/mainwindows/mdi/mdi.py +++ b/examples/mainwindows/mdi/mdi.py @@ -27,7 +27,7 @@ #import sip #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import mdi_rc diff --git a/examples/mainwindows/mdi/mdi_rc.py b/examples/mainwindows/mdi/mdi_rc.py index b6981e3..c3becd0 100644 --- a/examples/mainwindows/mdi/mdi_rc.py +++ b/examples/mainwindows/mdi/mdi_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x54\ diff --git a/examples/mainwindows/menus.py b/examples/mainwindows/menus.py index 1ab52b9..1e36eeb 100755 --- a/examples/mainwindows/menus.py +++ b/examples/mainwindows/menus.py @@ -23,7 +23,7 @@ # ############################################################################ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/mainwindows/recentfiles.py b/examples/mainwindows/recentfiles.py index ecceb8d..50ce978 100755 --- a/examples/mainwindows/recentfiles.py +++ b/examples/mainwindows/recentfiles.py @@ -28,7 +28,7 @@ #sip.setapi('QString', 2) #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/mainwindows/sdi/sdi.py b/examples/mainwindows/sdi/sdi.py index 6059ab0..ee8a9c0 100755 --- a/examples/mainwindows/sdi/sdi.py +++ b/examples/mainwindows/sdi/sdi.py @@ -27,7 +27,7 @@ #import sip #sip.setapi('QVariant', 2) -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import sdi_rc diff --git a/examples/mainwindows/sdi/sdi_rc.py b/examples/mainwindows/sdi/sdi_rc.py index ec9af9a..86d90f9 100644 --- a/examples/mainwindows/sdi/sdi_rc.py +++ b/examples/mainwindows/sdi/sdi_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x54\ diff --git a/examples/network/blockingfortuneclient.py b/examples/network/blockingfortuneclient.py index e5d7d16..e2c6c25 100755 --- a/examples/network/blockingfortuneclient.py +++ b/examples/network/blockingfortuneclient.py @@ -23,7 +23,7 @@ # ############################################################################ -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class FortuneThread(QtCore.QThread): diff --git a/examples/network/broadcastreceiver.py b/examples/network/broadcastreceiver.py index f9e43ea..1d67498 100755 --- a/examples/network/broadcastreceiver.py +++ b/examples/network/broadcastreceiver.py @@ -23,7 +23,7 @@ # ############################################################################ -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class Receiver(QtGui.QDialog): diff --git a/examples/network/broadcastsender.py b/examples/network/broadcastsender.py index f3d1dc8..e90f635 100755 --- a/examples/network/broadcastsender.py +++ b/examples/network/broadcastsender.py @@ -23,7 +23,7 @@ # ############################################################################ -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class Sender(QtGui.QDialog): diff --git a/examples/network/fortuneclient.py b/examples/network/fortuneclient.py index 57b9dd0..c85ab50 100755 --- a/examples/network/fortuneclient.py +++ b/examples/network/fortuneclient.py @@ -2,7 +2,7 @@ """PySide port of the network/fortuneclient example from Qt v4.x""" -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class Client(QtGui.QDialog): diff --git a/examples/network/fortuneserver.py b/examples/network/fortuneserver.py index 1782b3e..504f623 100755 --- a/examples/network/fortuneserver.py +++ b/examples/network/fortuneserver.py @@ -4,7 +4,7 @@ import random -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class Server(QtGui.QDialog): diff --git a/examples/network/ftp/ftp.py b/examples/network/ftp/ftp.py index fc9ec02..b43a17f 100755 --- a/examples/network/ftp/ftp.py +++ b/examples/network/ftp/ftp.py @@ -3,7 +3,7 @@ """PySide port of the network/ftp example from Qt v4.x""" -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork import ftp_rc diff --git a/examples/network/ftp/ftp_rc.py b/examples/network/ftp/ftp_rc.py index a47b8d2..180c2cc 100644 --- a/examples/network/ftp/ftp_rc.py +++ b/examples/network/ftp/ftp_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x00\x9b\ diff --git a/examples/network/http.py b/examples/network/http.py index 30026eb..3caefcc 100755 --- a/examples/network/http.py +++ b/examples/network/http.py @@ -3,7 +3,7 @@ """PySide port of the network/http example from Qt v4.x""" import sys -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class HttpWindow(QtGui.QDialog): diff --git a/examples/network/http/http.py b/examples/network/http/http.py index 5e38bbc..adf585c 100755 --- a/examples/network/http/http.py +++ b/examples/network/http/http.py @@ -2,7 +2,7 @@ """PyQt4 port of the network/http example from Qt v4.x""" -from PySide import QtCore, QtGui, QtNetwork, QtUiTools +from PySide2 import QtCore, QtGui, QtNetwork, QtUiTools class HttpWindow(QtGui.QDialog): diff --git a/examples/network/loopback.py b/examples/network/loopback.py index e386bf5..475b7b1 100755 --- a/examples/network/loopback.py +++ b/examples/network/loopback.py @@ -23,7 +23,7 @@ # ############################################################################ -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class Dialog(QtGui.QDialog): diff --git a/examples/network/threadedfortuneserver.py b/examples/network/threadedfortuneserver.py index 0cebab8..1915013 100755 --- a/examples/network/threadedfortuneserver.py +++ b/examples/network/threadedfortuneserver.py @@ -25,7 +25,7 @@ import random -from PySide import QtCore, QtGui, QtNetwork +from PySide2 import QtCore, QtGui, QtNetwork class FortuneThread(QtCore.QThread): diff --git a/examples/opengl/grabber.py b/examples/opengl/grabber.py index a414e26..d8382ff 100755 --- a/examples/opengl/grabber.py +++ b/examples/opengl/grabber.py @@ -26,7 +26,7 @@ import sys import math -from PySide import QtCore, QtGui, QtOpenGL +from PySide2 import QtCore, QtGui, QtOpenGL try: from OpenGL.GL import * diff --git a/examples/opengl/hellogl.py b/examples/opengl/hellogl.py index f812e3f..7d93d30 100755 --- a/examples/opengl/hellogl.py +++ b/examples/opengl/hellogl.py @@ -4,7 +4,7 @@ import sys import math -from PySide import QtCore, QtGui, QtOpenGL +from PySide2 import QtCore, QtGui, QtOpenGL try: from OpenGL import GL diff --git a/examples/opengl/samplebuffers.py b/examples/opengl/samplebuffers.py index 9227aa9..f738b7d 100755 --- a/examples/opengl/samplebuffers.py +++ b/examples/opengl/samplebuffers.py @@ -4,7 +4,7 @@ import sys import math -from PySide import QtCore, QtGui, QtOpenGL +from PySide2 import QtCore, QtGui, QtOpenGL try: from OpenGL import GL diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py index 72ab041..ea63ac5 100755 --- a/examples/opengl/textures/textures.py +++ b/examples/opengl/textures/textures.py @@ -24,7 +24,7 @@ ***************************************************************************""" import sys -from PySide import QtCore, QtGui, QtOpenGL +from PySide2 import QtCore, QtGui, QtOpenGL try: from OpenGL.GL import * diff --git a/examples/opengl/textures/textures_rc.py b/examples/opengl/textures/textures_rc.py index fe5787c..272bb93 100644 --- a/examples/opengl/textures/textures_rc.py +++ b/examples/opengl/textures/textures_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x05\x3e\ diff --git a/examples/painting/basicdrawing/basicdrawing.py b/examples/painting/basicdrawing/basicdrawing.py index 9bccbdc..a547015 100755 --- a/examples/painting/basicdrawing/basicdrawing.py +++ b/examples/painting/basicdrawing/basicdrawing.py @@ -24,7 +24,7 @@ ***************************************************************************""" import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import basicdrawing_rc diff --git a/examples/painting/basicdrawing/basicdrawing_rc.py b/examples/painting/basicdrawing/basicdrawing_rc.py index 4a5aa75..f4e0c70 100644 --- a/examples/painting/basicdrawing/basicdrawing_rc.py +++ b/examples/painting/basicdrawing/basicdrawing_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x58\ diff --git a/examples/painting/concentriccircles.py b/examples/painting/concentriccircles.py index ced32cd..31654b1 100755 --- a/examples/painting/concentriccircles.py +++ b/examples/painting/concentriccircles.py @@ -24,7 +24,7 @@ ***************************************************************************""" import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class CircleWidget(QtGui.QWidget): diff --git a/examples/painting/painterpaths.py b/examples/painting/painterpaths.py index 757ebc7..04c311c 100755 --- a/examples/painting/painterpaths.py +++ b/examples/painting/painterpaths.py @@ -25,7 +25,7 @@ from math import cos, pi, sin -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class RenderArea(QtGui.QWidget): diff --git a/examples/painting/svgviewer/svgviewer.py b/examples/painting/svgviewer/svgviewer.py index e49fb66..e16f8f4 100755 --- a/examples/painting/svgviewer/svgviewer.py +++ b/examples/painting/svgviewer/svgviewer.py @@ -3,7 +3,7 @@ """PySide port of the painting/svgviewer example from Qt v4.x""" import sys -from PySide import QtCore, QtGui, QtOpenGL, QtSvg +from PySide2 import QtCore, QtGui, QtOpenGL, QtSvg import svgviewer_rc diff --git a/examples/painting/svgviewer/svgviewer_rc.py b/examples/painting/svgviewer/svgviewer_rc.py index e6ea9b1..f3c694a 100644 --- a/examples/painting/svgviewer/svgviewer_rc.py +++ b/examples/painting/svgviewer/svgviewer_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x14\xa0\ diff --git a/examples/painting/transformations.py b/examples/painting/transformations.py index 8363077..1bc7ecb 100755 --- a/examples/painting/transformations.py +++ b/examples/painting/transformations.py @@ -24,7 +24,7 @@ ***************************************************************************""" import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui NoTransformation, Translate, Rotate, Scale = range(4) diff --git a/examples/richtext/calendar.py b/examples/richtext/calendar.py index 1b10520..aebcbcd 100755 --- a/examples/richtext/calendar.py +++ b/examples/richtext/calendar.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/richtext/orderform.py b/examples/richtext/orderform.py index 00df964..423725a 100755 --- a/examples/richtext/orderform.py +++ b/examples/richtext/orderform.py @@ -2,7 +2,7 @@ """PyQt4 port of the richtext/orderform example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/richtext/syntaxhighlighter.py b/examples/richtext/syntaxhighlighter.py index 9809bb5..afae910 100755 --- a/examples/richtext/syntaxhighlighter.py +++ b/examples/richtext/syntaxhighlighter.py @@ -2,7 +2,7 @@ """PyQt4 port of the richtext/syntaxhighlighter example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/richtext/syntaxhighlighter/syntaxhighlighter.py b/examples/richtext/syntaxhighlighter/syntaxhighlighter.py index 3a6a7ba..abde257 100755 --- a/examples/richtext/syntaxhighlighter/syntaxhighlighter.py +++ b/examples/richtext/syntaxhighlighter/syntaxhighlighter.py @@ -4,7 +4,7 @@ import sys import re -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import syntaxhighlighter_rc diff --git a/examples/richtext/syntaxhighlighter/syntaxhighlighter_rc.py b/examples/richtext/syntaxhighlighter/syntaxhighlighter_rc.py index cf60432..744f458 100644 --- a/examples/richtext/syntaxhighlighter/syntaxhighlighter_rc.py +++ b/examples/richtext/syntaxhighlighter/syntaxhighlighter_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x06\x79\ diff --git a/examples/richtext/textobject/textobject.py b/examples/richtext/textobject/textobject.py index 4a2e137..dc3dcd4 100755 --- a/examples/richtext/textobject/textobject.py +++ b/examples/richtext/textobject/textobject.py @@ -2,7 +2,7 @@ """PyQt4 port of the richtext/textobject example from Qt v4.x""" -from PySide import QtCore, QtGui, QtSvg +from PySide2 import QtCore, QtGui, QtSvg class SvgTextObject(QtCore.QObject, QtGui.QTextObjectInterface): diff --git a/examples/script/calculator/calculator_rc.py b/examples/script/calculator/calculator_rc.py index f7bdfd2..4a50c1d 100644 --- a/examples/script/calculator/calculator_rc.py +++ b/examples/script/calculator/calculator_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x22\x34\ diff --git a/examples/script/helloscript.py b/examples/script/helloscript.py index 40f733d..7974b95 100755 --- a/examples/script/helloscript.py +++ b/examples/script/helloscript.py @@ -3,7 +3,7 @@ """PySide port of the script/helloscript example from Qt v4.x""" import sys -from PySide import QtGui, QtScript +from PySide2 import QtGui, QtScript app = QtGui.QApplication(sys.argv) diff --git a/examples/sql/cachedtable.py b/examples/sql/cachedtable.py index ad98f51..07d89df 100755 --- a/examples/sql/cachedtable.py +++ b/examples/sql/cachedtable.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui, QtSql +from PySide2 import QtCore, QtGui, QtSql import connection diff --git a/examples/sql/connection.py b/examples/sql/connection.py index 38acbfd..1492fc3 100644 --- a/examples/sql/connection.py +++ b/examples/sql/connection.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtSql, QtGui +from PySide2 import QtSql, QtGui def createConnection(): diff --git a/examples/sql/querymodel.py b/examples/sql/querymodel.py index bfcc11a..1a558b0 100755 --- a/examples/sql/querymodel.py +++ b/examples/sql/querymodel.py @@ -24,7 +24,7 @@ ############################################################################ # This is only needed for Python v2 but is harmless for Python v3. -from PySide import QtCore, QtGui, QtSql +from PySide2 import QtCore, QtGui, QtSql import connection diff --git a/examples/sql/relationaltablemodel.py b/examples/sql/relationaltablemodel.py index 6f12c4a..366eef7 100755 --- a/examples/sql/relationaltablemodel.py +++ b/examples/sql/relationaltablemodel.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui, QtSql +from PySide2 import QtCore, QtGui, QtSql import connection diff --git a/examples/sql/tablemodel.py b/examples/sql/tablemodel.py index ed95459..6af7484 100755 --- a/examples/sql/tablemodel.py +++ b/examples/sql/tablemodel.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui, QtSql +from PySide2 import QtCore, QtGui, QtSql import connection diff --git a/examples/threads/mandelbrot.py b/examples/threads/mandelbrot.py index f5d369b..a0c0997 100755 --- a/examples/threads/mandelbrot.py +++ b/examples/threads/mandelbrot.py @@ -24,7 +24,7 @@ ############################################################################ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui DefaultCenterX = -0.647011 diff --git a/examples/threads/semaphores.py b/examples/threads/semaphores.py index 94ead07..6f56786 100755 --- a/examples/threads/semaphores.py +++ b/examples/threads/semaphores.py @@ -25,7 +25,7 @@ import sys import random -from PySide import QtCore +from PySide2 import QtCore DataSize = 100000 diff --git a/examples/threads/waitconditions.py b/examples/threads/waitconditions.py index 896d7eb..f45af78 100755 --- a/examples/threads/waitconditions.py +++ b/examples/threads/waitconditions.py @@ -25,7 +25,7 @@ import sys import random -from PySide import QtCore +from PySide2 import QtCore DataSize = 100000 diff --git a/examples/tools/codecs/codecs.py b/examples/tools/codecs/codecs.py index ef36ce6..fc990fe 100755 --- a/examples/tools/codecs/codecs.py +++ b/examples/tools/codecs/codecs.py @@ -2,7 +2,7 @@ """PyQt4 port of the tools/codecs example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui def codec_name(codec): diff --git a/examples/tools/i18n/i18n.py b/examples/tools/i18n/i18n.py index d7fb25e..0d44851 100755 --- a/examples/tools/i18n/i18n.py +++ b/examples/tools/i18n/i18n.py @@ -25,7 +25,7 @@ import sys import os.path -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import i18n_rc diff --git a/examples/tools/i18n/i18n_rc.py b/examples/tools/i18n/i18n_rc.py index c543005..59f94cb 100644 --- a/examples/tools/i18n/i18n_rc.py +++ b/examples/tools/i18n/i18n_rc.py @@ -5,7 +5,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x4c\ diff --git a/examples/tools/qtdemo/displayshape.py b/examples/tools/qtdemo/displayshape.py index b9487d0..ca81905 100644 --- a/examples/tools/qtdemo/displayshape.py +++ b/examples/tools/qtdemo/displayshape.py @@ -22,7 +22,7 @@ ############################################################################ from math import ceil -from PySide import QtCore, QtGui, QtNetwork, QtXml +from PySide2 import QtCore, QtGui, QtNetwork, QtXml class DisplayShape: diff --git a/examples/tools/qtdemo/displaywidget.py b/examples/tools/qtdemo/displaywidget.py index 8ea0506..3f0527e 100644 --- a/examples/tools/qtdemo/displaywidget.py +++ b/examples/tools/qtdemo/displaywidget.py @@ -21,7 +21,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui, QtNetwork, QtXml +from PySide2 import QtCore, QtGui, QtNetwork, QtXml class DisplayWidget(QtGui.QWidget): diff --git a/examples/tools/qtdemo/launcher.py b/examples/tools/qtdemo/launcher.py index cbbd17e..65ffb91 100644 --- a/examples/tools/qtdemo/launcher.py +++ b/examples/tools/qtdemo/launcher.py @@ -25,7 +25,7 @@ import sys import re -from PySide import QtCore, QtGui, QtHelp, QtNetwork, QtXml +from PySide2 import QtCore, QtGui, QtHelp, QtNetwork, QtXml from displaywidget import DisplayWidget from displayshape import TitleShape, DisplayShape, PanelShape, ImageShape, DocumentShape diff --git a/examples/tools/qtdemo/qtdemo.py b/examples/tools/qtdemo/qtdemo.py index b38f262..d1d1627 100755 --- a/examples/tools/qtdemo/qtdemo.py +++ b/examples/tools/qtdemo/qtdemo.py @@ -25,7 +25,7 @@ import sys import os -from PySide import QtGui +from PySide2 import QtGui import qtdemo_rc diff --git a/examples/tools/qtdemo/qtdemo_rc.py b/examples/tools/qtdemo/qtdemo_rc.py index 940c4f5..e08136a 100644 --- a/examples/tools/qtdemo/qtdemo_rc.py +++ b/examples/tools/qtdemo/qtdemo_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x1e\x55\ diff --git a/examples/tools/regexp.py b/examples/tools/regexp.py index 13b2c9f..1c7bbfc 100755 --- a/examples/tools/regexp.py +++ b/examples/tools/regexp.py @@ -2,7 +2,7 @@ """PyQt4 port of the tools/regexp example from Qt v4.x""" -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class RegExpDialog(QtGui.QDialog): diff --git a/examples/tools/settingseditor/settingseditor.py b/examples/tools/settingseditor/settingseditor.py index 004852e..1398650 100755 --- a/examples/tools/settingseditor/settingseditor.py +++ b/examples/tools/settingseditor/settingseditor.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MainWindow(QtGui.QMainWindow): diff --git a/examples/tutorial/t1.py b/examples/tutorial/t1.py index a1bcba7..26b00c2 100755 --- a/examples/tutorial/t1.py +++ b/examples/tutorial/t1.py @@ -4,7 +4,7 @@ import sys -from PySide import QtGui +from PySide2 import QtGui app = QtGui.QApplication(sys.argv) diff --git a/examples/tutorial/t10.py b/examples/tutorial/t10.py index fc89a8a..86fa1ee 100755 --- a/examples/tutorial/t10.py +++ b/examples/tutorial/t10.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t11.py b/examples/tutorial/t11.py index faa7b64..9b3da8a 100755 --- a/examples/tutorial/t11.py +++ b/examples/tutorial/t11.py @@ -5,7 +5,7 @@ import sys import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t12.py b/examples/tutorial/t12.py index 27ead9e..1be4b3b 100755 --- a/examples/tutorial/t12.py +++ b/examples/tutorial/t12.py @@ -6,7 +6,7 @@ import sys import math import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t13.py b/examples/tutorial/t13.py index 33b7f45..41829a4 100755 --- a/examples/tutorial/t13.py +++ b/examples/tutorial/t13.py @@ -6,7 +6,7 @@ import sys import math import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py index 121f840..e9287fd 100755 --- a/examples/tutorial/t14.py +++ b/examples/tutorial/t14.py @@ -6,7 +6,7 @@ import sys import math import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t2.py b/examples/tutorial/t2.py index 1d5a823..d670157 100755 --- a/examples/tutorial/t2.py +++ b/examples/tutorial/t2.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui app = QtGui.QApplication(sys.argv) diff --git a/examples/tutorial/t3.py b/examples/tutorial/t3.py index 69bd86c..a0f7339 100755 --- a/examples/tutorial/t3.py +++ b/examples/tutorial/t3.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui app = QtGui.QApplication(sys.argv) diff --git a/examples/tutorial/t4.py b/examples/tutorial/t4.py index faec637..0f6fc5d 100755 --- a/examples/tutorial/t4.py +++ b/examples/tutorial/t4.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MyWidget(QtGui.QWidget): diff --git a/examples/tutorial/t5.py b/examples/tutorial/t5.py index ac9ebf3..237c254 100755 --- a/examples/tutorial/t5.py +++ b/examples/tutorial/t5.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MyWidget(QtGui.QWidget): diff --git a/examples/tutorial/t6.py b/examples/tutorial/t6.py index 1953ca5..8636aba 100755 --- a/examples/tutorial/t6.py +++ b/examples/tutorial/t6.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t7.py b/examples/tutorial/t7.py index 74629b0..b981ee9 100755 --- a/examples/tutorial/t7.py +++ b/examples/tutorial/t7.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t8.py b/examples/tutorial/t8.py index f5ace10..697de9a 100755 --- a/examples/tutorial/t8.py +++ b/examples/tutorial/t8.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorial/t9.py b/examples/tutorial/t9.py index 4c869cd..0a6bd59 100755 --- a/examples/tutorial/t9.py +++ b/examples/tutorial/t9.py @@ -4,7 +4,7 @@ import sys -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class LCDRange(QtGui.QWidget): diff --git a/examples/tutorials/addressbook/part1.py b/examples/tutorials/addressbook/part1.py index c579b3c..7bf7a6e 100755 --- a/examples/tutorials/addressbook/part1.py +++ b/examples/tutorials/addressbook/part1.py @@ -9,7 +9,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class AddressBook(QtGui.QWidget): diff --git a/examples/tutorials/addressbook/part2.py b/examples/tutorials/addressbook/part2.py index 136770d..5d9b453 100755 --- a/examples/tutorials/addressbook/part2.py +++ b/examples/tutorials/addressbook/part2.py @@ -9,7 +9,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/tutorials/addressbook/part3.py b/examples/tutorials/addressbook/part3.py index 864ec91..766dacf 100755 --- a/examples/tutorials/addressbook/part3.py +++ b/examples/tutorials/addressbook/part3.py @@ -9,7 +9,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/tutorials/addressbook/part4.py b/examples/tutorials/addressbook/part4.py index 6fdc3b7..417c1ca 100755 --- a/examples/tutorials/addressbook/part4.py +++ b/examples/tutorials/addressbook/part4.py @@ -9,7 +9,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/tutorials/addressbook/part5.py b/examples/tutorials/addressbook/part5.py index 1249091..ef6aeaa 100755 --- a/examples/tutorials/addressbook/part5.py +++ b/examples/tutorials/addressbook/part5.py @@ -9,7 +9,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/tutorials/addressbook/part6.py b/examples/tutorials/addressbook/part6.py index c0721db..9db505b 100755 --- a/examples/tutorials/addressbook/part6.py +++ b/examples/tutorials/addressbook/part6.py @@ -11,7 +11,7 @@ import pickle -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/tutorials/addressbook/part7.py b/examples/tutorials/addressbook/part7.py index 906cd91..2d5b87c 100755 --- a/examples/tutorials/addressbook/part7.py +++ b/examples/tutorials/addressbook/part7.py @@ -11,7 +11,7 @@ import pickle -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SortedDict(dict): diff --git a/examples/widgets/analogclock.py b/examples/widgets/analogclock.py index 1ae2850..a755594 100755 --- a/examples/widgets/analogclock.py +++ b/examples/widgets/analogclock.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class AnalogClock(QtGui.QWidget): diff --git a/examples/widgets/calculator.py b/examples/widgets/calculator.py index 03c3849..ea14c4f 100755 --- a/examples/widgets/calculator.py +++ b/examples/widgets/calculator.py @@ -25,7 +25,7 @@ import math -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Button(QtGui.QToolButton): diff --git a/examples/widgets/charactermap.py b/examples/widgets/charactermap.py index ce5621d..528cfe5 100755 --- a/examples/widgets/charactermap.py +++ b/examples/widgets/charactermap.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class CharacterWidget(QtGui.QWidget): diff --git a/examples/widgets/digitalclock.py b/examples/widgets/digitalclock.py index 7a905d5..2c4368d 100755 --- a/examples/widgets/digitalclock.py +++ b/examples/widgets/digitalclock.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class DigitalClock(QtGui.QLCDNumber): diff --git a/examples/widgets/groupbox.py b/examples/widgets/groupbox.py index 5a53b4a..c165ed3 100755 --- a/examples/widgets/groupbox.py +++ b/examples/widgets/groupbox.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QWidget): diff --git a/examples/widgets/icons/icons.py b/examples/widgets/icons/icons.py index 6882c42..b4c9466 100755 --- a/examples/widgets/icons/icons.py +++ b/examples/widgets/icons/icons.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class IconSizeSpinBox(QtGui.QSpinBox): @staticmethod diff --git a/examples/widgets/imageviewer.py b/examples/widgets/imageviewer.py index 5579359..d1d1057 100755 --- a/examples/widgets/imageviewer.py +++ b/examples/widgets/imageviewer.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class ImageViewer(QtGui.QMainWindow): diff --git a/examples/widgets/lineedits.py b/examples/widgets/lineedits.py index 57e888e..70b0f4b 100755 --- a/examples/widgets/lineedits.py +++ b/examples/widgets/lineedits.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QWidget): diff --git a/examples/widgets/movie/movie.py b/examples/widgets/movie/movie.py index d67b964..ec61959 100755 --- a/examples/widgets/movie/movie.py +++ b/examples/widgets/movie/movie.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class MoviePlayer(QtGui.QWidget): def __init__(self, parent=None): diff --git a/examples/widgets/scribble.py b/examples/widgets/scribble.py index fde1c5e..50e24de 100755 --- a/examples/widgets/scribble.py +++ b/examples/widgets/scribble.py @@ -23,7 +23,7 @@ ## ############################################################################/ -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class ScribbleArea(QtGui.QWidget): diff --git a/examples/widgets/shapedclock.py b/examples/widgets/shapedclock.py index 9ee7200..84fd31b 100755 --- a/examples/widgets/shapedclock.py +++ b/examples/widgets/shapedclock.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class ShapedClock(QtGui.QWidget): diff --git a/examples/widgets/sliders.py b/examples/widgets/sliders.py index 5a41dc6..f6acf49 100755 --- a/examples/widgets/sliders.py +++ b/examples/widgets/sliders.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class SlidersGroup(QtGui.QGroupBox): diff --git a/examples/widgets/spinboxes.py b/examples/widgets/spinboxes.py index 671a229..c926227 100755 --- a/examples/widgets/spinboxes.py +++ b/examples/widgets/spinboxes.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Window(QtGui.QWidget): diff --git a/examples/widgets/styles.py b/examples/widgets/styles.py index 09416ec..e31f40b 100755 --- a/examples/widgets/styles.py +++ b/examples/widgets/styles.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class WidgetGallery(QtGui.QDialog): diff --git a/examples/widgets/tetrix.py b/examples/widgets/tetrix.py index 16db3b9..62b5469 100755 --- a/examples/widgets/tetrix.py +++ b/examples/widgets/tetrix.py @@ -4,7 +4,7 @@ import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui NoShape, ZShape, SShape, LineShape, TShape, SquareShape, LShape, MirroredLShape = range(8) diff --git a/examples/widgets/tooltips/tooltips.py b/examples/widgets/tooltips/tooltips.py index c09320d..b68626c 100755 --- a/examples/widgets/tooltips/tooltips.py +++ b/examples/widgets/tooltips/tooltips.py @@ -25,7 +25,7 @@ import random -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui import tooltips_rc diff --git a/examples/widgets/tooltips/tooltips_rc.py b/examples/widgets/tooltips/tooltips_rc.py index 425014a..929ee50 100644 --- a/examples/widgets/tooltips/tooltips_rc.py +++ b/examples/widgets/tooltips/tooltips_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x00\xaa\ diff --git a/examples/widgets/wiggly.py b/examples/widgets/wiggly.py index 7103f62..dddf74d 100755 --- a/examples/widgets/wiggly.py +++ b/examples/widgets/wiggly.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class WigglyWidget(QtGui.QWidget): diff --git a/examples/widgets/windowflags.py b/examples/widgets/windowflags.py index 3d48954..6cdb997 100755 --- a/examples/widgets/windowflags.py +++ b/examples/widgets/windowflags.py @@ -23,7 +23,7 @@ ## ############################################################################# -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class PreviewWindow(QtGui.QWidget): diff --git a/examples/xml/dombookmarks/dombookmarks.py b/examples/xml/dombookmarks/dombookmarks.py index 9564e88..c7d11c4 100755 --- a/examples/xml/dombookmarks/dombookmarks.py +++ b/examples/xml/dombookmarks/dombookmarks.py @@ -2,7 +2,7 @@ """PyQt4 port of the xml/dombookmarks example from Qt v4.x""" -from PySide import QtCore, QtGui, QtXml +from PySide2 import QtCore, QtGui, QtXml class MainWindow(QtGui.QMainWindow): diff --git a/examples/xml/saxbookmarks/saxbookmarks.py b/examples/xml/saxbookmarks/saxbookmarks.py index 2aeae7f..73fa741 100755 --- a/examples/xml/saxbookmarks/saxbookmarks.py +++ b/examples/xml/saxbookmarks/saxbookmarks.py @@ -23,7 +23,7 @@ ## ############################################################################ -from PySide import QtCore, QtGui, QtXml +from PySide2 import QtCore, QtGui, QtXml class XbelGenerator(object): diff --git a/examples/xmlpatterns/schema/schema.py b/examples/xmlpatterns/schema/schema.py index 85c9eda..bdc33df 100755 --- a/examples/xmlpatterns/schema/schema.py +++ b/examples/xmlpatterns/schema/schema.py @@ -1,7 +1,7 @@ #!/usr/bin/env python -from PySide import QtCore, QtGui, QtXmlPatterns +from PySide2 import QtCore, QtGui, QtXmlPatterns import schema_rc from ui_schema import Ui_SchemaMainWindow diff --git a/examples/xmlpatterns/schema/schema_rc.py b/examples/xmlpatterns/schema/schema_rc.py index 2a0514f..a18496f 100644 --- a/examples/xmlpatterns/schema/schema_rc.py +++ b/examples/xmlpatterns/schema/schema_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x03\x67\ diff --git a/examples/xmlpatterns/schema/ui_schema.py b/examples/xmlpatterns/schema/ui_schema.py index 4e8e3fa..62a97b6 100644 --- a/examples/xmlpatterns/schema/ui_schema.py +++ b/examples/xmlpatterns/schema/ui_schema.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_SchemaMainWindow(object): def setupUi(self, SchemaMainWindow): diff --git a/mobility/audiodevices/audiodevicesbase.py b/mobility/audiodevices/audiodevicesbase.py index f8c4b10..754d6ff 100644 --- a/mobility/audiodevices/audiodevicesbase.py +++ b/mobility/audiodevices/audiodevicesbase.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_AudioDevicesBase(object): def setupUi(self, AudioDevicesBase): diff --git a/mobility/battery-charge/battery-publisher/batterypublisher_ui.py b/mobility/battery-charge/battery-publisher/batterypublisher_ui.py index d41a8ed..434b120 100644 --- a/mobility/battery-charge/battery-publisher/batterypublisher_ui.py +++ b/mobility/battery-charge/battery-publisher/batterypublisher_ui.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_BatteryPublisher(object): def setupUi(self, BatteryPublisher): diff --git a/mobility/publish-subscribe/main.py b/mobility/publish-subscribe/main.py index db6f1d7..44d25c7 100755 --- a/mobility/publish-subscribe/main.py +++ b/mobility/publish-subscribe/main.py @@ -47,7 +47,7 @@ from PySide.QtGui import QApplication from QtMobility.PublishSubscribe import QValueSpace try: - from PySide import QtMaemo5 + from PySide2 import QtMaemo5 USE_MAEMO_5 = True except: USE_MAEMO_5 = False diff --git a/mobility/publish-subscribe/publisherdialog.py b/mobility/publish-subscribe/publisherdialog.py index 4ff7485..0cbe280 100644 --- a/mobility/publish-subscribe/publisherdialog.py +++ b/mobility/publish-subscribe/publisherdialog.py @@ -46,7 +46,7 @@ from PySide.QtGui import QDialog, QDialogButtonBox from QtMobility.PublishSubscribe import QValueSpace, QValueSpacePublisher try: - from PySide import QtMaemo5 + from PySide2 import QtMaemo5 USE_MAEMO_5 = True from publisherdialog_hor_ui import Ui_PublisherDialog except: diff --git a/mobility/publish-subscribe/publisherdialog_hor_ui.py b/mobility/publish-subscribe/publisherdialog_hor_ui.py index 1022d45..471d61e 100644 --- a/mobility/publish-subscribe/publisherdialog_hor_ui.py +++ b/mobility/publish-subscribe/publisherdialog_hor_ui.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_PublisherDialog(object): def setupUi(self, PublisherDialog): diff --git a/mobility/publish-subscribe/publisherdialog_ui.py b/mobility/publish-subscribe/publisherdialog_ui.py index fb70ff4..e493e77 100644 --- a/mobility/publish-subscribe/publisherdialog_ui.py +++ b/mobility/publish-subscribe/publisherdialog_ui.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_PublisherDialog(object): def setupUi(self, PublisherDialog): diff --git a/mobility/publish-subscribe/subscriberdialog.py b/mobility/publish-subscribe/subscriberdialog.py index a09682e..bf731b8 100644 --- a/mobility/publish-subscribe/subscriberdialog.py +++ b/mobility/publish-subscribe/subscriberdialog.py @@ -48,7 +48,7 @@ from PySide.QtGui import QDesktopWidget, QDialog, QDialogButtonBox from QtMobility.PublishSubscribe import QValueSpaceSubscriber try: - from PySide import QtMaemo5 + from PySide2 import QtMaemo5 USE_MAEMO_5 = True from subscriberdialog_hor_ui import Ui_SubscriberDialog except: diff --git a/mobility/publish-subscribe/subscriberdialog_hor_ui.py b/mobility/publish-subscribe/subscriberdialog_hor_ui.py index f038499..ffed444 100644 --- a/mobility/publish-subscribe/subscriberdialog_hor_ui.py +++ b/mobility/publish-subscribe/subscriberdialog_hor_ui.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_SubscriberDialog(object): def setupUi(self, SubscriberDialog): diff --git a/mobility/publish-subscribe/subscriberdialog_ui.py b/mobility/publish-subscribe/subscriberdialog_ui.py index 6380485..c665a7f 100644 --- a/mobility/publish-subscribe/subscriberdialog_ui.py +++ b/mobility/publish-subscribe/subscriberdialog_ui.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_SubscriberDialog(object): def setupUi(self, SubscriberDialog): diff --git a/mobility/sysinfo/dialog_rc.py b/mobility/sysinfo/dialog_rc.py index 693703e..ee6ad98 100644 --- a/mobility/sysinfo/dialog_rc.py +++ b/mobility/sysinfo/dialog_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore, QtGui +from PySide2 import QtCore, QtGui class Ui_Dialog(object): def setupUi(self, Dialog): diff --git a/mobility/sysinfo/examples_rc.py b/mobility/sysinfo/examples_rc.py index 8692c22..648e2f9 100644 --- a/mobility/sysinfo/examples_rc.py +++ b/mobility/sysinfo/examples_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PySide import QtCore +from PySide2 import QtCore qt_resource_data = "\ \x00\x00\x07\xdd\ diff --git a/mobility/sysinfo/qml/main.py b/mobility/sysinfo/qml/main.py index a4e0d89..9cbfd84 100644 --- a/mobility/sysinfo/qml/main.py +++ b/mobility/sysinfo/qml/main.py @@ -3,10 +3,10 @@ import sys import os -from PySide import QtCore -from PySide import QtGui -from PySide import QtDeclarative -from PySide import QtOpenGL +from PySide2 import QtCore +from PySide2 import QtGui +from PySide2 import QtDeclarative +from PySide2 import QtOpenGL from QtMobility.SystemInfo import QSystemInfo, QSystemDeviceInfo, QSystemDisplayInfo, QSystemStorageInfo, QSystemNetworkInfo, QSystemScreenSaver |