1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Updated to Python 3.4 and PyQt 5.3 (close #94)

This commit is contained in:
Paweł Jastrzębski
2014-05-29 18:23:28 +02:00
parent f53cdf9cd7
commit fce3072dca
3 changed files with 14 additions and 12 deletions

1
kcc.py
View File

@@ -114,6 +114,7 @@ class QApplicationMessaging(QtWidgets.QApplication):
self._timeout = 1000
self._server = QtNetwork.QLocalServer(self)
if not self.isRunning():
# noinspection PyUnresolvedReferences
self._server.newConnection.connect(self.handleMessage)
self._server.listen(self._key)

View File

@@ -572,6 +572,7 @@ class SystemTrayIcon(QtWidgets.QSystemTrayIcon):
def __init__(self):
if self.isSystemTrayAvailable():
QtWidgets.QSystemTrayIcon.__init__(self, GUI.icons.programIcon, MW)
# noinspection PyUnresolvedReferences
self.activated.connect(self.catchClicks)
def catchClicks(self):

View File

@@ -63,34 +63,34 @@ elif platform == "win32":
suffix = '_64'
else:
suffix = ''
additional_files = [('imageformats', ['C:\Python33' + suffix +
additional_files = [('imageformats', ['C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qgif.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qico.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qjpeg.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qmng.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qsvg.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qtga.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qtiff.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\imageformats\qwbmp.dll']),
('platforms', ['C:\Python33' + suffix +
('platforms', ['C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\platforms\qminimal.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\platforms\qoffscreen.dll',
'C:\Python33' + suffix +
'C:\Python34' + suffix +
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
('', ['LICENSE.txt',
'other\\7za.exe',
'other\\UnRAR.exe',
'other\\Additional-LICENSE.txt',
'other\\7za.exe',
'C:\Python33' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
extra_options = dict(
options={'py2exe': {"bundle_files": 2,
"dll_excludes": ["tcl85.dll", "tk85.dll"],