[pygtk] strange behaviour with py2exe
Hi all, My application uses those lines: gtk_icon_theme = gtk.icon_theme_get_default() gtk_icon_theme.append_search_path(DIR) It works well when I run it from command line. Now if I run py2exe on my app, when I run it I have this error: Traceback (most recent call last): File gajim.py, line 157, in module AttributeError: 'gtk.IconTheme' object has no attribute 'append_search_path I use gtk 2.16.5, pygtk 2.16.0, python2.6 Any idea why this error arrives, but only once py2exe'ed? -- Yann ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] Simple threading prevents quitting
Hi, on the Mac the following works fine with both X11 and Quartz: http://www.pygtk.org/pygtk2tutorial/examples/helloworld.py I then added a single line to prepare for simple threading as mentioned on: http://faq.pygtk.org/index.py?req=showfile=faq20.001.htp gobject.threads_init() This changes nothing when using X11, but on a Quartz build gtk.main_quit() no longer exits the process, only SIGKILL does! To narrow it down I also added a single line to: http://library.gnome.org/devel/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD g_thread_init(NULL); This did not exhibit the problem, so it must be something PyGTK does. But I know little about C, so the lines may not be equivalent. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] Making part of a GTK-window transparent and position another window behind
Hello to all, I'm planning to develop a simulation game using panda3D (http://www.panda3d.org/) and pygtk. Unfortunately, it is not possible export an OpenGL-context from panda3D and directly draw on a GTK widget using an OpenGL-extension. So I decided to draw the main window with pygtk, make a part of the window transparent and position the panda3D window behind it. I want the GTK-window to capture all keyboard and mouse inputs. My approach was to use shape_combine_mask (http://www.pygtk.org/docs/pygtk/class-gdkwindow.html#method-gdkwindow--shape-combine-mask) to make the right part of the window transparent. This works like a charme except for one thing: The GTK window isn't only transparent at the desired area; this area seems to be nonexistent, because if I click on this area the panda3D window captures my mouse input. So, is there a way of making parts of a window transparent without making a hole in the window? Using a compositing manager and set_opacity (http://www.pygtk.org/docs/pygtk/class-gtkwindow.html#method-gtkwindow--set-opacity) is no option, because running panda3D makes the composition manager crash and return to normal mode on my target platform. A solution which works on windows (xp and 7) and linux (ubuntu Karmic Koala) would be nice ;-) Thanks, Christoph ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/