mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 10:46:40 +00:00
Updated to Python 3.4 and PyQt 5.3 (close #94)
This commit is contained in:
1
kcc.py
1
kcc.py
@@ -114,6 +114,7 @@ class QApplicationMessaging(QtWidgets.QApplication):
|
|||||||
self._timeout = 1000
|
self._timeout = 1000
|
||||||
self._server = QtNetwork.QLocalServer(self)
|
self._server = QtNetwork.QLocalServer(self)
|
||||||
if not self.isRunning():
|
if not self.isRunning():
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
self._server.newConnection.connect(self.handleMessage)
|
self._server.newConnection.connect(self.handleMessage)
|
||||||
self._server.listen(self._key)
|
self._server.listen(self._key)
|
||||||
|
|
||||||
|
|||||||
@@ -572,6 +572,7 @@ class SystemTrayIcon(QtWidgets.QSystemTrayIcon):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
if self.isSystemTrayAvailable():
|
if self.isSystemTrayAvailable():
|
||||||
QtWidgets.QSystemTrayIcon.__init__(self, GUI.icons.programIcon, MW)
|
QtWidgets.QSystemTrayIcon.__init__(self, GUI.icons.programIcon, MW)
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
self.activated.connect(self.catchClicks)
|
self.activated.connect(self.catchClicks)
|
||||||
|
|
||||||
def catchClicks(self):
|
def catchClicks(self):
|
||||||
|
|||||||
24
setup.py
24
setup.py
@@ -63,34 +63,34 @@ elif platform == "win32":
|
|||||||
suffix = '_64'
|
suffix = '_64'
|
||||||
else:
|
else:
|
||||||
suffix = ''
|
suffix = ''
|
||||||
additional_files = [('imageformats', ['C:\Python33' + suffix +
|
additional_files = [('imageformats', ['C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qgif.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qgif.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qico.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qico.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qjpeg.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qjpeg.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qmng.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qmng.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qsvg.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qsvg.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qtga.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qtga.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qtiff.dll',
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qtiff.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qwbmp.dll']),
|
'\Lib\site-packages\PyQt5\plugins\imageformats\qwbmp.dll']),
|
||||||
('platforms', ['C:\Python33' + suffix +
|
('platforms', ['C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qminimal.dll',
|
'\Lib\site-packages\PyQt5\plugins\platforms\qminimal.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qoffscreen.dll',
|
'\Lib\site-packages\PyQt5\plugins\platforms\qoffscreen.dll',
|
||||||
'C:\Python33' + suffix +
|
'C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
||||||
('', ['LICENSE.txt',
|
('', ['LICENSE.txt',
|
||||||
'other\\7za.exe',
|
'other\\7za.exe',
|
||||||
'other\\UnRAR.exe',
|
'other\\UnRAR.exe',
|
||||||
'other\\Additional-LICENSE.txt',
|
'other\\Additional-LICENSE.txt',
|
||||||
'other\\7za.exe',
|
'other\\7za.exe',
|
||||||
'C:\Python33' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
options={'py2exe': {"bundle_files": 2,
|
options={'py2exe': {"bundle_files": 2,
|
||||||
"dll_excludes": ["tcl85.dll", "tk85.dll"],
|
"dll_excludes": ["tcl85.dll", "tk85.dll"],
|
||||||
|
|||||||
Reference in New Issue
Block a user