Re: [Pythonmac-SIG] Use py2app: GTK+-based application/addinggenerated files/X11
Bill Janssen [EMAIL PROTECTED] wrote: Indeed the folks at http://developer.imendio.com/wiki/Gtk_Mac_OS_X have ported GTK+ 2 to the Mac. I have it on my still-give-it-a-try list. The sources for this have been folded back into the regular GTK+ source tree. But looking at the gtk-dev mailing list, it looks like it's not quite a finished product yet. I managed to build and install the native Mac port of GTK+. They already did a great job. I even got pygtk running on top (had to comment out some X11-specific fuctions). .. But it crashed after some interaction... I think it's a serious option, within half a year or so. Regards, Arjan Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Use py2app: GTK+-based application/adding generated files/X11
David Warde-Farley [EMAIL PROTECTED] wrote: On 22-May-06, at 1:37 PM, Bill Janssen wrote: Note that by default, X11 is not available on a Mac. It's an optional install. Yup, but it's easy enough to direct your users on the download page to install X11 off the Apple CDs. They're not paying anything for Gaphor so they shouldn't whine :) Well said ;-) Lots of projects do this, like Gimp.app, Inkscape and OpenOffice. Gimp.app even themes its GTK to look Cocoa-ish, which is kind of neat. As I said earlier you might also consider putting together a little AppleScript (or PyObjC voodoo) that pops up an error dialog if X11 fails to launch. That brings me back to my last question: * Gaphor generates some files from its setup.py. What's the best way to add those to the application package? I have to add some generated files (one of which is the data model of Gaphor) into the py2app distribution. The file is generated (as part of the build target), but is not added to the .app. What's the proper way to tell py2app to take those files into consideration? Regards, Arjan Dave ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Use py2app: GTK+-based application/adding generated files/X11
Hi, I'm maintainer of Gaphor http://gaphor.sourceforge.net, a UML modeling tool written in Python. Recently I'm trying to build a Mac App for this application. This seems to work for a great deal using py2app (thanks Bob). However, I have a few questions: * Does anyone have experience with packaging GTK+ applications this way? * GTK+ requires X11. How can I start X11? What's the best way to launch Gaphor inside X11? * Gaphor generates some files from its setup.py. What's the best way to add those to the application package? Thanks in advance, Arjan Molenaar ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Use py2app: GTK+-based application/addinggenerated files/X11
Hi Ronald, Ronald Oussoren [EMAIL PROTECTED] wrote: There's also gtk-osx (http://gtk-osx.sourceforge.net/), which is a native port of GTK+. This is a port of GTK+ 1.0, which is not compattible with GTK+ 2. IIRC there's also another port, but the name and homepage escape me at the moment. If have no idea how well these work, but if they do work you'd get something that looks a lot more like a real osx application. Indeed the folks at http://developer.imendio.com/wiki/Gtk_Mac_OS_X have ported GTK+ 2 to the Mac. I have it on my still-give-it-a-try list. Regards, Arjan Ronald On Monday, May 22, 2006, at 10:17AM, David Warde-Farley [EMAIL PROTECTED] wrote: Hiya, Running the shell command open -a X11 || open -a XDarwin Will get X11 started for the majority of users (who have it installed, of course). Documentation of the open command: http://www.hmug.org/man/1/open.php There's also an open-x11 shell command that will start Apple's X11, but not people using XDarwin (which is generally users of 10.2, if I remember correctly). I'm not sure how exactly it behaves if Apple X11 isn't installed. Of course, you want to have some fallback mechanism if this fails (to tell your users something went wrong). Gimp.app installs some custom Carbon event handlers to accomplish this, somehow (see http://gimp- app.sf.net/ ). Dave On 22-May-06, at 2:43 AM, Arjan Molenaar wrote: Hi, I'm maintainer of Gaphor http://gaphor.sourceforge.net, a UML modeling tool written in Python. Recently I'm trying to build a Mac App for this application. This seems to work for a great deal using py2app (thanks Bob). However, I have a few questions: * Does anyone have experience with packaging GTK+ applications this way? * GTK+ requires X11. How can I start X11? What's the best way to launch Gaphor inside X11? * Gaphor generates some files from its setup.py. What's the best way to add those to the application package? Thanks in advance, Arjan Molenaar ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig