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
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
Mac/Bungloo.app
|
||||||
Mac/bungloo
|
Mac/bungloo
|
||||||
dsa_priv.pem
|
dsa_priv.pem
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf Bungloo.app
|
||||||
rm -rf bungloo
|
rm -rf bungloo
|
||||||
mkdir bungloo
|
mkdir bungloo
|
||||||
cp -r ../Qt/* bungloo
|
cp -r ../Qt/* bungloo
|
||||||
|
@ -10,6 +11,6 @@ cp setup.py bungloo
|
||||||
cp Info.plist bungloo
|
cp Info.plist bungloo
|
||||||
cd bungloo
|
cd bungloo
|
||||||
python setup.py py2app
|
python setup.py py2app
|
||||||
#mv dist/Bungloo.app ..
|
mv dist/Bungloo.app ..
|
||||||
cd ..
|
cd ..
|
||||||
#rm -rf bungloo
|
rm -rf bungloo
|
|
@ -47,5 +47,3 @@ setup(
|
||||||
options={'py2app': OPTIONS},
|
options={'py2app': OPTIONS},
|
||||||
setup_requires=['py2app'],
|
setup_requires=['py2app'],
|
||||||
)
|
)
|
||||||
|
|
||||||
print os.path.dirname(PyQt4.__file__)
|
|
|
@ -8,6 +8,8 @@ RUNNING_LOCAL = os.path.basename(sys.argv[0]) == "Bungloo.py"
|
||||||
RUNNING_ON_WINDOWS = os.name == "nt"
|
RUNNING_ON_WINDOWS = os.name == "nt"
|
||||||
RUNNING_ON_OSX = _platform == "darwin"
|
RUNNING_ON_OSX = _platform == "darwin"
|
||||||
|
|
||||||
|
print sys.argv[0]
|
||||||
|
|
||||||
if RUNNING_LOCAL or RUNNING_ON_WINDOWS:
|
if RUNNING_LOCAL or RUNNING_ON_WINDOWS:
|
||||||
import Windows, Helper, SingleApplication
|
import Windows, Helper, SingleApplication
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -8,6 +8,7 @@ import json
|
||||||
class SingleApplication(QtGui.QApplication):
|
class SingleApplication(QtGui.QApplication):
|
||||||
def __init__(self, argv, key):
|
def __init__(self, argv, key):
|
||||||
self.bungloo = None
|
self.bungloo = None
|
||||||
|
QtGui.QApplication.setGraphicsSystem("raster")
|
||||||
QtGui.QApplication.__init__(self, argv)
|
QtGui.QApplication.__init__(self, argv)
|
||||||
self._memory = QtCore.QSharedMemory(self)
|
self._memory = QtCore.QSharedMemory(self)
|
||||||
self._memory.setKey(key)
|
self._memory.setKey(key)
|
||||||
|
|
Reference in a new issue