forked from pyinstaller/pyinstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pyinstaller#1136 from matysek/develop
Fix pyinstaller#521: Extend Windows PATH for PySide, PyQt4, PyQt5 hooks with Qt4 dlls.
- Loading branch information
Showing
8 changed files
with
124 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2015, PyInstaller Development Team. | ||
# | ||
# Distributed under the terms of the GNU General Public License with exception | ||
# for distributing bootloader. | ||
# | ||
# The full license is in the file COPYING.txt, distributed with this software. | ||
#----------------------------------------------------------------------------- | ||
|
||
|
||
import sys | ||
|
||
from PySide import QtCore | ||
from PySide import QtGui | ||
|
||
class MyDialog(QtGui.QDialog): | ||
|
||
def __init__(self): | ||
super(MyDialog, self).__init__() | ||
|
||
self.label = QtGui.QLabel( | ||
u"Press <ESC> to exit. Some non-ascii chars: řčšěíáŘ", | ||
self) | ||
self.setWindowTitle("Hello World from PySide") | ||
self.resize(400, 200) | ||
self.show() | ||
|
||
def sizeHint(self): | ||
return self.label.sizeHint() | ||
|
||
def keyPressEvent(self, event): | ||
if event.key() == QtCore.Qt.Key_Escape: | ||
self.close() | ||
|
||
|
||
def main(): | ||
app = QtGui.QApplication(sys.argv) | ||
read_formats = ', '.join([unicode(format).lower() \ | ||
for format in QtGui.QImageReader.supportedImageFormats()]) | ||
print("Qt4 plugin paths: " + unicode(list(app.libraryPaths()))) | ||
print("Qt4 image read support: " + read_formats) | ||
print('Qt4 Libraries path: ' + unicode(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.LibrariesPath))) | ||
ex = MyDialog() | ||
app.exec_() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |