From george at lecompte.org Mon Feb 6 17:50:39 2012 From: george at lecompte.org (George LeCompte) Date: Mon, 6 Feb 2012 08:50:39 -0800 Subject: [Pygui] Fwd: Problem with blobedit.py In-Reply-To: References: Message-ID: tried to run blobedit.py using: python blobedit.py 2>output.txt got a resource not found. help please Please respond to george at lecompte.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Traceback (most recent call last): File "blobedit.py", line 132, in BlobApp().run() File "blobedit.py", line 30, in __init__ self.blob_cursor = Cursor("blob.tiff") File "c:\python26\Lib\site-packages\GUI\GCursors.py", line 40, in __init__ self._init_from_resource(spec, hotspot) File "c:\python26\Lib\site-packages\GUI\GCursors.py", line 45, in _init_from_resource image = Image(file = find_resource(resource_name)) File "c:\python26\Lib\site-packages\GUI\Resources.py", line 65, in find_resource raise ResourceNotFoundError(name, type, resource_path) GUI.Resources.ResourceNotFoundError: Resource 'blob.tiff' not found in ['c:\\python26\\Lib\\site-packages\\GUI\\Resources'] -------------- next part -------------- A non-text attachment was scrubbed... Name: blobedit.py Type: application/octet-stream Size: 3853 bytes Desc: not available URL: From zoreander at gmail.com Fri Feb 10 09:42:10 2012 From: zoreander at gmail.com (R.S.) Date: Fri, 10 Feb 2012 09:42:10 +0100 Subject: [Pygui] PyQT GUI Threading example Message-ID: I can't find any full example of threading with many threads working and updating GUI (precisely i need QTreeWidget). I can only find: not updating GUI examples, updating GUI examples with one thread. But i just can't find what i need. Could anyone share working example with many threads updating GUI like for example connecting to several www sites and adding the response in a list on QTreeWidget? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrjsmrtn at gmail.com Wed Feb 22 12:55:52 2012 From: jrjsmrtn at gmail.com (Georges Martin) Date: Wed, 22 Feb 2012 12:55:52 +0100 Subject: [Pygui] KeyError: 'CFBundleName' while running PyGUI Cocoa in a VirtualEnv Message-ID: Hello, I got a KeyError: 'CFBundleName' exception when running PyGUI in a VirtualEnv on OS X 10.6.6. PyGUI and the tests are running fine with the system python. Here is the session: $ mkproject pygui (pygui) $ easy_install pyobjc-core pyobjc-framework-Cocoa py2app (pygui) $ wget http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/PyGUI-2.5.3.tar.gz (pygui) $ pip install PyGUI-2.5.3.tar.gz (pygui) $ tar xfz PyGUI-2.5.3.tar.gz && cd PyGUI-2.5.3/Tests (pygui) $ python 01-application.py Traceback (most recent call last): File "01-application.py", line 25, in app = TestApp() File "01-application.py", line 12, in __init__ Application.__init__(self) File "/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/GUI/Application.py", line 47, in __init__ self.ns_init_application_name() File "/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/GUI/Application.py", line 204, in ns_init_application_name if ns_info['CFBundleName'] == "Python": File "/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.6-x86_64.egg/objc/_convenience.py", line 168, in __getitem__objectForKey_ return container_unwrap(res, KeyError, key) File "/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.6-x86_64.egg/objc/_convenience.py", line 634, in container_unwrap raise exc_type(*exc_args) KeyError: 'CFBundleName' Any clues ? Regards, Georges -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.ewing at canterbury.ac.nz Wed Feb 22 23:00:13 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Thu, 23 Feb 2012 11:00:13 +1300 Subject: [Pygui] KeyError: 'CFBundleName' while running PyGUI Cocoa in a VirtualEnv In-Reply-To: References: Message-ID: <4F45656D.3010706@canterbury.ac.nz> Georges Martin wrote: > I got a KeyError: 'CFBundleName' exception when running PyGUI in a > VirtualEnv on OS X 10.6.6. PyGUI on MacOSX assumes it's running on a framework installation of Python, in which the Python executable is actually inside an app bundle. I have no experience with virtualenv, but it looks like you're either running a non-framework Python or the virtualenv is making it look that way to MacOSX. You could try changing this line in Application.py: if ns_info['CFBundleName'] == "Python": to something like: if ns_info.get('CFBundleName') in ("Python", None): and see if it helps. If it does, let me know and I'll incorporate it into the next release. -- Greg