Helper functions for updating the Python Qt5 repository.
Last active
November 1, 2017 03:27
-
-
Save mottosso/042043b9680ca88c225e to your computer and use it in GitHub Desktop.
Developer toolchain for updating the pyqt/python-qt5 repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
# To prevent accidents | |
assert os.getcwd().endswith("PyQt5"), "Run this within your PyQt5 directory" | |
for root, dirnames, fnames in os.walk("."): | |
for fname in fnames: | |
if fname.endswith((".pdb", "d.dll")): | |
fpath = os.path.join(root, fname) | |
print "Removing %s" % fpath | |
os.remove(fpath) | |
print "Finished" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Enginiod.dll | |
- Enginiod.pdb | |
- libEGLd.dll | |
- libEGLd.pdb | |
- libGLESv2d.dll | |
- libGLESv2d.pdb | |
- Qt5Bluetoothd.dll | |
- Qt5Bluetoothd.pdb | |
- Qt5CLucened.dll | |
- Qt5CLucened.pdb | |
- Qt5Concurrentd.dll | |
- Qt5Concurrentd.pdb | |
- Qt5Cored.dll | |
- Qt5Cored.pdb | |
- Qt5Declaratived.dll | |
- Qt5Declaratived.pdb | |
- Qt5DesignerComponentsd.dll | |
- Qt5DesignerComponentsd.pdb | |
- Qt5Designerd.dll | |
- Qt5Designerd.pdb | |
- Qt5Guid.dll | |
- Qt5Guid.pdb | |
- Qt5Helpd.dll | |
- Qt5Helpd.pdb | |
- Qt5Locationd.dll | |
- Qt5Locationd.pdb | |
- Qt5Multimediad.dll | |
- Qt5Multimediad.pdb | |
- Qt5MultimediaQuick_pd.dll | |
- Qt5MultimediaQuick_pd.pdb | |
- Qt5MultimediaWidgetsd.dll | |
- Qt5MultimediaWidgetsd.pdb | |
- Qt5Networkd.dll | |
- Qt5Networkd.pdb | |
- Qt5Nfcd.dll | |
- Qt5Nfcd.pdb | |
- Qt5OpenGLd.dll | |
- Qt5OpenGLd.pdb | |
- Qt5Positioningd.dll | |
- Qt5Positioningd.pdb | |
- Qt5PrintSupportd.dll | |
- Qt5PrintSupportd.pdb | |
- Qt5Qmld.dll | |
- Qt5Qmld.pdb | |
- Qt5Quickd.dll | |
- Qt5Quickd.pdb | |
- Qt5QuickParticlesd.dll | |
- Qt5QuickParticlesd.pdb | |
- Qt5QuickTestd.dll | |
- Qt5QuickTestd.pdb | |
- Qt5QuickWidgetsd.dll | |
- Qt5QuickWidgetsd.pdb | |
- Qt5Scriptd.dll | |
- Qt5Scriptd.pdb | |
- Qt5ScriptToolsd.dll | |
- Qt5ScriptToolsd.pdb | |
- Qt5Sensorsd.dll | |
- Qt5Sensorsd.pdb | |
- Qt5SerialPortd.dll | |
- Qt5SerialPortd.pdb | |
- Qt5Sqld.dll | |
- Qt5Sqld.pdb | |
- Qt5Svgd.dll | |
- Qt5Svgd.pdb | |
- Qt5Testd.dll | |
- Qt5Testd.pdb | |
- Qt5WebChanneld.dll | |
- Qt5WebChanneld.pdb | |
- Qt5WebEngineCored.dll | |
- Qt5WebEngined.dll | |
- Qt5WebEngined.pdb | |
- Qt5WebEngineWidgetsd.dll | |
- Qt5WebEngineWidgetsd.pdb | |
- Qt5WebKitd.dll | |
- Qt5WebKitd.pdb | |
- Qt5WebKitWidgetsd.dll | |
- Qt5WebKitWidgetsd.pdb | |
- Qt5WebSocketsd.dll | |
- Qt5WebSocketsd.pdb | |
- Qt5WebViewd.dll | |
- Qt5WebViewd.pdb | |
- Qt5Widgetsd.dll | |
- Qt5Widgetsd.pdb | |
- Qt5WinExtrasd.dll | |
- Qt5WinExtrasd.pdb | |
- Qt5Xmld.dll | |
- Qt5Xmld.pdb | |
- Qt5XmlPatternsd.dll | |
- Qt5XmlPatternsd.pdb | |
- plugins\audio\qtaudio_windowsd.dll | |
- plugins\audio\qtaudio_windowsd.pdb | |
- plugins\bearer\qgenericbearerd.dll | |
- plugins\bearer\qgenericbearerd.pdb | |
- plugins\bearer\qnativewifibearerd.dll | |
- plugins\bearer\qnativewifibearerd.pdb | |
- plugins\geoservices\qtgeoservices_nokiad.dll | |
- plugins\geoservices\qtgeoservices_nokiad.pdb | |
- plugins\geoservices\qtgeoservices_osmd.dll | |
- plugins\geoservices\qtgeoservices_osmd.pdb | |
- plugins\iconengines\qsvgicond.dll | |
- plugins\iconengines\qsvgicond.pdb | |
- plugins\imageformats\qddsd.dll | |
- plugins\imageformats\qddsd.pdb | |
- plugins\imageformats\qgifd.dll | |
- plugins\imageformats\qgifd.pdb | |
- plugins\imageformats\qicnsd.dll | |
- plugins\imageformats\qicnsd.pdb | |
- plugins\imageformats\qicod.dll | |
- plugins\imageformats\qicod.pdb | |
- plugins\imageformats\qjp2d.dll | |
- plugins\imageformats\qjp2d.pdb | |
- plugins\imageformats\qjpegd.dll | |
- plugins\imageformats\qjpegd.pdb | |
- plugins\imageformats\qmngd.dll | |
- plugins\imageformats\qmngd.pdb | |
- plugins\imageformats\qsvgd.dll | |
- plugins\imageformats\qsvgd.pdb | |
- plugins\imageformats\qtgad.dll | |
- plugins\imageformats\qtgad.pdb | |
- plugins\imageformats\qtiffd.dll | |
- plugins\imageformats\qtiffd.pdb | |
- plugins\imageformats\qwbmpd.dll | |
- plugins\imageformats\qwbmpd.pdb | |
- plugins\imageformats\qwebpd.dll | |
- plugins\imageformats\qwebpd.pdb | |
- plugins\mediaservice\dsengined.dll | |
- plugins\mediaservice\dsengined.pdb | |
- plugins\mediaservice\qtmedia_audioengined.dll | |
- plugins\mediaservice\qtmedia_audioengined.pdb | |
- plugins\mediaservice\wmfengined.dll | |
- plugins\mediaservice\wmfengined.pdb | |
- plugins\platforms\qminimald.dll | |
- plugins\platforms\qminimald.pdb | |
- plugins\platforms\qoffscreend.dll | |
- plugins\platforms\qoffscreend.pdb | |
- plugins\platforms\qwindowsd.dll | |
- plugins\platforms\qwindowsd.pdb | |
- plugins\playlistformats\qtmultimedia_m3ud.dll | |
- plugins\playlistformats\qtmultimedia_m3ud.pdb | |
- plugins\position\qtposition_positionpolld.dll | |
- plugins\position\qtposition_positionpolld.pdb | |
- plugins\printsupport\windowsprintersupportd.dll | |
- plugins\printsupport\windowsprintersupportd.pdb | |
- plugins\qml1tooling\qmldbg_inspectord.dll | |
- plugins\qml1tooling\qmldbg_inspectord.pdb | |
- plugins\qml1tooling\qmldbg_tcp_qtdeclaratived.dll | |
- plugins\qml1tooling\qmldbg_tcp_qtdeclaratived.pdb | |
- plugins\qmltooling\qmldbg_qtquick2d.dll | |
- plugins\qmltooling\qmldbg_qtquick2d.pdb | |
- plugins\qmltooling\qmldbg_tcpd.dll | |
- plugins\qmltooling\qmldbg_tcpd.pdb | |
- plugins\sensorgestures\qtsensorgestures_plugind.dll | |
- plugins\sensorgestures\qtsensorgestures_plugind.pdb | |
- plugins\sensorgestures\qtsensorgestures_shakeplugind.dll | |
- plugins\sensorgestures\qtsensorgestures_shakeplugind.pdb | |
- plugins\sensors\qtsensors_dummyd.dll | |
- plugins\sensors\qtsensors_dummyd.pdb | |
- plugins\sensors\qtsensors_genericd.dll | |
- plugins\sensors\qtsensors_genericd.pdb | |
- plugins\sqldrivers\qsqlited.dll | |
- plugins\sqldrivers\qsqlited.pdb | |
- plugins\sqldrivers\qsqlmysqld.dll | |
- plugins\sqldrivers\qsqlmysqld.pdb | |
- plugins\sqldrivers\qsqlodbcd.dll | |
- plugins\sqldrivers\qsqlodbcd.pdb | |
- plugins\sqldrivers\qsqlpsqld.dll | |
- plugins\sqldrivers\qsqlpsqld.pdb | |
- qml\Enginio\enginioplugind.dll | |
- qml\Enginio\enginioplugind.pdb | |
- qml\Qt\labs\folderlistmodel\qmlfolderlistmodelplugind.dll | |
- qml\Qt\labs\folderlistmodel\qmlfolderlistmodelplugind.pdb | |
- qml\Qt\labs\settings\qmlsettingsplugind.dll | |
- qml\Qt\labs\settings\qmlsettingsplugind.pdb | |
- qml\Qt\WebSockets\declarative_qmlwebsocketsd.dll | |
- qml\Qt\WebSockets\declarative_qmlwebsocketsd.pdb | |
- qml\QtBluetooth\declarative_bluetoothd.dll | |
- qml\QtBluetooth\declarative_bluetoothd.pdb | |
- qml\QtLocation\declarative_locationd.dll | |
- qml\QtLocation\declarative_locationd.pdb | |
- qml\QtMultimedia\declarative_multimediad.dll | |
- qml\QtMultimedia\declarative_multimediad.pdb | |
- qml\QtNfc\declarative_nfcd.dll | |
- qml\QtNfc\declarative_nfcd.pdb | |
- qml\QtPositioning\declarative_positioningd.dll | |
- qml\QtPositioning\declarative_positioningd.pdb | |
- qml\QtQml\Models.2\modelsplugind.dll | |
- qml\QtQml\Models.2\modelsplugind.pdb | |
- qml\QtQml\StateMachine\qtqmlstatemachined.dll | |
- qml\QtQml\StateMachine\qtqmlstatemachined.pdb | |
- qml\QtQuick\Controls\qtquickcontrolsplugind.dll | |
- qml\QtQuick\Controls\qtquickcontrolsplugind.pdb | |
- qml\QtQuick\Dialogs\dialogplugind.dll | |
- qml\QtQuick\Dialogs\dialogplugind.pdb | |
- qml\QtQuick\Dialogs\Private\dialogsprivateplugind.dll | |
- qml\QtQuick\Dialogs\Private\dialogsprivateplugind.pdb | |
- qml\QtQuick\Layouts\qquicklayoutsplugind.dll | |
- qml\QtQuick\Layouts\qquicklayoutsplugind.pdb | |
- qml\QtQuick\LocalStorage\qmllocalstorageplugind.dll | |
- qml\QtQuick\LocalStorage\qmllocalstorageplugind.pdb | |
- qml\QtQuick\Particles.2\particlesplugind.dll | |
- qml\QtQuick\Particles.2\particlesplugind.pdb | |
- qml\QtQuick\PrivateWidgets\widgetsplugind.dll | |
- qml\QtQuick\PrivateWidgets\widgetsplugind.pdb | |
- qml\QtQuick\Window.2\windowplugind.dll | |
- qml\QtQuick\Window.2\windowplugind.pdb | |
- qml\QtQuick\XmlListModel\qmlxmllistmodelplugind.dll | |
- qml\QtQuick\XmlListModel\qmlxmllistmodelplugind.pdb | |
- qml\QtQuick.2\qtquick2plugind.dll | |
- qml\QtQuick.2\qtquick2plugind.pdb | |
- qml\QtSensors\declarative_sensorsd.dll | |
- qml\QtSensors\declarative_sensorsd.pdb | |
- qml\QtTest\qmltestplugind.dll | |
- qml\QtTest\qmltestplugind.pdb | |
- qml\QtWebChannel\declarative_webchanneld.dll | |
- qml\QtWebChannel\declarative_webchanneld.pdb | |
- qml\QtWebEngine\qtwebengineplugind.dll | |
- qml\QtWebEngine\qtwebengineplugind.pdb | |
- qml\QtWebEngine\experimental\qtwebengineexperimentalplugind.dll | |
- qml\QtWebEngine\experimental\qtwebengineexperimentalplugind.pdb | |
- qml\QtWebKit\qmlwebkitplugind.dll | |
- qml\QtWebKit\qmlwebkitplugind.pdb | |
- qml\QtWebKit\experimental\qmlwebkitexperimentalplugind.dll | |
- qml\QtWebKit\experimental\qmlwebkitexperimentalplugind.pdb | |
- qml\QtWebView\declarative_webviewd.dll | |
- qml\QtWebView\declarative_webviewd.pdb | |
- qml\QtWinExtras\qml_winextrasd.dll | |
- qml\QtWinExtras\qml_winextrasd.pdb | |
- qtenv2.bat | |
- syncqt.pl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Test QWidgets""" | |
import sys | |
from PyQt5 import QtWidgets | |
app = QtWidgets.QApplication(sys.argv) | |
button = QtWidgets.QPushButton("Hello") | |
button.setFixedSize(200, 200) | |
button.show() | |
print "Press any key to exit" | |
raw_input() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Test QML */ | |
import QtQuick 2.4 | |
import QtQuick.Window 2.0 | |
Window { | |
width: 400 | |
height: 400 | |
color: "blue" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Test Python with QML""" | |
# Standard library | |
import os | |
import sys | |
# Dependencies | |
from PyQt5 import QtGui, QtCore, QtQml | |
QML_DIR = os.path.dirname(__file__) | |
APP_PATH = os.path.join(QML_DIR, "test2.qml") | |
def object_created_handler(obj, url): | |
if obj is not None: | |
obj.show() | |
app.exec_() | |
else: | |
sys.exit() | |
app = QtGui.QGuiApplication(sys.argv) | |
engine = QtQml.QQmlApplicationEngine() | |
engine.objectCreated.connect(object_created_handler) | |
engine.load(QtCore.QUrl.fromLocalFile(APP_PATH)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment