fixed problems with images on os x
This commit is contained in:
parent
cc0aee9510
commit
ee3f4de6a5
5 changed files with 7 additions and 4 deletions
|
@ -8,6 +8,8 @@ RUNNING_LOCAL = os.path.basename(sys.argv[0]) == "Bungloo.py"
|
|||
RUNNING_ON_WINDOWS = os.name == "nt"
|
||||
RUNNING_ON_OSX = _platform == "darwin"
|
||||
|
||||
print sys.argv[0]
|
||||
|
||||
if RUNNING_LOCAL or RUNNING_ON_WINDOWS:
|
||||
import Windows, Helper, SingleApplication
|
||||
else:
|
||||
|
|
|
@ -8,6 +8,7 @@ import json
|
|||
class SingleApplication(QtGui.QApplication):
|
||||
def __init__(self, argv, key):
|
||||
self.bungloo = None
|
||||
QtGui.QApplication.setGraphicsSystem("raster")
|
||||
QtGui.QApplication.__init__(self, argv)
|
||||
self._memory = QtCore.QSharedMemory(self)
|
||||
self._memory.setKey(key)
|
||||
|
|
Reference in a new issue