Re: [pygtk] Setting GTK locale

2010-12-03 Thread Fredrik Corneliusson
Thanks Dieter! Just tested and it finally worked when I used "_putenv" function in your lib to set the language. Great stuff! Fredrik On Fri, Dec 3, 2010 at 2:46 PM, Dieter Verfaillie wrote: > Quoting "Fredrik Corneliusson" : >> >> I'm localizing a PyGT

[pygtk] Setting GTK locale

2010-12-03 Thread Fredrik Corneliusson
Hi, I'm localizing a PyGTK application (win32 & py2exe). As my target audience is multilingual and might not want to have the user interface language set to the system default I have made it configurable. This works for the custom strings in my application but not for the built in GTK messages. Yo

[pygtk] pygtk.org unreliable

2009-03-31 Thread Fredrik Corneliusson
Hi, Just to let you know, the last couple of days the pygtk.org site has been unreliable. Have others experienced this as well and in that case is someone looking into it? Regards, Fredrik ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/m

[pygtk] How to get/set gtk.IMContext

2008-05-26 Thread Fredrik Corneliusson
Hi, I'm trying to modify input method for a text view but I cant find any way to get the current input method for the widget from pyGTK. It this not exposed by the PyGtk bindings? Regards, Fredrik ___ pygtk mailing list pygtk@daa.com.au http://www.daa.

Re: [pygtk] py2exe and pygtk issues

2008-05-19 Thread Fredrik Corneliusson
Hi, I use this small bat (rename buildDOTbat to build.bat) file to handle the copying of the necessary GTK files and do the py2exe build. It assumes GTK runtime is installed in "C:\GTK". BTW, why do you explicitly exclude the "gtk" and "gtk.glade" modules? I've updated the "setup.py" to look more

[pygtk] Add global event handler

2008-03-12 Thread Fredrik Corneliusson
Hi Folks, I want to add a function similar to MS Windows Alt keycodes ("http://en.wikipedia.org/wiki/Windows_Alt_keycodes";) to be able to enter special characters in any widget. Now I've added event handler for the main window but my application uses multiple windows (search/replace etc.) and I w

[pygtk] Getting text direction for BIDI content.

2007-09-03 Thread Fredrik Corneliusson
Hi, I sent this question to the GTK list a couple of days ago, but did not have any luck so I thought I give this list a try also, hope you do not mind the cross post. --- Hi, I need to know when a TextBuffer mark enters a different text direction. I tied to get the text direction

[pygtk] UI to edit accelerators

2007-08-01 Thread Fredrik Corneliusson
Hi, I would like to add support for customizing the keyboard accelerators for an pygtk application that uses UI manager and ActionGroup. I know about "gtk.accel_map_save" and "gtk.accel_map_load" so I figure I just need to write a nice UI so users can manipulate that file. But it seems to be a pret

Re: [pygtk] Row number column

2007-05-09 Thread Fredrik Corneliusson
Thanks Osmo, worked like a charm! /Fredrik On 5/9/07, Osmo Salomaa <[EMAIL PROTECTED]> wrote: ti, 2007-05-08 kello 10:59 +0200, Fredrik Corneliusson kirjoitti: > I wonder about the best way to add row numbers to a gtk.TreeView with > a gtk.ListStore model. I believe the best way

[pygtk] Row number column

2007-05-08 Thread Fredrik Corneliusson
Hi, I wonder about the best way to add row numbers to a gtk.TreeView with a gtk.ListStore model. Is there any built in support for this in GTK or do I have to create my own enumerate column and recalculate all values when ordering changes? Regards, Fredrik

Re: [pygtk] Thai text display problem

2007-04-24 Thread Fredrik Corneliusson
Hi, This is probably the same Win32 GTK problem (Pango build issue) as I had with complex scripts (Arabic in my case). See this thread for reference: http://mail.gnome.org/archives/gtk-list/2007-March/msg00019.html Please try the latest Glade win32 installer (Gtk+ 2.10.11) and see if it fixes yo

Re: [pygtk] Question about TextTag wrap-mode property

2007-03-23 Thread Fredrik Corneliusson
Thanks John! Unfortunately it seems what I want it not possible with gtkTextView: http://mail.gnome.org/archives/gtk-list/2003-July/msg00150.html. But it seems I'm not the only one that would need it. /Fredrik On 3/22/07, John Ehresman <[EMAIL PROTECTED]> wrote: Fredrik Corneli

Re: [pygtk] Question about TextTag wrap-mode property

2007-03-22 Thread Fredrik Corneliusson
I'm trying to have protected xml-tags in the paragraphs and I don't want the tags to wrap. This is to ease editing content that is bidi. Having them in separate paragraphs is not an option. thanks, Fredrik On 3/22/07, John Ehresman <[EMAIL PROTECTED]> wrote: Fredrik Cornelius

[pygtk] Question about TextTag wrap-mode property

2007-03-22 Thread Fredrik Corneliusson
Hi, I'm not able to figure out why gtk.TextTags wrap-mode is only respected if it is set at the beginning of a paragraph. What I'm trying to achieve is to have some parts of a paragraph text have other wrapping then the rest. See attached screen dump and test script that shows my problem. I've t

Re: [pygtk] Text Tag "direction" property not respected?

2007-03-12 Thread Fredrik Corneliusson
would guess this is a bug (or feature)! If you insert the text starting with a letter, it works like it should. But numbers and hyphen (maybe more) at the beginning are ignored. Bye, Volker Original-Nachricht Datum: Fri, 9 Mar 2007 11:32:54 +0100 Von: "Fredrik Corneliuss

[pygtk] Text Tag "direction" property not respected?

2007-03-09 Thread Fredrik Corneliusson
Hi, I have a BIDI question regarding the Text Tag property "direction". It says in the documentation it can be set to TEXT_DIR_LTR, TEXT_DIR_RTL or TEXT_DIR_NONE. However I cant detect that it makes any difference. The only way I can get the desired behaviour is using Unicode directional markers b

Re: [pygtk] Arabic text display problem

2007-03-08 Thread Fredrik Corneliusson
Tor Lillquist found the issue, it was the GTK runtime I was using (gladewin32.sourceforge.net) that was not built with win32 Uniscribe support. I tried his build and it did not have this problem. Regards, Fredrik On 2/23/07, Fredrik Corneliusson <[EMAIL PROTECTED]> wrote: Sorry for not

Re: [pygtk] Large textview textbuffers files

2007-02-28 Thread Fredrik Corneliusson
Hi, I know gtk-textview has performance issues with long lines. It is not the amount of data that makes it sluggish just 20k of chars without newlines is enough. I think it has been reported as a bug for GTK but it would require big changes to how text rendering works so no one has been willing to

Re: [pygtk] Threaded PYgtk apps and gtk.main_quit()

2007-02-23 Thread Fredrik Corneliusson
Hi, If you are targeting win32 I would suggest using "gobject.idle_add(...)" instead if you want to update GTK UI from sub threads. See these FAQ entries for more info: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.001.htp http://www.async.com.br/faq/pygtk/index.py?req=show&file=

[pygtk] Arabic text display problem

2007-02-22 Thread Fredrik Corneliusson
Hi all, I got a problem with displaying Arabic text correctly. The problem is the shaping of the characters that should differ depending on the position where the character occurs (beginning,middle,ending). Now they are all displayed as they are separate. I have tested on Win32 and Linux (Ubuntu)

[pygtk] gtk.MessageDialog not transiente on win32

2007-02-05 Thread Fredrik Corneliusson
Hi, It seems GTK's message dialog (gtk.MessageDialog) does not work as expected on win32 as it does not stay on top if it's parent window (but it's still modal and locks the parent). Any hints on where the right place to report this bug is? Both pygtk and gtk is affected. Tested with gladewin32 2.

[pygtk] Show glyphs for white space characters

2007-01-15 Thread Fredrik Corneliusson
Hi, Is it possible to show white space characters as glyphs in a text view in the same way a word processors does? e.g non breaking space, tabs, newlines/paragraphs? Regards, Fredrik ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailma

[pygtk] Default encoding altered by pygtk?

2006-11-16 Thread Fredrik Corneliusson
Hi, I have a question related to GTK and encoding. I'm working on a pygtk app that's connecting to a server and uses urlencode, if I just try to encode strings with unicode characters I get UnicodeEncodeError from urlencode by default. But if I import gtk before doing the conversion it looks like