diff options
Diffstat (limited to 'examples')
154 files changed, 1354 insertions, 147 deletions
diff --git a/examples/3d/simple3d.py b/examples/3d/simple3d.py index a34d19821..3cfa39a05 100644 --- a/examples/3d/simple3d.py +++ b/examples/3d/simple3d.py @@ -5,7 +5,7 @@ ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/axcontainer/axviewer.py b/examples/axcontainer/axviewer.py index cb3d4c0de..79593896d 100644 --- a/examples/axcontainer/axviewer.py +++ b/examples/axcontainer/axviewer.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/charts/audio.py b/examples/charts/audio.py index 94da12cfd..95b78d637 100644 --- a/examples/charts/audio.py +++ b/examples/charts/audio.py @@ -5,7 +5,7 @@ ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/charts/callout.py b/examples/charts/callout.py index 0bc7cdaf5..2b2a4cbb9 100644 --- a/examples/charts/callout.py +++ b/examples/charts/callout.py @@ -5,7 +5,7 @@ ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/charts/lineandbar.py b/examples/charts/lineandbar.py index a9ae8b4d6..958736cad 100644 --- a/examples/charts/lineandbar.py +++ b/examples/charts/lineandbar.py @@ -5,7 +5,7 @@ ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/charts/memoryusage.py b/examples/charts/memoryusage.py index c0e0a38dd..ac4d3c4e3 100644 --- a/examples/charts/memoryusage.py +++ b/examples/charts/memoryusage.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/corelib/threads/mandelbrot.py b/examples/corelib/threads/mandelbrot.py index 53da3d48d..1ba453437 100755 --- a/examples/corelib/threads/mandelbrot.py +++ b/examples/corelib/threads/mandelbrot.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/corelib/tools/codecs/codecs.py b/examples/corelib/tools/codecs/codecs.py index 15f7d9563..abe70bae8 100755 --- a/examples/corelib/tools/codecs/codecs.py +++ b/examples/corelib/tools/codecs/codecs.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/corelib/tools/regexp.py b/examples/corelib/tools/regexp.py index 7e28a5365..b6410394c 100755 --- a/examples/corelib/tools/regexp.py +++ b/examples/corelib/tools/regexp.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/corelib/tools/settingseditor/settingseditor.py b/examples/corelib/tools/settingseditor/settingseditor.py index 905049746..1587fe963 100755 --- a/examples/corelib/tools/settingseditor/settingseditor.py +++ b/examples/corelib/tools/settingseditor/settingseditor.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/datavisualization/bars3d.py b/examples/datavisualization/bars3d.py index c07314cb0..e8b568f22 100644 --- a/examples/datavisualization/bars3d.py +++ b/examples/datavisualization/bars3d.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter1-basics/app.qml b/examples/declarative/extending/chapter1-basics/app.qml index 60ecd7bff..190d0246f 100644 --- a/examples/declarative/extending/chapter1-basics/app.qml +++ b/examples/declarative/extending/chapter1-basics/app.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter1-basics/basics.py b/examples/declarative/extending/chapter1-basics/basics.py index f965cade9..fa0f52983 100644 --- a/examples/declarative/extending/chapter1-basics/basics.py +++ b/examples/declarative/extending/chapter1-basics/basics.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter2-methods/app.qml b/examples/declarative/extending/chapter2-methods/app.qml index 863b597d0..3a44798c7 100644 --- a/examples/declarative/extending/chapter2-methods/app.qml +++ b/examples/declarative/extending/chapter2-methods/app.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter2-methods/methods.py b/examples/declarative/extending/chapter2-methods/methods.py index d6e74f5f0..538a92376 100644 --- a/examples/declarative/extending/chapter2-methods/methods.py +++ b/examples/declarative/extending/chapter2-methods/methods.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter3-bindings/app.qml b/examples/declarative/extending/chapter3-bindings/app.qml index 01b9216e8..277b897e4 100644 --- a/examples/declarative/extending/chapter3-bindings/app.qml +++ b/examples/declarative/extending/chapter3-bindings/app.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter3-bindings/bindings.py b/examples/declarative/extending/chapter3-bindings/bindings.py index 90af6d7e1..52abf250a 100644 --- a/examples/declarative/extending/chapter3-bindings/bindings.py +++ b/examples/declarative/extending/chapter3-bindings/bindings.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/app.qml b/examples/declarative/extending/chapter4-customPropertyTypes/app.qml index 00e077276..29ad37d25 100644 --- a/examples/declarative/extending/chapter4-customPropertyTypes/app.qml +++ b/examples/declarative/extending/chapter4-customPropertyTypes/app.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py index 473b7c15f..024efbf16 100644 --- a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py +++ b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter5-listproperties/app.qml b/examples/declarative/extending/chapter5-listproperties/app.qml index 230c29520..9ff6e3b6a 100644 --- a/examples/declarative/extending/chapter5-listproperties/app.qml +++ b/examples/declarative/extending/chapter5-listproperties/app.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/extending/chapter5-listproperties/listproperties.py b/examples/declarative/extending/chapter5-listproperties/listproperties.py index b494eac0d..c06e11ca0 100644 --- a/examples/declarative/extending/chapter5-listproperties/listproperties.py +++ b/examples/declarative/extending/chapter5-listproperties/listproperties.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/scrolling.py b/examples/declarative/scrolling.py index 7b079c8f1..3c46ec860 100755 --- a/examples/declarative/scrolling.py +++ b/examples/declarative/scrolling.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/pytoqml1/main.py b/examples/declarative/signals/pytoqml1/main.py index e90a3cfab..f71969a63 100644 --- a/examples/declarative/signals/pytoqml1/main.py +++ b/examples/declarative/signals/pytoqml1/main.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/pytoqml1/view.qml b/examples/declarative/signals/pytoqml1/view.qml index 21ba8aa65..a35b4866a 100644 --- a/examples/declarative/signals/pytoqml1/view.qml +++ b/examples/declarative/signals/pytoqml1/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy1/main.py b/examples/declarative/signals/qmltopy1/main.py index ba5684951..3d23a6464 100755 --- a/examples/declarative/signals/qmltopy1/main.py +++ b/examples/declarative/signals/qmltopy1/main.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy1/view.qml b/examples/declarative/signals/qmltopy1/view.qml index 0115d432b..32a66eff4 100644 --- a/examples/declarative/signals/qmltopy1/view.qml +++ b/examples/declarative/signals/qmltopy1/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy2/main.py b/examples/declarative/signals/qmltopy2/main.py index be8692c08..0ce7933ed 100755 --- a/examples/declarative/signals/qmltopy2/main.py +++ b/examples/declarative/signals/qmltopy2/main.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy2/view.qml b/examples/declarative/signals/qmltopy2/view.qml index 2a905a69f..6fe6087f2 100644 --- a/examples/declarative/signals/qmltopy2/view.qml +++ b/examples/declarative/signals/qmltopy2/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy3/main.py b/examples/declarative/signals/qmltopy3/main.py index 81c19ee81..3c231c292 100644 --- a/examples/declarative/signals/qmltopy3/main.py +++ b/examples/declarative/signals/qmltopy3/main.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy3/view.qml b/examples/declarative/signals/qmltopy3/view.qml index 72984a137..9657cd4a8 100644 --- a/examples/declarative/signals/qmltopy3/view.qml +++ b/examples/declarative/signals/qmltopy3/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy4/main.py b/examples/declarative/signals/qmltopy4/main.py index 5f180b349..0a54e6e34 100644 --- a/examples/declarative/signals/qmltopy4/main.py +++ b/examples/declarative/signals/qmltopy4/main.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/signals/qmltopy4/view.qml b/examples/declarative/signals/qmltopy4/view.qml index 212df77e2..0d1349fad 100644 --- a/examples/declarative/signals/qmltopy4/view.qml +++ b/examples/declarative/signals/qmltopy4/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/usingmodel.py b/examples/declarative/usingmodel.py index bd2e44693..494647c10 100644 --- a/examples/declarative/usingmodel.py +++ b/examples/declarative/usingmodel.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/declarative/view.qml b/examples/declarative/view.qml index caf2dc1cc..8eb4f7f97 100644 --- a/examples/declarative/view.qml +++ b/examples/declarative/view.qml @@ -3,7 +3,7 @@ ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: diff --git a/examples/macextras/macpasteboardmime.py b/examples/macextras/macpasteboardmime.py index 0daa21a94..412714273 100755 --- a/examples/macextras/macpasteboardmime.py +++ b/examples/macextras/macpasteboardmime.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/multimedia/audiooutput.py b/examples/multimedia/audiooutput.py index 270683110..d8a3860a6 100755 --- a/examples/multimedia/audiooutput.py +++ b/examples/multimedia/audiooutput.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/multimedia/camera.py b/examples/multimedia/camera.py index 1b8d5ad47..f2469eb1b 100644 --- a/examples/multimedia/camera.py +++ b/examples/multimedia/camera.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/multimedia/player.py b/examples/multimedia/player.py index 76445cd30..71604f41f 100644 --- a/examples/multimedia/player.py +++ b/examples/multimedia/player.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/network/blockingfortuneclient.py b/examples/network/blockingfortuneclient.py index 8e73af0f0..650bde9ed 100644 --- a/examples/network/blockingfortuneclient.py +++ b/examples/network/blockingfortuneclient.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/network/fortuneclient.py b/examples/network/fortuneclient.py index 3ec5623b8..00ae0f766 100755 --- a/examples/network/fortuneclient.py +++ b/examples/network/fortuneclient.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/network/fortuneserver.py b/examples/network/fortuneserver.py index 1c08f6e82..852aabafe 100755 --- a/examples/network/fortuneserver.py +++ b/examples/network/fortuneserver.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/network/threadedfortuneserver.py b/examples/network/threadedfortuneserver.py index 95452e7e9..63f0c553b 100755 --- a/examples/network/threadedfortuneserver.py +++ b/examples/network/threadedfortuneserver.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/2dpainting.py b/examples/opengl/2dpainting.py index 6073024c5..9965c02c8 100755 --- a/examples/opengl/2dpainting.py +++ b/examples/opengl/2dpainting.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/contextinfo.py b/examples/opengl/contextinfo.py index b2df1ded2..ef1005604 100644 --- a/examples/opengl/contextinfo.py +++ b/examples/opengl/contextinfo.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/grabber.py b/examples/opengl/grabber.py index f9eb9dc05..2c2836a26 100644 --- a/examples/opengl/grabber.py +++ b/examples/opengl/grabber.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/hellogl.py b/examples/opengl/hellogl.py index 18857faca..1f045739b 100755 --- a/examples/opengl/hellogl.py +++ b/examples/opengl/hellogl.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/hellogl2.py b/examples/opengl/hellogl2.py index 29a68269e..e1af6f2a6 100755 --- a/examples/opengl/hellogl2.py +++ b/examples/opengl/hellogl2.py @@ -6,7 +6,7 @@ ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/overpainting.py b/examples/opengl/overpainting.py index 9285eaa9b..0310913f8 100755 --- a/examples/opengl/overpainting.py +++ b/examples/opengl/overpainting.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/samplebuffers.py b/examples/opengl/samplebuffers.py index eabcdd313..5e4c4391e 100755 --- a/examples/opengl/samplebuffers.py +++ b/examples/opengl/samplebuffers.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py index 3c91a6024..fecbdd02a 100755 --- a/examples/opengl/textures/textures.py +++ b/examples/opengl/textures/textures.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/opengl/textures/textures_rc.py b/examples/opengl/textures/textures_rc.py index 2e9faeea7..6b4aa0330 100644 --- a/examples/opengl/textures/textures_rc.py +++ b/examples/opengl/textures/textures_rc.py @@ -4,7 +4,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/script/helloscript.py b/examples/script/helloscript.py index 5ae659f8a..da4fa7d17 100755 --- a/examples/script/helloscript.py +++ b/examples/script/helloscript.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/scriptableapplication/main.cpp b/examples/scriptableapplication/main.cpp index 167eeb0fa..d7cb4b6db 100644 --- a/examples/scriptableapplication/main.cpp +++ b/examples/scriptableapplication/main.cpp @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/mainwindow.cpp b/examples/scriptableapplication/mainwindow.cpp index e754bcb93..92415a78d 100644 --- a/examples/scriptableapplication/mainwindow.cpp +++ b/examples/scriptableapplication/mainwindow.cpp @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/mainwindow.h b/examples/scriptableapplication/mainwindow.h index 4dcafc731..ce613833c 100644 --- a/examples/scriptableapplication/mainwindow.h +++ b/examples/scriptableapplication/mainwindow.h @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/pyside2_config.py b/examples/scriptableapplication/pyside2_config.py index 0eba6cc23..a26d2b490 100644 --- a/examples/scriptableapplication/pyside2_config.py +++ b/examples/scriptableapplication/pyside2_config.py @@ -3,7 +3,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/scriptableapplication/pythonutils.cpp b/examples/scriptableapplication/pythonutils.cpp index 27f1bc71c..2f7d2c2ad 100644 --- a/examples/scriptableapplication/pythonutils.cpp +++ b/examples/scriptableapplication/pythonutils.cpp @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/pythonutils.h b/examples/scriptableapplication/pythonutils.h index 53e8c4dab..21aef194e 100644 --- a/examples/scriptableapplication/pythonutils.h +++ b/examples/scriptableapplication/pythonutils.h @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/scriptableapplication.xml b/examples/scriptableapplication/scriptableapplication.xml index 18e8277ff..7ef2e9f9e 100644 --- a/examples/scriptableapplication/scriptableapplication.xml +++ b/examples/scriptableapplication/scriptableapplication.xml @@ -5,7 +5,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/scriptableapplication/wrappedclasses.h b/examples/scriptableapplication/wrappedclasses.h index c905e2356..d7661429e 100644 --- a/examples/scriptableapplication/wrappedclasses.h +++ b/examples/scriptableapplication/wrappedclasses.h @@ -3,7 +3,7 @@ ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the PySide examples of the Qt Toolkit. +** This file is part of the Qt for Python examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage diff --git a/examples/texttospeech/texttospeech.py b/examples/texttospeech/texttospeech.py index 12edf5d1f..11e5209ca 100644 --- a/examples/texttospeech/texttospeech.py +++ b/examples/texttospeech/texttospeech.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t1.py b/examples/tutorial/t1.py index b3251dbfd..2e4d15859 100644 --- a/examples/tutorial/t1.py +++ b/examples/tutorial/t1.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t10.py b/examples/tutorial/t10.py index 081190c9f..f49faa1b4 100644 --- a/examples/tutorial/t10.py +++ b/examples/tutorial/t10.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t11.py b/examples/tutorial/t11.py index 070782b3f..46e24e0d5 100644 --- a/examples/tutorial/t11.py +++ b/examples/tutorial/t11.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t12.py b/examples/tutorial/t12.py index 6afd88092..a3e1a6cf3 100644 --- a/examples/tutorial/t12.py +++ b/examples/tutorial/t12.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t13.py b/examples/tutorial/t13.py index 34f2fe592..a26db0734 100644 --- a/examples/tutorial/t13.py +++ b/examples/tutorial/t13.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py index 609af40c8..caf6d183f 100644 --- a/examples/tutorial/t14.py +++ b/examples/tutorial/t14.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t2.py b/examples/tutorial/t2.py index 91ca2f349..992554dcb 100644 --- a/examples/tutorial/t2.py +++ b/examples/tutorial/t2.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t3.py b/examples/tutorial/t3.py index 9dc50a1b6..be69b6a0d 100644 --- a/examples/tutorial/t3.py +++ b/examples/tutorial/t3.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t4.py b/examples/tutorial/t4.py index 77f593d2d..88f92443b 100644 --- a/examples/tutorial/t4.py +++ b/examples/tutorial/t4.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t5.py b/examples/tutorial/t5.py index 0fdd2ac20..f9f657fac 100644 --- a/examples/tutorial/t5.py +++ b/examples/tutorial/t5.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t6.py b/examples/tutorial/t6.py index d720433f1..b6ef30428 100644 --- a/examples/tutorial/t6.py +++ b/examples/tutorial/t6.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t7.py b/examples/tutorial/t7.py index a9c53f68d..b82840c9a 100644 --- a/examples/tutorial/t7.py +++ b/examples/tutorial/t7.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t8.py b/examples/tutorial/t8.py index d023de154..0c682df19 100644 --- a/examples/tutorial/t8.py +++ b/examples/tutorial/t8.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/tutorial/t9.py b/examples/tutorial/t9.py index 37c0e651a..dc2106d9e 100644 --- a/examples/tutorial/t9.py +++ b/examples/tutorial/t9.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/utils/utils.py b/examples/utils/utils.py index ddba61b8a..522f5356a 100644 --- a/examples/utils/utils.py +++ b/examples/utils/utils.py @@ -5,7 +5,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/webenginewidgets/simplebrowser.py b/examples/webenginewidgets/simplebrowser.py index b895acb35..c7f67667d 100644 --- a/examples/webenginewidgets/simplebrowser.py +++ b/examples/webenginewidgets/simplebrowser.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/webenginewidgets/tabbedbrowser/bookmarkwidget.py b/examples/webenginewidgets/tabbedbrowser/bookmarkwidget.py new file mode 100644 index 000000000..0224c4518 --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/bookmarkwidget.py @@ -0,0 +1,267 @@ +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +import json, os, warnings + +from PySide2 import QtCore +from PySide2.QtCore import (QDir, QFileInfo, QModelIndex, QStandardPaths, Qt, + QUrl) +from PySide2.QtGui import QIcon, QPixmap, QStandardItem, QStandardItemModel +from PySide2.QtWidgets import (QAction, QDockWidget, QMenu, QMessageBox, + QToolBar, QTreeView, QWidget) + +_urlRole = Qt.UserRole + 1 + +# Default bookmarks as an array of arrays which is the form +# used to read from/write to a .json bookmarks file +_defaultBookMarks = [ + ['Tool Bar'], + ['http://qt.io', 'Qt', ':/qt-project.org/qmessagebox/images/qtlogo-64.png'], + ['https://download.qt.io/snapshots/ci/pyside/', 'Downloads'], + ['https://doc-snapshots.qt.io/qtforpython/', 'Documentation'], + ['https://bugreports.qt.io/projects/PYSIDE/', 'Bug Reports'], + ['https://www.python.org/', 'Python', None], + ['https://wiki.qt.io/PySide2', 'Qt for Python', None], + ['Other Bookmarks'] +] + +def _configDir(): + return '{}/QtForPythonBrowser'.format( + QStandardPaths.writableLocation(QStandardPaths.ConfigLocation)) + +_bookmarkFile = 'bookmarks.json' + +def _createFolderItem(title): + result = QStandardItem(title) + result.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable) + return result + +def _createItem(url, title, icon): + result = QStandardItem(title) + result.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable) + result.setData(url, _urlRole) + if icon is not None: + result.setIcon(icon) + return result + +# Create the model from an array of arrays +def _createModel(parent, serializedBookmarks): + result = QStandardItemModel(0, 1, parent) + lastFolderItem = None + for entry in serializedBookmarks: + if len(entry) == 1: + lastFolderItem = _createFolderItem(entry[0]) + result.appendRow(lastFolderItem) + else: + url = QUrl.fromUserInput(entry[0]) + title = entry[1] + icon = QIcon(entry[2]) if len(entry) > 2 and entry[2] else None + lastFolderItem.appendRow(_createItem(url, title, icon)) + return result + +# Serialize model into an array of arrays, writing out the icons +# into .png files under directory in the process +def _serializeModel(model, directory): + result = [] + folderCount = model.rowCount() + for f in range(0, folderCount): + folderItem = model.item(f) + result.append([folderItem.text()]) + itemCount = folderItem.rowCount() + for i in range(0, itemCount): + item = folderItem.child(i) + entry = [item.data(_urlRole).toString(), item.text()] + icon = item.icon() + if not icon.isNull(): + iconSizes = icon.availableSizes() + largestSize = iconSizes[len(iconSizes) - 1] + iconFileName = '{}/icon{:02}_{:02}_{}.png'.format(directory, + f, i, largestSize.width()) + icon.pixmap(largestSize).save(iconFileName, 'PNG') + entry.append(iconFileName) + result.append(entry) + return result + +# Bookmarks as a tree view to be used in a dock widget with +# functionality to persist and populate tool bars and menus. +class BookmarkWidget(QTreeView): + + openBookmark = QtCore.Signal(QUrl) + openBookmarkInNewTab = QtCore.Signal(QUrl) + changed = QtCore.Signal() + + def __init__(self): + super(BookmarkWidget, self).__init__() + self.setRootIsDecorated(False) + self.setUniformRowHeights(True) + self.setHeaderHidden(True) + self._model = _createModel(self, self._readBookmarks()) + self.setModel(self._model) + self.expandAll() + self.activated.connect(self._activated) + self._model.rowsInserted.connect(self._changed) + self._model.rowsRemoved.connect(self._changed) + self._model.dataChanged.connect(self._changed) + self._modified = False + + def _changed(self): + self._modified = True + self.changed.emit() + + def _activated(self, index): + item = self._model.itemFromIndex(index) + self.openBookmark.emit(item.data(_urlRole)) + + def _actionActivated(self, index): + action = self.sender() + self.openBookmark.emit(action.data()) + + def _toolBarItem(self): + return self._model.item(0, 0) + + def _otherItem(self): + return self._model.item(1, 0) + + def addBookmark(self, url, title, icon): + self._otherItem().appendRow(_createItem(url, title, icon)) + + def addToolBarBookmark(self, url, title, icon): + self._toolBarItem().appendRow(_createItem(url, title, icon)) + + # Synchronize the bookmarks under parentItem to a targetObject + # like QMenu/QToolBar, which has a list of actions. Update + # the existing actions, append new ones if needed or hide + # superfluous ones + def _populateActions(self, parentItem, targetObject, firstAction): + existingActions = targetObject.actions() + existingActionCount = len(existingActions) + a = firstAction + rowCount = parentItem.rowCount() + for r in range(0, rowCount): + item = parentItem.child(r) + title = item.text() + icon = item.icon() + url = item.data(_urlRole) + if a < existingActionCount: + action = existingActions[a] + if (title != action.toolTip()): + action.setText(BookmarkWidget.shortTitle(title)) + action.setIcon(icon) + action.setToolTip(title) + action.setData(url) + action.setVisible(True) + else: + action = targetObject.addAction(icon, BookmarkWidget.shortTitle(title)) + action.setToolTip(title) + action.setData(url) + action.triggered.connect(self._actionActivated) + a = a + 1 + while a < existingActionCount: + existingActions[a].setVisible(False) + a = a + 1 + + def populateToolBar(self, toolBar): + self._populateActions(self._toolBarItem(), toolBar, 0) + + def populateOther(self, menu, firstAction): + self._populateActions(self._otherItem(), menu, firstAction) + + def _currentItem(self): + index = self.currentIndex() + if index.isValid(): + item = self._model.itemFromIndex(index) + if item.parent(): # Exclude top level items + return item + return None + + def contextMenuEvent(self, event): + contextMenu = QMenu() + openInNewTabAction = contextMenu.addAction("Open in New Tab") + removeAction = contextMenu.addAction("Remove...") + currentItem = self._currentItem() + openInNewTabAction.setEnabled(currentItem is not None) + removeAction.setEnabled(currentItem is not None) + chosenAction = contextMenu.exec_(event.globalPos()) + if chosenAction == openInNewTabAction: + self.openBookmarkInNewTab.emit(currentItem.data(_urlRole)) + elif chosenAction == removeAction: + self._removeItem(currentItem) + + def _removeItem(self, item): + button = QMessageBox.question(self, "Remove", + "Would you like to remove \"{}\"?".format(item.text()), + QMessageBox.Yes | QMessageBox.No) + if button == QMessageBox.Yes: + item.parent().removeRow(item.row()) + + def writeBookmarks(self): + if not self._modified: + return + dirPath = _configDir() + nativeDirPath = QDir.toNativeSeparators(dirPath) + dir = QFileInfo(dirPath) + if not dir.isDir(): + print('Creating {}...'.format(nativeDirPath)) + if not QDir(dir.absolutePath()).mkpath(dir.fileName()): + warnings.warn('Cannot create {}.'.format(nativeDirPath), + RuntimeWarning) + return + serializedModel = _serializeModel(self._model, dirPath) + bookmarkFileName = os.path.join(nativeDirPath, _bookmarkFile) + print('Writing {}...'.format(bookmarkFileName)) + with open(bookmarkFileName, 'w') as bookmarkFile: + json.dump(serializedModel, bookmarkFile, indent = 4) + + def _readBookmarks(self): + bookmarkFileName = os.path.join(QDir.toNativeSeparators(_configDir()), + _bookmarkFile) + if os.path.exists(bookmarkFileName): + print('Reading {}...'.format(bookmarkFileName)) + return json.load(open(bookmarkFileName)) + return _defaultBookMarks + + # Return a short title for a bookmark action, + # "Qt | Cross Platform.." -> "Qt" + @staticmethod + def shortTitle(t): + i = t.find(' | ') + if i == -1: + i = t.find(' - ') + return t[0:i] if i != -1 else t diff --git a/examples/webenginewidgets/tabbedbrowser/browsertabwidget.py b/examples/webenginewidgets/tabbedbrowser/browsertabwidget.py new file mode 100644 index 000000000..29e3d6a22 --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/browsertabwidget.py @@ -0,0 +1,220 @@ +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +from functools import partial +import sys + +from bookmarkwidget import BookmarkWidget +from webengineview import WebEngineView +from PySide2 import QtCore +from PySide2.QtCore import QPoint, Qt, QUrl +from PySide2.QtWidgets import (QAction, QMenu, QTabBar, QTabWidget) +from PySide2.QtWebEngineWidgets import (QWebEngineDownloadItem, + QWebEnginePage, QWebEngineProfile) + +class BrowserTabWidget(QTabWidget): + + urlChanged = QtCore.Signal(QUrl) + enabledChanged = QtCore.Signal(QWebEnginePage.WebAction, bool) + downloadRequested = QtCore.Signal(QWebEngineDownloadItem) + + def __init__(self, windowFactoryFunction): + super(BrowserTabWidget, self).__init__() + self.setTabsClosable(True) + self._windowFactoryFunction = windowFactoryFunction + self._webengineviews = [] + self.currentChanged.connect(self._currentChanged) + self.tabCloseRequested.connect(self.handleTabCloseRequest) + self._actionsEnabled = {} + for webAction in WebEngineView.webActions(): + self._actionsEnabled[webAction] = False + + tabBar = self.tabBar() + tabBar.setSelectionBehaviorOnRemove(QTabBar.SelectPreviousTab) + tabBar.setContextMenuPolicy(Qt.CustomContextMenu) + tabBar.customContextMenuRequested.connect(self._handleTabContextMenu) + + def addBrowserTab(self): + factoryFunc = partial(BrowserTabWidget.addBrowserTab, self) + webEngineView = WebEngineView(factoryFunc, self._windowFactoryFunction) + index = self.count() + self._webengineviews.append(webEngineView) + title = 'Tab {}'.format(index + 1) + self.addTab(webEngineView, title) + page = webEngineView.page() + page.titleChanged.connect(self._titleChanged) + page.iconChanged.connect(self._iconChanged) + page.profile().downloadRequested.connect(self._downloadRequested) + webEngineView.urlChanged.connect(self._urlChanged) + webEngineView.enabledChanged.connect(self._enabledChanged) + self.setCurrentIndex(index) + return webEngineView + + def load(self, url): + index = self.currentIndex() + if index >= 0 and url.isValid(): + self._webengineviews[index].setUrl(url) + + def find(self, needle, flags): + index = self.currentIndex() + if index >= 0: + self._webengineviews[index].page().findText(needle, flags) + + def url(self): + index = self.currentIndex() + return self._webengineviews[index].url() if index >= 0 else QUrl() + + def _urlChanged(self, url): + index = self.currentIndex() + if index >= 0 and self._webengineviews[index] == self.sender(): + self.urlChanged.emit(url) + + def _titleChanged(self, title): + index = self._indexOfPage(self.sender()) + if (index >= 0): + self.setTabText(index, BookmarkWidget.shortTitle(title)) + + def _iconChanged(self, icon): + index = self._indexOfPage(self.sender()) + if (index >= 0): + self.setTabIcon(index, icon) + + def _enabledChanged(self, webAction, enabled): + index = self.currentIndex() + if index >= 0 and self._webengineviews[index] == self.sender(): + self._checkEmitEnabledChanged(webAction, enabled) + + def _checkEmitEnabledChanged(self, webAction, enabled): + if enabled != self._actionsEnabled[webAction]: + self._actionsEnabled[webAction] = enabled + self.enabledChanged.emit(webAction, enabled) + + def _currentChanged(self, index): + self._updateActions(index) + self.urlChanged.emit(self.url()) + + def _updateActions(self, index): + if index >= 0 and index < len(self._webengineviews): + view = self._webengineviews[index] + for webAction in WebEngineView.webActions(): + enabled = view.isWebActionEnabled(webAction) + self._checkEmitEnabledChanged(webAction, enabled) + + def back(self): + self._triggerAction(QWebEnginePage.Back) + + def forward(self): + self._triggerAction(QWebEnginePage.Forward) + + def reload(self): + self._triggerAction(QWebEnginePage.Reload) + + def undo(self): + self._triggerAction(QWebEnginePage.Undo) + + def redo(self): + self._triggerAction(QWebEnginePage.Redo) + + def cut(self): + self._triggerAction(QWebEnginePage.Cut) + + def copy(self): + self._triggerAction(QWebEnginePage.Copy) + + def paste(self): + self._triggerAction(QWebEnginePage.Paste) + + def selectAll(self): + self._triggerAction(QWebEnginePage.SelectAll) + + def zoomFactor(self): + return self._webengineviews[0].zoomFactor() if self._webengineviews else 1.0 + + def setZoomFactor(self, z): + for w in self._webengineviews: + w.setZoomFactor(z) + + def _handleTabContextMenu(self, point): + index = self.tabBar().tabAt(point) + if index < 0: + return + tabCount = len(self._webengineviews) + contextMenu = QMenu() + duplicateTabAction = contextMenu.addAction("Duplicate Tab") + closeOtherTabsAction = contextMenu.addAction("Close Other Tabs") + closeOtherTabsAction.setEnabled(tabCount > 1) + closeTabsToTheRightAction = contextMenu.addAction("Close Tabs to the Right") + closeTabsToTheRightAction.setEnabled(index < tabCount - 1) + closeTabAction = contextMenu.addAction("&Close Tab") + chosenAction = contextMenu.exec_(self.tabBar().mapToGlobal(point)) + if chosenAction == duplicateTabAction: + currentUrl = self.url() + self.addBrowserTab().load(currentUrl) + elif chosenAction == closeOtherTabsAction: + for t in range(tabCount - 1, -1, -1): + if t != index: + self.handleTabCloseRequest(t) + elif chosenAction == closeTabsToTheRightAction: + for t in range(tabCount - 1, index, -1): + self.handleTabCloseRequest(t) + elif chosenAction == closeTabAction: + self.handleTabCloseRequest(index) + + def handleTabCloseRequest(self, index): + if (index >= 0 and self.count() > 1): + self._webengineviews.remove(self._webengineviews[index]) + self.removeTab(index) + + def closeCurrentTab(self): + self.handleTabCloseRequest(self.currentIndex()) + + def _triggerAction(self, action): + index = self.currentIndex() + if index >= 0: + self._webengineviews[index].page().triggerAction(action) + + def _indexOfPage(self, webPage): + for p in range(0, len(self._webengineviews)): + if (self._webengineviews[p].page() == webPage): + return p + return -1 + + def _downloadRequested(self, item): + self.downloadRequested.emit(item) diff --git a/examples/webenginewidgets/tabbedbrowser/downloadwidget.py b/examples/webenginewidgets/tabbedbrowser/downloadwidget.py new file mode 100644 index 000000000..bcfc7a5ed --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/downloadwidget.py @@ -0,0 +1,144 @@ +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +import sys +from PySide2 import QtCore +from PySide2.QtCore import QDir, QFileInfo, QStandardPaths, Qt, QUrl +from PySide2.QtGui import QDesktopServices +from PySide2.QtWidgets import (QAction, QLabel, QMenu, QProgressBar, + QStyleFactory, QWidget) +from PySide2.QtWebEngineWidgets import QWebEngineDownloadItem + +# A QProgressBar with context menu for displaying downloads in a QStatusBar. +class DownloadWidget(QProgressBar): + + finished = QtCore.Signal() + removeRequested = QtCore.Signal() + + def __init__(self, downloadItem): + super(DownloadWidget, self).__init__() + self._downloadItem = downloadItem + downloadItem.finished.connect(self._finished) + downloadItem.downloadProgress.connect(self._downloadProgress) + downloadItem.stateChanged.connect(self._updateToolTip()) + path = downloadItem.path() + self.setMaximumWidth(300) + # Shorten 'PySide2-5.11.0a1-5.11.0-cp36-cp36m-linux_x86_64.whl'... + description = QFileInfo(path).fileName() + descriptionLength = len(description) + if descriptionLength > 30: + description = '{}...{}'.format(description[0:10], description[descriptionLength - 10:]) + self.setFormat('{} %p%'.format(description)) + self.setOrientation(Qt.Horizontal) + self.setMinimum(0) + self.setValue(0) + self.setMaximum(100) + self._updateToolTip() + # Force progress bar text to be shown on macoS by using 'fusion' style + if sys.platform == 'darwin': + self.setStyle(QStyleFactory.create('fusion')) + + @staticmethod + def openFile(file): + QDesktopServices.openUrl(QUrl.fromLocalFile(file)) + + @staticmethod + def openDownloadDirectory(): + path = QStandardPaths.writableLocation(QStandardPaths.DownloadLocation) + DownloadWidget.openFile(path) + + def state(self): + return self._downloadItem.state() + + def _updateToolTip(self): + path = self._downloadItem.path() + toolTip = "{}\n{}".format(self._downloadItem.url().toString(), + QDir.toNativeSeparators(path)) + totalBytes = self._downloadItem.totalBytes() + if totalBytes > 0: + toolTip += "\n{}K".format(totalBytes / 1024) + state = self.state() + if state == QWebEngineDownloadItem.DownloadRequested: + toolTip += "\n(requested)" + elif state == QWebEngineDownloadItem.DownloadInProgress: + toolTip += "\n(downloading)" + elif state == QWebEngineDownloadItem.DownloadCompleted: + toolTip += "\n(completed)" + elif state == QWebEngineDownloadItem.DownloadCancelled: + toolTip += "\n(cancelled)" + else: + toolTip += "\n(interrupted)" + self.setToolTip(toolTip) + + def _downloadProgress(self, bytesReceived, bytesTotal): + self.setValue(int(100 * bytesReceived / bytesTotal)) + + def _finished(self): + self._updateToolTip() + self.finished.emit() + + def _launch(self): + DownloadWidget.openFile(self._downloadItem.path()) + + def mouseDoubleClickEvent(self, event): + if self.state() == QWebEngineDownloadItem.DownloadCompleted: + self._launch() + + def contextMenuEvent(self, event): + state = self.state() + contextMenu = QMenu() + launchAction = contextMenu.addAction("Launch") + launchAction.setEnabled(state == QWebEngineDownloadItem.DownloadCompleted) + showInFolderAction = contextMenu.addAction("Show in Folder") + showInFolderAction.setEnabled(state == QWebEngineDownloadItem.DownloadCompleted) + cancelAction = contextMenu.addAction("Cancel") + cancelAction.setEnabled(state == QWebEngineDownloadItem.DownloadInProgress) + removeAction = contextMenu.addAction("Remove") + removeAction.setEnabled(state != QWebEngineDownloadItem.DownloadInProgress) + + chosenAction = contextMenu.exec_(event.globalPos()) + if chosenAction == launchAction: + self._launch() + elif chosenAction == showInFolderAction: + DownloadWidget.openFile(QFileInfo(self._downloadItem.path()).absolutePath()) + elif chosenAction == cancelAction: + self._downloadItem.cancel() + elif chosenAction == removeAction: + self.removeRequested.emit() diff --git a/examples/webenginewidgets/tabbedbrowser/findtoolbar.py b/examples/webenginewidgets/tabbedbrowser/findtoolbar.py new file mode 100644 index 000000000..e862a5cf3 --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/findtoolbar.py @@ -0,0 +1,98 @@ +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +from PySide2 import QtCore +from PySide2.QtCore import Qt, QUrl +from PySide2.QtGui import QIcon, QKeySequence +from PySide2.QtWidgets import (QAction, QCheckBox, QDockWidget, QHBoxLayout, + QLabel, QLineEdit, QToolBar, QToolButton, QWidget) +from PySide2.QtWebEngineWidgets import QWebEnginePage + +# A Find tool bar (bottom area) +class FindToolBar(QToolBar): + + find = QtCore.Signal(str, QWebEnginePage.FindFlags) + + def __init__(self): + super(FindToolBar, self).__init__() + self._lineEdit = QLineEdit() + self._lineEdit.setClearButtonEnabled(True) + self._lineEdit.setPlaceholderText("Find...") + self._lineEdit.setMaximumWidth(300) + self._lineEdit.returnPressed.connect(self._findNext) + self.addWidget(self._lineEdit) + + self._previousButton = QToolButton() + self._previousButton.setIcon(QIcon(':/qt-project.org/styles/commonstyle/images/up-32.png')) + self._previousButton.clicked.connect(self._findPrevious) + self.addWidget(self._previousButton) + + self._nextButton = QToolButton() + self._nextButton.setIcon(QIcon(':/qt-project.org/styles/commonstyle/images/down-32.png')) + self._nextButton.clicked.connect(self._findNext) + self.addWidget(self._nextButton) + + self._caseSensitiveCheckBox = QCheckBox('Case Sensitive') + self.addWidget(self._caseSensitiveCheckBox) + + self._hideButton = QToolButton() + self._hideButton.setShortcut(QKeySequence(Qt.Key_Escape)) + self._hideButton.setIcon(QIcon(':/qt-project.org/styles/macstyle/images/closedock-16.png')) + self._hideButton.clicked.connect(self.hide) + self.addWidget(self._hideButton) + + def focusFind(self): + self._lineEdit.setFocus() + + def _emitFind(self, backward): + needle = self._lineEdit.text().strip() + if needle: + flags = QWebEnginePage.FindFlags() + if self._caseSensitiveCheckBox.isChecked(): + flags |= QWebEnginePage.FindCaseSensitively + if backward: + flags |= QWebEnginePage.FindBackward + self.find.emit(needle, flags) + + def _findNext(self): + self._emitFind(False) + + def _findPrevious(self): + self._emitFind(True) diff --git a/examples/webenginewidgets/tabbedbrowser/main.py b/examples/webenginewidgets/tabbedbrowser/main.py new file mode 100644 index 000000000..58cc90346 --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/main.py @@ -0,0 +1,382 @@ +#!/usr/bin/env python + +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +"""PySide2 WebEngineWidgets Example""" + +import sys +from bookmarkwidget import BookmarkWidget +from browsertabwidget import BrowserTabWidget +from downloadwidget import DownloadWidget +from findtoolbar import FindToolBar +from webengineview import QWebEnginePage, WebEngineView +from PySide2 import QtCore +from PySide2.QtCore import Qt, QUrl +from PySide2.QtGui import QCloseEvent, QKeySequence, QIcon +from PySide2.QtWidgets import (qApp, QAction, QApplication, QDesktopWidget, + QDockWidget, QLabel, QLineEdit, QMainWindow, QMenu, QMenuBar, QPushButton, + QStatusBar, QToolBar) +from PySide2.QtWebEngineWidgets import (QWebEngineDownloadItem, QWebEnginePage, + QWebEngineView) + +mainWindows = [] + +def createMainWindow(): + mainWin = MainWindow() + mainWindows.append(mainWin) + availableGeometry = app.desktop().availableGeometry(mainWin) + mainWin.resize(availableGeometry.width() * 2 / 3, availableGeometry.height() * 2 / 3) + mainWin.show() + return mainWin + +def createMainWindowWithBrowser(): + mainWin = createMainWindow() + return mainWin.addBrowserTab() + +class MainWindow(QMainWindow): + + def __init__(self): + super(MainWindow, self).__init__() + + self.setWindowTitle('PySide2 Tabbed Browser Example') + + self._tabWidget = BrowserTabWidget(createMainWindowWithBrowser) + self._tabWidget.enabledChanged.connect(self._enabledChanged) + self._tabWidget.downloadRequested.connect(self._downloadRequested) + self.setCentralWidget(self._tabWidget) + self.connect(self._tabWidget, QtCore.SIGNAL("urlChanged(QUrl)"), + self.urlChanged) + + self._bookmarkDock = QDockWidget() + self._bookmarkDock.setWindowTitle('Bookmarks') + self._bookmarkWidget = BookmarkWidget() + self._bookmarkWidget.openBookmark.connect(self.loadUrl) + self._bookmarkWidget.openBookmarkInNewTab.connect(self.loadUrlInNewTab) + self._bookmarkDock.setWidget(self._bookmarkWidget) + self.addDockWidget(Qt.LeftDockWidgetArea, self._bookmarkDock) + + self._findToolBar = None + + self._actions = {} + self._createMenu() + + self._toolBar = QToolBar() + self.addToolBar(self._toolBar) + for action in self._actions.values(): + if not action.icon().isNull(): + self._toolBar.addAction(action) + + self._addressLineEdit = QLineEdit() + self._addressLineEdit.setClearButtonEnabled(True) + self._addressLineEdit.returnPressed.connect(self.load) + self._toolBar.addWidget(self._addressLineEdit) + self._zoomLabel = QLabel() + self.statusBar().addPermanentWidget(self._zoomLabel) + self._updateZoomLabel() + + self._bookmarksToolBar = QToolBar() + self.addToolBar(Qt.TopToolBarArea, self._bookmarksToolBar) + self.insertToolBarBreak(self._bookmarksToolBar) + self._bookmarkWidget.changed.connect(self._updateBookmarks) + self._updateBookmarks() + + def _updateBookmarks(self): + self._bookmarkWidget.populateToolBar(self._bookmarksToolBar) + self._bookmarkWidget.populateOther(self._bookmarkMenu, 3) + + def _createMenu(self): + fileMenu = self.menuBar().addMenu("&File") + exitAction = QAction(QIcon.fromTheme("application-exit"), "E&xit", + self, shortcut = "Ctrl+Q", triggered=qApp.quit) + fileMenu.addAction(exitAction) + + navigationMenu = self.menuBar().addMenu("&Navigation") + + styleIcons = ':/qt-project.org/styles/commonstyle/images/' + backAction = QAction(QIcon.fromTheme("go-previous", + QIcon(styleIcons + 'left-32.png')), + "Back", self, + shortcut = QKeySequence(QKeySequence.Back), + triggered = self._tabWidget.back) + self._actions[QWebEnginePage.Back] = backAction + backAction.setEnabled(False) + navigationMenu.addAction(backAction) + forwardAction = QAction(QIcon.fromTheme("go-next", + QIcon(styleIcons + 'right-32.png')), + "Forward", self, + shortcut = QKeySequence(QKeySequence.Forward), + triggered = self._tabWidget.forward) + forwardAction.setEnabled(False) + self._actions[QWebEnginePage.Forward] = forwardAction + + navigationMenu.addAction(forwardAction) + reloadAction = QAction(QIcon(styleIcons + 'refresh-32.png'), + "Reload", self, + shortcut = QKeySequence(QKeySequence.Refresh), + triggered = self._tabWidget.reload) + self._actions[QWebEnginePage.Reload] = reloadAction + reloadAction.setEnabled(False) + navigationMenu.addAction(reloadAction) + + navigationMenu.addSeparator() + + newTabAction = QAction("New Tab", self, + shortcut = 'Ctrl+T', + triggered = self.addBrowserTab) + navigationMenu.addAction(newTabAction) + + closeTabAction = QAction("Close Current Tab", self, + shortcut = "Ctrl+W", + triggered = self._closeCurrentTab) + navigationMenu.addAction(closeTabAction) + + editMenu = self.menuBar().addMenu("&Edit") + + findAction = QAction("Find", self, + shortcut = QKeySequence(QKeySequence.Find), + triggered = self._showFind) + editMenu.addAction(findAction) + + editMenu.addSeparator() + undoAction = QAction("Undo", self, + shortcut = QKeySequence(QKeySequence.Undo), + triggered = self._tabWidget.undo) + self._actions[QWebEnginePage.Undo] = undoAction + undoAction.setEnabled(False) + editMenu.addAction(undoAction) + + redoAction = QAction("Redo", self, + shortcut = QKeySequence(QKeySequence.Redo), + triggered = self._tabWidget.redo) + self._actions[QWebEnginePage.Redo] = redoAction + redoAction.setEnabled(False) + editMenu.addAction(redoAction) + + editMenu.addSeparator() + + cutAction = QAction("Cut", self, + shortcut = QKeySequence(QKeySequence.Cut), + triggered = self._tabWidget.cut) + self._actions[QWebEnginePage.Cut] = cutAction + cutAction.setEnabled(False) + editMenu.addAction(cutAction) + + copyAction = QAction("Copy", self, + shortcut = QKeySequence(QKeySequence.Copy), + triggered = self._tabWidget.copy) + self._actions[QWebEnginePage.Copy] = copyAction + copyAction.setEnabled(False) + editMenu.addAction(copyAction) + + pasteAction = QAction("Paste", self, + shortcut = QKeySequence(QKeySequence.Paste), + triggered = self._tabWidget.paste) + self._actions[QWebEnginePage.Paste] = pasteAction + pasteAction.setEnabled(False) + editMenu.addAction(pasteAction) + + editMenu.addSeparator() + + selectAllAction = QAction("Select All", self, + shortcut = QKeySequence(QKeySequence.SelectAll), + triggered = self._tabWidget.selectAll) + self._actions[QWebEnginePage.SelectAll] = selectAllAction + selectAllAction.setEnabled(False) + editMenu.addAction(selectAllAction) + + self._bookmarkMenu = self.menuBar().addMenu("&Bookmarks") + addBookmarkAction = QAction("&Add Bookmark", self, + triggered = self._addBookmark) + self._bookmarkMenu.addAction(addBookmarkAction) + addToolBarBookmarkAction = QAction("&Add Bookmark to Tool Bar", self, + triggered = self._addToolBarBookmark) + self._bookmarkMenu.addAction(addToolBarBookmarkAction) + self._bookmarkMenu.addSeparator() + + toolsMenu = self.menuBar().addMenu("&Tools") + downloadAction = QAction("Open Downloads", self, + triggered = DownloadWidget.openDownloadDirectory) + toolsMenu.addAction(downloadAction) + + windowMenu = self.menuBar().addMenu("&Window") + + windowMenu.addAction(self._bookmarkDock.toggleViewAction()) + + windowMenu.addSeparator() + + zoomInAction = QAction(QIcon.fromTheme("zoom-in"), + "Zoom In", self, + shortcut = QKeySequence(QKeySequence.ZoomIn), + triggered = self._zoomIn) + windowMenu.addAction(zoomInAction) + zoomOutAction = QAction(QIcon.fromTheme("zoom-out"), + "Zoom Out", self, + shortcut = QKeySequence(QKeySequence.ZoomOut), + triggered = self._zoomOut) + windowMenu.addAction(zoomOutAction) + + resetZoomAction = QAction(QIcon.fromTheme("zoom-original"), + "Reset Zoom", self, + shortcut = "Ctrl+0", + triggered = self._resetZoom) + windowMenu.addAction(resetZoomAction) + + aboutMenu = self.menuBar().addMenu("&About") + aboutAction = QAction("About Qt", self, + shortcut = QKeySequence(QKeySequence.HelpContents), + triggered=qApp.aboutQt) + aboutMenu.addAction(aboutAction) + + def addBrowserTab(self): + return self._tabWidget.addBrowserTab() + + def _closeCurrentTab(self): + if self._tabWidget.count() > 1: + self._tabWidget.closeCurrentTab() + else: + self.close() + + def closeEvent(self, event): + mainWindows.remove(self) + event.accept() + + def load(self): + urlString = self._addressLineEdit.text().strip() + if urlString: + self.loadUrlString(urlString) + + def loadUrlString(self, urlS): + url = QUrl.fromUserInput(urlS) + if (url.isValid()): + self.loadUrl(url) + + def loadUrl(self, url): + self._tabWidget.load(url) + + def loadUrlInNewTab(self, url): + self.addBrowserTab().load(url) + + def urlChanged(self, url): + self._addressLineEdit.setText(url.toString()) + + def _enabledChanged(self, webAction, enabled): + action = self._actions[webAction] + if action: + action.setEnabled(enabled) + + def _addBookmark(self): + index = self._tabWidget.currentIndex() + if index >= 0: + url = self._tabWidget.url() + title = self._tabWidget.tabText(index) + icon = self._tabWidget.tabIcon(index) + self._bookmarkWidget.addBookmark(url, title, icon) + + def _addToolBarBookmark(self): + index = self._tabWidget.currentIndex() + if index >= 0: + url = self._tabWidget.url() + title = self._tabWidget.tabText(index) + icon = self._tabWidget.tabIcon(index) + self._bookmarkWidget.addToolBarBookmark(url, title, icon) + + def _zoomIn(self): + newZoom = self._tabWidget.zoomFactor() * 1.5 + if (newZoom <= WebEngineView.maximumZoomFactor()): + self._tabWidget.setZoomFactor(newZoom) + self._updateZoomLabel() + + def _zoomOut(self): + newZoom = self._tabWidget.zoomFactor() / 1.5 + if (newZoom >= WebEngineView.minimumZoomFactor()): + self._tabWidget.setZoomFactor(newZoom) + self._updateZoomLabel() + + def _resetZoom(self): + self._tabWidget.setZoomFactor(1) + self._updateZoomLabel() + + def _updateZoomLabel(self): + percent = int(self._tabWidget.zoomFactor() * 100) + self._zoomLabel.setText("{}%".format(percent)) + + def _downloadRequested(self, item): + # Remove old downloads before opening a new one + for oldDownload in self.statusBar().children(): + if type(oldDownload).__name__ == 'DownloadWidget' and \ + oldDownload.state() != QWebEngineDownloadItem.DownloadInProgress: + self.statusBar().removeWidget(oldDownload) + del oldDownload + + item.accept() + downloadWidget = DownloadWidget(item) + downloadWidget.removeRequested.connect(self._removeDownloadRequested, + Qt.QueuedConnection) + self.statusBar().addWidget(downloadWidget) + + def _removeDownloadRequested(self): + downloadWidget = self.sender() + self.statusBar().removeWidget(downloadWidget) + del downloadWidget + + def _showFind(self): + if self._findToolBar is None: + self._findToolBar = FindToolBar() + self._findToolBar.find.connect(self._tabWidget.find) + self.addToolBar(Qt.BottomToolBarArea, self._findToolBar) + else: + self._findToolBar.show() + self._findToolBar.focusFind() + + def writeBookmarks(self): + self._bookmarkWidget.writeBookmarks() + +if __name__ == '__main__': + app = QApplication(sys.argv) + mainWin = createMainWindow() + initialUrls = sys.argv[1:] + if not initialUrls: + initialUrls.append('http://qt.io') + for url in initialUrls: + mainWin.loadUrlInNewTab(QUrl.fromUserInput(url)) + exitCode = app.exec_() + mainWin.writeBookmarks() + sys.exit(exitCode) diff --git a/examples/webenginewidgets/tabbedbrowser/tabbedbrowser.pyqtc b/examples/webenginewidgets/tabbedbrowser/tabbedbrowser.pyqtc new file mode 100644 index 000000000..1ad61c350 --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/tabbedbrowser.pyqtc @@ -0,0 +1,6 @@ +main.py +bookmarkwidget.py +browsertabwidget.py +downloadwidget.py +findtoolbar.py +webengineview.py diff --git a/examples/webenginewidgets/tabbedbrowser/webengineview.py b/examples/webenginewidgets/tabbedbrowser/webengineview.py new file mode 100644 index 000000000..7bef74dfe --- /dev/null +++ b/examples/webenginewidgets/tabbedbrowser/webengineview.py @@ -0,0 +1,90 @@ +############################################################################# +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: http://www.qt.io/licensing/ +## +## This file is part of the Qt for Python examples of the Qt Toolkit. +## +## $QT_BEGIN_LICENSE:BSD$ +## You may use this file under the terms of the BSD license as follows: +## +## "Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions are +## met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in +## the documentation and/or other materials provided with the +## distribution. +## * Neither the name of The Qt Company Ltd nor the names of its +## contributors may be used to endorse or promote products derived +## from this software without specific prior written permission. +## +## +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +## +## $QT_END_LICENSE$ +## +############################################################################# + +import sys +from PySide2.QtWebEngineWidgets import QWebEnginePage, QWebEngineView + +from PySide2 import QtCore + +_webActions = [QWebEnginePage.Back, QWebEnginePage.Forward, + QWebEnginePage.Reload, + QWebEnginePage.Undo, QWebEnginePage.Redo, + QWebEnginePage.Cut, QWebEnginePage.Copy, + QWebEnginePage.Paste, QWebEnginePage.SelectAll] + +class WebEngineView(QWebEngineView): + + enabledChanged = QtCore.Signal(QWebEnginePage.WebAction, bool) + + @staticmethod + def webActions(): + return _webActions + + @staticmethod + def minimumZoomFactor(): + return 0.25 + + @staticmethod + def maximumZoomFactor(): + return 5 + + def __init__(self, tabFactoryFunc, windowFactoryFunc): + super(WebEngineView, self).__init__() + self._tabFactoryFunc = tabFactoryFunc + self._windowFactoryFunc = windowFactoryFunc + page = self.page() + self._actions = {} + for webAction in WebEngineView.webActions(): + action = page.action(webAction) + action.changed.connect(self._enabledChanged) + self._actions[action] = webAction + + def isWebActionEnabled(self, webAction): + return self.page().action(webAction).isEnabled() + + def createWindow(self, windowType): + if windowType == QWebEnginePage.WebBrowserTab or windowType == QWebEnginePage.WebBrowserBackgroundTab: + return self._tabFactoryFunc() + return self._windowFactoryFunc() + + def _enabledChanged(self): + action = self.sender() + webAction = self._actions[action] + self.enabledChanged.emit(webAction, action.isEnabled()) diff --git a/examples/widgets/animation/animatedtiles/animatedtiles.py b/examples/widgets/animation/animatedtiles/animatedtiles.py index d3b649d35..f50c99378 100755 --- a/examples/widgets/animation/animatedtiles/animatedtiles.py +++ b/examples/widgets/animation/animatedtiles/animatedtiles.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/animatedtiles/animatedtiles_rc.py b/examples/widgets/animation/animatedtiles/animatedtiles_rc.py index 198416413..561576381 100644 --- a/examples/widgets/animation/animatedtiles/animatedtiles_rc.py +++ b/examples/widgets/animation/animatedtiles/animatedtiles_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/appchooser/appchooser.py b/examples/widgets/animation/appchooser/appchooser.py index 7501bf4e4..67550ab4e 100755 --- a/examples/widgets/animation/appchooser/appchooser.py +++ b/examples/widgets/animation/appchooser/appchooser.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/appchooser/appchooser_rc.py b/examples/widgets/animation/appchooser/appchooser_rc.py index d661c220d..c8fa08abf 100644 --- a/examples/widgets/animation/appchooser/appchooser_rc.py +++ b/examples/widgets/animation/appchooser/appchooser_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/easing/easing.py b/examples/widgets/animation/easing/easing.py index 9989c81b5..17377e83d 100644 --- a/examples/widgets/animation/easing/easing.py +++ b/examples/widgets/animation/easing/easing.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/easing/easing_rc.py b/examples/widgets/animation/easing/easing_rc.py index aff458b1d..7ed4e6d0b 100644 --- a/examples/widgets/animation/easing/easing_rc.py +++ b/examples/widgets/animation/easing/easing_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/states/states.py b/examples/widgets/animation/states/states.py index e812e9fd6..6b31922cb 100755 --- a/examples/widgets/animation/states/states.py +++ b/examples/widgets/animation/states/states.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/animation/states/states_rc.py b/examples/widgets/animation/states/states_rc.py index 67a05f8f0..fe8a05c45 100644 --- a/examples/widgets/animation/states/states_rc.py +++ b/examples/widgets/animation/states/states_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/classwizard/classwizard.py b/examples/widgets/dialogs/classwizard/classwizard.py index ff7677f7d..c85ea5b29 100755 --- a/examples/widgets/dialogs/classwizard/classwizard.py +++ b/examples/widgets/dialogs/classwizard/classwizard.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/classwizard/classwizard_rc.py b/examples/widgets/dialogs/classwizard/classwizard_rc.py index 9c5112ea8..c7b8a5a99 100644 --- a/examples/widgets/dialogs/classwizard/classwizard_rc.py +++ b/examples/widgets/dialogs/classwizard/classwizard_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/extension.py b/examples/widgets/dialogs/extension.py index 866e04b30..6e08d4d87 100755 --- a/examples/widgets/dialogs/extension.py +++ b/examples/widgets/dialogs/extension.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/findfiles.py b/examples/widgets/dialogs/findfiles.py index cc410335f..b59871846 100755 --- a/examples/widgets/dialogs/findfiles.py +++ b/examples/widgets/dialogs/findfiles.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/standarddialogs.py b/examples/widgets/dialogs/standarddialogs.py index 41039a3af..cf065fd63 100644 --- a/examples/widgets/dialogs/standarddialogs.py +++ b/examples/widgets/dialogs/standarddialogs.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/dialogs/trivialwizard.py b/examples/widgets/dialogs/trivialwizard.py index 64a25878e..0cfe3adef 100755 --- a/examples/widgets/dialogs/trivialwizard.py +++ b/examples/widgets/dialogs/trivialwizard.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/draganddrop/draggabletext/draggabletext.py b/examples/widgets/draganddrop/draggabletext/draggabletext.py index eaddc57d1..67e988714 100755 --- a/examples/widgets/draganddrop/draggabletext/draggabletext.py +++ b/examples/widgets/draganddrop/draggabletext/draggabletext.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/draganddrop/draggabletext/draggabletext_rc.py b/examples/widgets/draganddrop/draggabletext/draggabletext_rc.py index 21874a6b4..0f0cd970a 100644 --- a/examples/widgets/draganddrop/draggabletext/draggabletext_rc.py +++ b/examples/widgets/draganddrop/draggabletext/draggabletext_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/effects/lighting.py b/examples/widgets/effects/lighting.py index efbb74711..265071f45 100755 --- a/examples/widgets/effects/lighting.py +++ b/examples/widgets/effects/lighting.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/anchorlayout.py b/examples/widgets/graphicsview/anchorlayout.py index 86cea5cf8..02ac11f00 100755 --- a/examples/widgets/graphicsview/anchorlayout.py +++ b/examples/widgets/graphicsview/anchorlayout.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/collidingmice/collidingmice.py b/examples/widgets/graphicsview/collidingmice/collidingmice.py index 03c7ed199..575ecc1f1 100644 --- a/examples/widgets/graphicsview/collidingmice/collidingmice.py +++ b/examples/widgets/graphicsview/collidingmice/collidingmice.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/collidingmice/mice_rc.py b/examples/widgets/graphicsview/collidingmice/mice_rc.py index bf3243b06..e9042a0d9 100644 --- a/examples/widgets/graphicsview/collidingmice/mice_rc.py +++ b/examples/widgets/graphicsview/collidingmice/mice_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/diagramscene/diagramscene.py b/examples/widgets/graphicsview/diagramscene/diagramscene.py index ea0af84f9..cd5891e57 100755 --- a/examples/widgets/graphicsview/diagramscene/diagramscene.py +++ b/examples/widgets/graphicsview/diagramscene/diagramscene.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/diagramscene/diagramscene_rc.py b/examples/widgets/graphicsview/diagramscene/diagramscene_rc.py index aab76d9d6..d32b488f5 100644 --- a/examples/widgets/graphicsview/diagramscene/diagramscene_rc.py +++ b/examples/widgets/graphicsview/diagramscene/diagramscene_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py index a0d685f85..b2f0a7c4f 100644 --- a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py +++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot_rc.py b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot_rc.py index 240a23d43..67cd6b282 100644 --- a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot_rc.py +++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/graphicsview/elasticnodes.py b/examples/widgets/graphicsview/elasticnodes.py index 8da21334b..f013156d7 100755 --- a/examples/widgets/graphicsview/elasticnodes.py +++ b/examples/widgets/graphicsview/elasticnodes.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/addressbook/adddialogwidget.py b/examples/widgets/itemviews/addressbook/adddialogwidget.py index c0dcaf6c0..cdf11a70f 100644 --- a/examples/widgets/itemviews/addressbook/adddialogwidget.py +++ b/examples/widgets/itemviews/addressbook/adddialogwidget.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/addressbook/addressbook.py b/examples/widgets/itemviews/addressbook/addressbook.py index f8927be5e..32ab5115c 100644 --- a/examples/widgets/itemviews/addressbook/addressbook.py +++ b/examples/widgets/itemviews/addressbook/addressbook.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/addressbook/addresswidget.py b/examples/widgets/itemviews/addressbook/addresswidget.py index 7ecd42e7d..e275ab764 100644 --- a/examples/widgets/itemviews/addressbook/addresswidget.py +++ b/examples/widgets/itemviews/addressbook/addresswidget.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/addressbook/newaddresstab.py b/examples/widgets/itemviews/addressbook/newaddresstab.py index 82dcff441..afb8e66e9 100644 --- a/examples/widgets/itemviews/addressbook/newaddresstab.py +++ b/examples/widgets/itemviews/addressbook/newaddresstab.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/addressbook/tablemodel.py b/examples/widgets/itemviews/addressbook/tablemodel.py index 24316f981..240a4349b 100644 --- a/examples/widgets/itemviews/addressbook/tablemodel.py +++ b/examples/widgets/itemviews/addressbook/tablemodel.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/basicsortfiltermodel.py b/examples/widgets/itemviews/basicsortfiltermodel.py index 3051c9fa0..c8df546e8 100755 --- a/examples/widgets/itemviews/basicsortfiltermodel.py +++ b/examples/widgets/itemviews/basicsortfiltermodel.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/fetchmore.py b/examples/widgets/itemviews/fetchmore.py index 08655db0d..2eeb1bd3c 100755 --- a/examples/widgets/itemviews/fetchmore.py +++ b/examples/widgets/itemviews/fetchmore.py @@ -7,7 +7,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/stardelegate/stardelegate.py b/examples/widgets/itemviews/stardelegate/stardelegate.py index 44a2d6694..34492e3db 100644 --- a/examples/widgets/itemviews/stardelegate/stardelegate.py +++ b/examples/widgets/itemviews/stardelegate/stardelegate.py @@ -7,7 +7,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/stardelegate/stareditor.py b/examples/widgets/itemviews/stardelegate/stareditor.py index 440659a4f..1be69e8bb 100644 --- a/examples/widgets/itemviews/stardelegate/stareditor.py +++ b/examples/widgets/itemviews/stardelegate/stareditor.py @@ -7,7 +7,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/itemviews/stardelegate/starrating.py b/examples/widgets/itemviews/stardelegate/starrating.py index b573db424..bd5b084eb 100644 --- a/examples/widgets/itemviews/stardelegate/starrating.py +++ b/examples/widgets/itemviews/stardelegate/starrating.py @@ -7,7 +7,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/layouts/basiclayouts.py b/examples/widgets/layouts/basiclayouts.py index 03f3315d5..ef53b4829 100755 --- a/examples/widgets/layouts/basiclayouts.py +++ b/examples/widgets/layouts/basiclayouts.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/layouts/dynamiclayouts.py b/examples/widgets/layouts/dynamiclayouts.py index e80b8c885..fe46c053a 100644 --- a/examples/widgets/layouts/dynamiclayouts.py +++ b/examples/widgets/layouts/dynamiclayouts.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/layouts/flowlayout.py b/examples/widgets/layouts/flowlayout.py index 75dfa4679..51522ca0a 100755 --- a/examples/widgets/layouts/flowlayout.py +++ b/examples/widgets/layouts/flowlayout.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/application/application.py b/examples/widgets/mainwindows/application/application.py index f1f2ca7c2..be0dc992e 100755 --- a/examples/widgets/mainwindows/application/application.py +++ b/examples/widgets/mainwindows/application/application.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/application/application_rc.py b/examples/widgets/mainwindows/application/application_rc.py index f5cc2c078..6592aa48d 100644 --- a/examples/widgets/mainwindows/application/application_rc.py +++ b/examples/widgets/mainwindows/application/application_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/dockwidgets/dockwidgets.py b/examples/widgets/mainwindows/dockwidgets/dockwidgets.py index 29443878a..e5a6a958a 100644 --- a/examples/widgets/mainwindows/dockwidgets/dockwidgets.py +++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/dockwidgets/dockwidgets_rc.py b/examples/widgets/mainwindows/dockwidgets/dockwidgets_rc.py index 0a9c622ed..393a226dc 100644 --- a/examples/widgets/mainwindows/dockwidgets/dockwidgets_rc.py +++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/mdi/mdi.py b/examples/widgets/mainwindows/mdi/mdi.py index b8bdd9aee..4e5eed779 100755 --- a/examples/widgets/mainwindows/mdi/mdi.py +++ b/examples/widgets/mainwindows/mdi/mdi.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/mainwindows/mdi/mdi_rc.py b/examples/widgets/mainwindows/mdi/mdi_rc.py index 3e586f4fa..005526791 100644 --- a/examples/widgets/mainwindows/mdi/mdi_rc.py +++ b/examples/widgets/mainwindows/mdi/mdi_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/painting/basicdrawing/basicdrawing.py b/examples/widgets/painting/basicdrawing/basicdrawing.py index c2f3e672c..0dab1d913 100755 --- a/examples/widgets/painting/basicdrawing/basicdrawing.py +++ b/examples/widgets/painting/basicdrawing/basicdrawing.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/painting/basicdrawing/basicdrawing_rc.py b/examples/widgets/painting/basicdrawing/basicdrawing_rc.py index b9de90387..6e1668c29 100644 --- a/examples/widgets/painting/basicdrawing/basicdrawing_rc.py +++ b/examples/widgets/painting/basicdrawing/basicdrawing_rc.py @@ -4,7 +4,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/painting/concentriccircles.py b/examples/widgets/painting/concentriccircles.py index 5fecfc0b5..fa6c24f77 100755 --- a/examples/widgets/painting/concentriccircles.py +++ b/examples/widgets/painting/concentriccircles.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/richtext/orderform.py b/examples/widgets/richtext/orderform.py index e068db2b2..fe81d4b9c 100755 --- a/examples/widgets/richtext/orderform.py +++ b/examples/widgets/richtext/orderform.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/richtext/syntaxhighlighter.py b/examples/widgets/richtext/syntaxhighlighter.py index 8a14632fe..6a431c3f9 100755 --- a/examples/widgets/richtext/syntaxhighlighter.py +++ b/examples/widgets/richtext/syntaxhighlighter.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.py b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.py index 6b913f177..841943292 100644 --- a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.py +++ b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter_rc.py b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter_rc.py index 81321bb65..375146354 100644 --- a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter_rc.py +++ b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter_rc.py @@ -4,7 +4,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/richtext/textobject/textobject.py b/examples/widgets/richtext/textobject/textobject.py index 3e7b75ddc..586605244 100755 --- a/examples/widgets/richtext/textobject/textobject.py +++ b/examples/widgets/richtext/textobject/textobject.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/eventtrans.py b/examples/widgets/state-machine/eventtrans.py index 68e21a81f..27349df55 100755 --- a/examples/widgets/state-machine/eventtrans.py +++ b/examples/widgets/state-machine/eventtrans.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/factstates.py b/examples/widgets/state-machine/factstates.py index 8550c3f39..2f07a3ff4 100755 --- a/examples/widgets/state-machine/factstates.py +++ b/examples/widgets/state-machine/factstates.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/pingpong.py b/examples/widgets/state-machine/pingpong.py index f0233ffc0..9d924c566 100755 --- a/examples/widgets/state-machine/pingpong.py +++ b/examples/widgets/state-machine/pingpong.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/rogue.py b/examples/widgets/state-machine/rogue.py index e6ab3faef..fe74e6da9 100755 --- a/examples/widgets/state-machine/rogue.py +++ b/examples/widgets/state-machine/rogue.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/trafficlight.py b/examples/widgets/state-machine/trafficlight.py index 8e1d71d94..6f3034761 100755 --- a/examples/widgets/state-machine/trafficlight.py +++ b/examples/widgets/state-machine/trafficlight.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/state-machine/twowaybutton.py b/examples/widgets/state-machine/twowaybutton.py index 6b27787b5..0275d718e 100755 --- a/examples/widgets/state-machine/twowaybutton.py +++ b/examples/widgets/state-machine/twowaybutton.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part1.py b/examples/widgets/tutorials/addressbook/part1.py index c14aab96b..a424e1476 100755 --- a/examples/widgets/tutorials/addressbook/part1.py +++ b/examples/widgets/tutorials/addressbook/part1.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part2.py b/examples/widgets/tutorials/addressbook/part2.py index 62fe157a7..c6d19579b 100755 --- a/examples/widgets/tutorials/addressbook/part2.py +++ b/examples/widgets/tutorials/addressbook/part2.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part3.py b/examples/widgets/tutorials/addressbook/part3.py index 8db6e6a3d..0a4769ac8 100755 --- a/examples/widgets/tutorials/addressbook/part3.py +++ b/examples/widgets/tutorials/addressbook/part3.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part4.py b/examples/widgets/tutorials/addressbook/part4.py index 80ef32535..11d1d66ff 100755 --- a/examples/widgets/tutorials/addressbook/part4.py +++ b/examples/widgets/tutorials/addressbook/part4.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part5.py b/examples/widgets/tutorials/addressbook/part5.py index a40033ca9..3f94ba4b2 100755 --- a/examples/widgets/tutorials/addressbook/part5.py +++ b/examples/widgets/tutorials/addressbook/part5.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part6.py b/examples/widgets/tutorials/addressbook/part6.py index 5476a2704..ba81362f7 100755 --- a/examples/widgets/tutorials/addressbook/part6.py +++ b/examples/widgets/tutorials/addressbook/part6.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/tutorials/addressbook/part7.py b/examples/widgets/tutorials/addressbook/part7.py index 5458a7516..ce73e63c2 100755 --- a/examples/widgets/tutorials/addressbook/part7.py +++ b/examples/widgets/tutorials/addressbook/part7.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/widgets/hellogl_openglwidget_legacy.py b/examples/widgets/widgets/hellogl_openglwidget_legacy.py index c2e918671..42b48fc4a 100755 --- a/examples/widgets/widgets/hellogl_openglwidget_legacy.py +++ b/examples/widgets/widgets/hellogl_openglwidget_legacy.py @@ -5,7 +5,7 @@ ## Copyright (C) 2017 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/widgets/widgets/tetrix.py b/examples/widgets/widgets/tetrix.py index 9045ac7af..33e17a72b 100644 --- a/examples/widgets/widgets/tetrix.py +++ b/examples/widgets/widgets/tetrix.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/xml/dombookmarks/dombookmarks.py b/examples/xml/dombookmarks/dombookmarks.py index 77c2bad67..b9d076ce4 100755 --- a/examples/xml/dombookmarks/dombookmarks.py +++ b/examples/xml/dombookmarks/dombookmarks.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/xmlpatterns/schema/schema.py b/examples/xmlpatterns/schema/schema.py index 1a3c51e69..a10cc32ce 100755 --- a/examples/xmlpatterns/schema/schema.py +++ b/examples/xmlpatterns/schema/schema.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: diff --git a/examples/xmlpatterns/schema/schema_rc.py b/examples/xmlpatterns/schema/schema_rc.py index c4df53030..87d567ca2 100644 --- a/examples/xmlpatterns/schema/schema_rc.py +++ b/examples/xmlpatterns/schema/schema_rc.py @@ -6,7 +6,7 @@ ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## -## This file is part of the PySide examples of the Qt Toolkit. +## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: |