Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread David Nečas
On Sat, Feb 06, 2010 at 12:27:47PM +0300, Andrey Nikitin wrote: Explicit main loop iterations are usually a sign of desperation. Really? :) Try to change your example (with finally gtk.main()) to consecutive run several dialogs. You mean something like this?

Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread Andrey Nikitin
Здравствуйте, David Nečas. while True: dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK, message_format='Close me.') dialog.connect('response', response) dialog.show_all() gtk.main() print 'Done!' === You mean

Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread David Nečas
On Sat, Feb 06, 2010 at 12:49:43PM +0300, Andrey Nikitin wrote: while True: dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK, message_format='Close me.') dialog.connect('response', response) dialog.show_all() gtk.main() print 'Done!'

Re: glib *nix signals

2010-02-06 Thread Brian J. Tarricone
On 02/04/2010 11:11 AM, Thomas Stover wrote: I'm looking for some notes / advise on catching SIGTERM in a glib main loop based program. Mainly on linux, but other kernels would be nice. This article: http://www.linuxjournal.com/article/2121 for instance, recommends masking all signals

Varun Shrivastava wants to stay in touch on LinkedIn

2010-02-06 Thread Varun Shrivastava
LinkedIn GTK, I'd like to add you to my professional network on LinkedIn. - Varun Shrivastava Confirm that you know Varun Shrivastava https://www.linkedin.com/e/isd/1052891302/g4bk5Nka/ -- (c) 2010, LinkedIn Corporation___

[cairo] Pango font thickness

2010-02-06 Thread Edder
Hi all, I am trying to make a simple plotting library using cairomm and pangomm. Currently I have problems with the fonts though. Using pangomm I always get very thick fonts, while I want thin fonts. I tried playing around with font weight etc, but this only has minimal effect. I also played

Re: [cairo] Pango font thickness

2010-02-06 Thread Edder
On Sat, Feb 6, 2010 at 4:43 PM, mpsuz...@hiroshima-u.ac.jp wrote: Hi, Although I've never played with cairomm/pangomm, but your report sounds interesting. I think the handling of weight info in Pango is backend specific; please find pangoatsui-fontmap.c, pangofc-fontmap.c,

Re: [cairo] Pango font thickness

2010-02-06 Thread mpsuzuki
Hi, Thank you for sending sample picture. Oops, I ought to have find that your sample code using stroke operator of cairo. I think the issue you report is not font selection - the heavy weight you got is because the path of the glyph outline is drawn by the thick line. If you generate a PDF by

Re: [cairo] Pango font thickness

2010-02-06 Thread Edder
On Sat, Feb 6, 2010 at 6:08 PM, mpsuz...@hiroshima-u.ac.jp wrote: Hi, I'm unfamiliar with APIs of cairomm, but I guess there might be some show like operator that renders the font strictly. Please search for it, or tune the width of line to thin. Thanks! Replacing

Varun Shrivastava wants to stay in touch on LinkedIn

2010-02-06 Thread Varun Shrivastava
LinkedIn Varun Shrivastava requested to add you as a connection on LinkedIn: -- Nicola, I'd like to add you to my professional network on LinkedIn. - Varun Shrivastava Accept invitation from Varun Shrivastava

Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Yann Leboulanger
Yann Leboulanger wrote: Ken Resander wrote: Odd, you seem to be getting 0 for both the Ctrl key and letter-C key. If the keyboard works and you can use it for other applications, then keypresscallback really should return non-zero character code values. I don't know pygtk, but if there

How to use GIOChannel to write binary data

2010-02-06 Thread silverburgh
Hi, In the gio channel, http://library.gnome.org/devel/glib/stable/glib-IO-Channels.html#g-io-channel-write, there are these api to write characters g_io_channel_write_chars g_io_channel_write_unichar But why there is no api to write binary data? How can i use GIO channel to write non-character

Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Ken Resander
Hi Yann, I cannot think of anything else. If all Russian keyboards are like the one tried, then just change the documentation in Russian to Ctrl+Cyrillic_es instead of Ctrl+C used on keyboards that have a key marked 'C'. After all it works. Ken --- On Sun, 7/2/10, Yann Leboulanger

Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Yann Leboulanger
Ken Resander wrote: Hi Yann, I cannot think of anything else. If all Russian keyboards are like the one tried, then just change the documentation in Russian to Ctrl+Cyrillic_es instead of Ctrl+C used on keyboards that have a key marked 'C'. After all it works. Ken \That's not a