From olof.bjarnason at gmail.com Fri Jan 8 09:59:36 2010 From: olof.bjarnason at gmail.com (Olof Bjarnason) Date: Fri, 8 Jan 2010 09:59:36 +0100 Subject: [Pygui] PythonIUP as a "driver" for PyGUI? Message-ID: I friend of mine is wrapping the C-library IUP (Portable User Interface reversed) to the .NET platform. I thought maybe creating .pyd-files for Win/Linux/Mac would be a nice "driver-system" for PyGUI. IUP has much the same philosophy of fast&lightweight like PyGUI. It uses types sparsely, eg. only strings, ints and doubles are used to access things (strings acts as selectors for properties). My idea is working with IUP+Python to build a "low-level" python-driver for IUP. Then, PyGUI might be interested in build on top of that? The IUP project page: http://www.tecgraf.puc-rio.br/iup/ My friend has still not published his work, but if you think this sounds interesting I'll let you know when he's ported the full IUP API. Cya, -- twitter.com/olofb olofb.wordpress.com From sidney at sidney.com Sat Jan 9 00:14:25 2010 From: sidney at sidney.com (Sidney Markowitz) Date: Sat, 09 Jan 2010 12:14:25 +1300 Subject: [Pygui] PyGUI under Snow Leopard? Message-ID: <4B47BC51.2080606@sidney.com> I tried to install PyGUI and run the BlobEdit demo on a Mac that is running Snow Leopard. One of my Macs has python 2.6.4 installed from MacPorts. The other has python 2.6.4 from python.org. On both of them, to get PyObjC I had to install it and got the latest version, which is 2.2. The PyGUI web page says that it has only been tested with PyObjC 1.2. I think that I saw somewhere that the version of PyObjC that comes with the system in Leopard is 2.0. I don't know what the system version is in Snow Leopard. Is PyGUI supposed to work in Snow Leopard or does something have to be changed before it can work with a newer version of PyObjC? Is there a way to get the existing version of PyGUI running in one of my configurations? The end of the traceback when I try to run BlobEdit looks like File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyGUI-2.1.1-py2.6.egg/GUI/Cocoa/Applications.py", line 228, in class _PyGui_NSApplication(NSApplication): BadPrototypeError: Objective-C expects 1 arguments, Python argument has 1 arguments for Thanks, Sidney Markowitz http://sidney.com From danchr at gmail.com Sat Jan 9 09:07:43 2010 From: danchr at gmail.com (Dan Villiom Podlaski Christiansen) Date: Sat, 9 Jan 2010 09:07:43 +0100 Subject: [Pygui] PyGUI under Snow Leopard? In-Reply-To: <4B47BC51.2080606@sidney.com> References: <4B47BC51.2080606@sidney.com> Message-ID: <8D97EA24-7798-4A93-92AA-54379F7342AA@gmail.com> On 9 Jan 2010, at 00:14, Sidney Markowitz wrote: > Is PyGUI supposed to work in Snow Leopard or does something have to be changed before it can work with a newer version of PyObjC? Is there a way to get the existing version of PyGUI running in one of my configurations? Indeed, PyGUI doesn't work on Snow Leopard. I fixed this in my Mercurial mirror of PyGUI in changeset 76daab77c864,[1] also attached below. [1] https://bitbucket.org/danchr/pygui/changeset/76daab77c864/ -- Dan Villiom Podlaski Christiansen danchr at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: pygui-76daab77c864.diff Type: application/octet-stream Size: 2011 bytes Desc: not available URL: -------------- next part -------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1943 bytes Desc: not available URL: From sidney at sidney.com Sat Jan 9 21:14:34 2010 From: sidney at sidney.com (Sidney Markowitz) Date: Sun, 10 Jan 2010 09:14:34 +1300 Subject: [Pygui] PyGUI under Snow Leopard? In-Reply-To: <8D97EA24-7798-4A93-92AA-54379F7342AA@gmail.com> References: <4B47BC51.2080606@sidney.com> <8D97EA24-7798-4A93-92AA-54379F7342AA@gmail.com> Message-ID: <4B48E3AA.2030004@sidney.com> Dan Villiom Podlaski Christiansen wrote, On 9/1/10 9:07 PM: > I fixed this in my Mercurial mirror of PyGUI in changeset > 76daab77c864,[1] also attached below. Thanks, I cloned your Mercurial mirror and that works! I do have a Python beginner's question about it. The changeset replaces calls to self.dispatch_to_app with calls to self.pygui_app.dispatch. But as far as I can tell all self.dispatch_to_app did was check if self.pygui_app exists and if it does call self.pygui_app.dispatch passing on its arguments. So what about this changeset makes any difference to how it runs other than skipping the error check for whether self.pygui_app is set? -- Sidney Markowitz http://sidney.com From randyregisters at gmail.com Mon Jan 18 09:03:55 2010 From: randyregisters at gmail.com (Fake Account) Date: Mon, 18 Jan 2010 00:03:55 -0800 Subject: [Pygui] BlobEdit Py2App not working Message-ID: <7f9b72ad1001180003h23696246r43da5802084b4105@mail.gmail.com> Hello, Every time I try to compile an application using py2app (such as the BlobEdit example) I receive the following error: blobedit Error An unexpected error has occurred during execution of the main script ImportError: No module named GUI Does anyone have any idea why this may be happening? I've been trying to figure it our from the py2app page, but the documentation is kind of thin. I'm on Mac OSX 10.5.4. Any help will be appreciated. -Randy -------------- next part -------------- An HTML attachment was scrubbed... URL: