Re: [pygtk] py2exe...

2006-04-06 Thread Michael Urban
Remove the pygtk.require('2.0') statement. Should fix the problem. More than 300,000 seals could be killed in Canada this year - most of them babies. Tell Canada's Prime Minister to stop the hunt now! http://go.care2.com/stophunt http://www.Care2.com Free e-mail. 100MB storage. Helps

Re: [pygtk] py2exe...

2006-04-06 Thread John Pye
Hi Michael That helped a bit but I still get a crash with the py2exe'd version. See attached revised attempt. I get this error message: I don't get the error when I run directly with python, so it's something that py2exe is doing... Files attached (remove .txt suffix to try them out)

Re: [Py2exe-users] Re: [pygtk] py2exe...

2006-04-06 Thread John Pye
I have seen that technique with the Inkscape project: copy a whole bunch of DLLs off the c:\GTK\bin directory into the bundled fileset. But I don't see it being used (manually) in the BitTorrent sources. I think that py2exe is managing find and copy the required DLLs (automatically). After my

Re: [Py2exe-users] Re: [pygtk] py2exe...

2006-04-06 Thread John Pye
OK just found a 'helloworld.exe.log' file containing the following text. Seems that *data* files are missing -- which is what you were saying. Will look into copying those off my C:\GTK directory. Cheers JP dist\helloworld.exe:10: PangoWarning: No builtin or dynamically loaded modules were

[pygtk] PyGTK on Mac OS X

2006-04-06 Thread Pierre Thibault
Hello, I am trying to install PyGTK version 2.8.5 on Mac OS X. During 'configure', I have this error: checking for GLIB - version = 2.8.0... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact

Re: [Py2exe-users] Re: [pygtk] py2exe...

2006-04-06 Thread Nikos Kouremenos
try using 2.6 series of GTK. GTK 2.8 is very unstable in Windoz On 4/6/06, John Pye [EMAIL PROTECTED] wrote: OK just found a 'helloworld.exe.log' file containing the following text. Seems that *data* files are missing -- which is what you were saying. Will look into copying those off my C:\GTK

Re: [pygtk] textbuffers and iters

2006-04-06 Thread Nikos Kouremenos
you get the iter, you do stuff on the buffer, when you go to use the iter, it is invalid make it mark or use it before you modify On 4/6/06, Ashi [EMAIL PROTECTED] wrote: hello, i have some problem working with textubffers as folows... GtkWarning: Invalid text buffer iterator: either the

Re: [pygtk] Treeview headers always visible ?

2006-04-06 Thread Nicolas Évrard
* Nicolas Évrard [2006-04-06 17:29 +0200]: Hello, I'd like to know if it is possible to create a treeview with its headers allways visible. At first I thought that using set_headers_visible(True) would work but it did not. Should I somehow grab the event generated when the viewport moves

[pygtk] MySQL and Print callback

2006-04-06 Thread PRINTER PDF
dear friends, I want to create some application dealing with MySQL and Printer device, here is my questions: 1. What kind of widget should I use to display MySQL queries and to add some record to MySQL db? 2. How about callback function to print those query? Let's say there is a button with

Re: [pygtk] PyGTK on Mac OS X

2006-04-06 Thread David M. Cook
On Wed, Apr 05, 2006 at 05:26:27PM -0400, Pierre Thibault wrote: *** Could not run GLIB test program, checking why... Try setting PKG_CONFIG_PATH, e.g. env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig ./configure Dave Cook

Re: [pygtk] PyGTK on Mac OS X

2006-04-06 Thread Pierre Thibault
John Pye a écrit : Hi Pierre I believe people use 'fink' to install PyGTK on OS X. I don't use Mac but that's what I understand. Have you tried that? Cheers JP On fink, glib2 is stable at 2.6.6, the version 2.8.6 is listed unstable. I guess this is not a good idea because I need version

Re: [pygtk] PyGTK on Mac OS X

2006-04-06 Thread Pierre Thibault
David M. Cook a écrit : On Wed, Apr 05, 2006 at 05:26:27PM -0400, Pierre Thibault wrote: *** Could not run GLIB test program, checking why... Try setting PKG_CONFIG_PATH, e.g. env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig ./configure

Re: Re: [pygtk] py2exe...

2006-04-06 Thread Michael Urban
Hi, py2exe is probably trying to bundle the gtk runtime stuff with your app. That doesn't work very well because of the way the way the relative paths are set up. What you want to do is forcefully exclude gtk, and then just copy the gtk tree over after you have run py2exe. Here is a page that

Re: [pygtk] PyGTK on Mac OS X

2006-04-06 Thread Stephen Langer
On Apr 6, 2006, at 4:05 PM, Pierre Thibault wrote: On fink, glib2 is stable at 2.6.6, the version 2.8.6 is listed unstable. I guess this is not a good idea because I need version 2.8.5 or better. Unstable doesn't neccessarily mean unstable. I use lots of unstable packages from fink

[pygtk] style (theme font) and GenericCellRenderer ?

2006-04-06 Thread Danny Milosavljevic
Hi, I'm trying to make one of my cell renderers adhere to the theme font selected. I have something like - style myentry { font_name = Courier New 12 } widget_class *TCellRendererEditLine* style myentry widget_class *CellRendererText* style myentry

[pygtk] Using python objects as DnD data

2006-04-06 Thread Jacob Kroon
Hello, Is there an easy way of doing DnD with a python object as the data being passed? I realize that since DnD can be an interprocess operation, passing memory pointers doesn't make sense, but is there a preferred way to do this? I could just assign the object to a global variable in

[pygtk] Using a CheckButton on an applet Menu

2006-04-06 Thread Adolfo González Blázquez
Hello, I'm writing a gnome applet using pygtk, and I need to add a CheckButton to the applet menu (something like the play item on rhythmbox tray icon context menu). To create the applet menu, i use the method 'setup_menu' [1], which comes in the 'applet' module from python-desktop. What I need