Hi all -- I've been trying to get our PyQt-based app wrapped up into an OS X app, and I'm running in to the problem reported in http://www.pyinstaller.org/ticket/156
I seem to be getting inconsistent behavior: setting LSBackgroundOnly == 0 will usually result in a double bouncing icon, but occasionally it does show a single icon -- haven't tracked down yet why this happens. LSBackgroundOnly == 1 will never show an icon. Any advice? It seems like it might be a race condition. Also, is there any documentation on recompiling the c source? Thank you very much ~ Devon (versions: OSX 10.6.7, PyInstaller trunk r1374, Qt 4.6.3, PyQt 4.7.7) -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
main.spec
Description: main.spec
from PyQt4.Qt import *
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
import os
class Test(QWidget):
def __init__(self):
QWidget.__init__(self)
btn = QPushButton("hi")
layout = QHBoxLayout()
layout.addWidget(btn)
self.setLayout(layout)
btn.clicked.connect(self._p)
self._printDirs()
def _p(self):
print "Hi!"
def _printDirs(self):
print "DIRS"
print "QCoreApplication.applicationDirPath()", QCoreApplication.applicationDirPath()
print "os.getcwd()", os.getcwd()
print "os.path.dirname(sys.executable)", os.path.dirname(sys.executable)
print "sys.path", sys.path
print "sys.frozen", hasattr(sys, "frozen")
print "os.curdir", os.curdir
if __name__ == "__main__":
print "start"
app = QApplication(sys.argv)
test = Test()
test.show()
test.raise_()
app.exec_()
print "end"
app.quit()
