How can i look gdk-kesysm codes from python

2007-07-17 Thread Ravi kumar Singh
I am using pygtk and want to use key-press events. i have seen all the keycodes in gdk/gdkkeysyms.h but i want to use them in python. i have seen the py-gtk documentation but i am unable to find out the exact class those keycodes are members of Currently i have only one choicei make a

Re: How can i look gdk-kesysm codes from python

2007-07-17 Thread Gian Mario Tagliaretti
2007/7/17, Ravi kumar Singh [EMAIL PROTECTED]: Hi Ravi, I am using pygtk and want to use key-press events. i have seen all the keycodes in gdk/gdkkeysyms.h but i want to use them in python. [...] please tell me which is the exact-class which the keycodes are members of...then i would be

Re: Get position of cursor in widget?

2007-07-17 Thread Cédric Lucantis
Le lundi 16 juillet 2007 12:50, charlesvpacker a écrit : I'm a GTK newbie who has successfully taken the very first steps toward building a custom image processing application. I've figured out how to read and display an image using a GtkImage and GtkPixbuf. I've also modified a block of

gthread vs pthread

2007-07-17 Thread Gregory Hosler
Hi, I've got a gtk+ application that needs a few threads put in it, to open up some bottlenecks. My question is whether I should go pthreads, or gthreads. I've played a bit with pthreads, so I have some familiarity with it. I'm wondering: - whether pthreads and gthreads can co-exist

Re: gthread vs pthread

2007-07-17 Thread Tristan Van Berkom
On Tue, 2007-07-17 at 21:20 +0800, Gregory Hosler wrote: Hi, I've got a gtk+ application that needs a few threads put in it, to open up some bottlenecks. My question is whether I should go pthreads, or gthreads. I've played a bit with pthreads, so I have some familiarity with it. I'm

Re: How do I remove the close button from a window in Fedora Core 5?

2007-07-17 Thread Michael Ekstrand
On Tue, Jul 17, 2007 at 08:44:40AM -0700, Jonathan Cooper wrote: I am not sure why, but the GTK_WIDGET (window)-window is false (which I suspect means I am actually getting a NULL value for g_type_instance_cast() which is used by the GTK_WIDGET macro). Since the Gtk::Window::gobj() function

Graphing widget (oscilloscope-like)?

2007-07-17 Thread david . hagood
Disclaimer: I am new to GTK programming. I'm looking for a widget which can display an oscilloscope-like display: that is, a drawable surface with an overlaid graticule of horizontal and vertical lines, plus zero or more traces consisting of a set of connected line segments defined by an array of

RE: How do I remove the close button from a window in Fedora Core5?

2007-07-17 Thread Jonathan Cooper
Thank you very much, Michael! That did the trick. It was rather simple, I just didn't expect that the window wasn't realized since this same code worked fine on FC6. I just had to connect to signal_realize...and then put the code to remove the close button into the signal handler. Thanks

Re: gthread vs pthread

2007-07-17 Thread Chris Vine
On Tue, 2007-07-17 at 09:53 -0400, Tristan Van Berkom wrote: On Tue, 2007-07-17 at 21:20 +0800, Gregory Hosler wrote: Hi, I've got a gtk+ application that needs a few threads put in it, to open up some bottlenecks. My question is whether I should go pthreads, or gthreads.

Fonts problem

2007-07-17 Thread Matthew Jiang
Hi, When I ran GTK demo application on my ARM board, I got this error message and the application crashed: (buttons:159): Pango-WARNING **: No builtin or dynamically loaded modules were found. Pango will not work correctly. This probably means there was an error in the creation of:

Re: Fonts problem

2007-07-17 Thread Luis A. Montes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Jiang wrote: Hi, When I ran GTK demo application on my ARM board, I got this error message and the application crashed: (buttons:159): Pango-WARNING **: No builtin or dynamically loaded modules were found. Pango will not work

g_io_win32_dispatch yields condition=0

2007-07-17 Thread Dov Grobgeld
I'm investigating a problem under windows that appears to be a missed event. My test viewer application is built as follows: 1. A top level widget with a GtkImage widget that shows an image. 2. The program also listens to http requests through the gnet library and allows to remote control the

glib2 and pthread on solaris

2007-07-17 Thread Michael Weiser
Hi there, how well tested is the following part of recent (=2.11) glib's configure? *-solaris*) # These compiler/linker flags work with both Sun Studio and gcc # Sun Studio expands -mt to -D_REENTRANT and -lthread # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS

Re: How Tab brings widgets into focus

2007-07-17 Thread Daniel Kasak
On Tue, 2007-07-17 at 22:25 -0700, varun_shrivastava wrote: hi i tried to find out how pressing Tab key brings widgets into focus, but couldn;t find out. For eg if i have created three spin button widget and are held by a container VBox. then pressing tab key switches b/w the spin

Re: How Tab brings widgets into focus

2007-07-17 Thread Yeti
On Tue, Jul 17, 2007 at 10:25:42PM -0700, varun_shrivastava wrote: i tried to find out how pressing Tab key brings widgets into focus, but couldn;t find out. Start at the end of gtk_window_class_init() where add_arrow_bindings() and add_tab_bindings() are called and follow from there... it