[pygtk] Signal order

2007-07-09 Thread Yann Leboulanger
Hi, Here is the senario. I have a treeview and a entry. I write some text in the entry. Then I click on the treeview to change the row. The problem I have is that the cursor_changed signal of the treeview is emited BEFORE the focus_out_event signal of the entry. I don't really understand this

Re: [pygtk] treeview w/ markup

2007-09-27 Thread Yann Leboulanger
John Hunter wrote: I have a simple treeview and list store, and want to make certain cell/row combinations red ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

[pygtk] modelfilter + expand attribute

2007-10-25 Thread Yann Leboulanger
Hi all, I have a treeview with rows and sub-rows. This treeview gets his data in a treemodelFilter. Now I collapse rows in thee treeivew, then, I run modelfilter.refilter() Problem appears: rows that I collapsed are now expanded. Is it a bug in GTK or normal behavior? Is there a way to change

Re: [pygtk] Trouble with TreeViews

2007-11-11 Thread Yann Leboulanger
Caleb Marcus a écrit : I've read those, but I can't quite understand how to get it to work. I've attached a glade XML file and a Python file that I'm using to test the ability to manipulate TreeViews in Python. I'm just trying to get Column1text into the first column, and the number 2 into the

Re: [pygtk] Flashing widget background

2007-11-24 Thread Yann Leboulanger
Peter Brooks wrote: Hi all, I'm looking to getting widgets in my program to flash, such as ardour does for it's record button. Currently my thinking is to create a new thread to keep changing the background colour. However I'm trying to find out if there's already implementations of this

[pygtk] utf8 validating string

2007-11-30 Thread Yann Leboulanger
Hi, I have a string that a textview can't display. It contains invalid chars: t = Let's check this out.\x00 import gtk tv = gtk.TextView() b = tv.get_buffer() b.set_text(t) __main__:1: GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed but when I

Re: [pygtk] utf8 validating string

2007-11-30 Thread Yann Leboulanger
John Ehresman wrote: Yann Leboulanger wrote: Hi, I have a string that a textview can't display. It contains invalid chars: t = Let's check this out.\x00 import gtk tv = gtk.TextView() b = tv.get_buffer() b.set_text(t) __main__:1: GtkWarning: gtk_text_buffer_emit_insert: assertion

Re: [pygtk] [Fwd: PyGTK in Vista?]

2007-12-03 Thread Yann Leboulanger
Rafael Villar Burke a écrit : Sujet: PyGTK in Vista? Expéditeur: Nicklas Larsson [EMAIL PROTECTED] Date: Sat, 1 Dec 2007 07:44:48 +0100 Destinataire: [EMAIL PROTECTED] Destinataire: [EMAIL PROTECTED] Hi, I have tried

Re: [pygtk] utf8 validating string

2007-12-03 Thread Yann Leboulanger
John Ehresman wrote: Yann Leboulanger wrote: I'd like not to have it. But I getthis string by gpg-decodding a message send by Miranda IM. I think it's a bug in their GnuPG implementation, but anyway I'd like my client to detect those bad string and a) print message correctly if I can or b

Re: [pygtk] utf8 validating string

2007-12-03 Thread Yann Leboulanger
John Ehresman wrote: I'm confused here; I think your last example passes '\x0' to a gtk function which does not work. Either remove the '\x0' or do something else with \x0 here. Or am I missing something? removeing the \x0 isn't a problem, a replce can do that, but is it the only char that

Re: [pygtk] get the version of gtk / pygtk used

2008-06-16 Thread Yann Leboulanger
awalter1 a écrit : Hi, I'm working with Linux RedHat EL4. a version of gtk+ was installed with the release RedHat : rpm -qa returns this version. Others more recente versions of gtk+ have been installed from sources : not recognize from rpm. Same things for pygtk. My application is written in

[pygtk] spam?

2008-07-09 Thread Yann Leboulanger
Am I the only one to be spammed by quoll.daa.com.au with mails from pygtk ML from 2007 ? -- Yann ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] popup menu in gtk.statusicon under windows

2008-09-16 Thread Yann Leboulanger
I attached a script that create a gtk.statusicon, and create a menu that is shown when I right click. In this menu, there is a submenu, which contain a second menuitem. The callback of this second menuitem is not called under windows, but it is under linux. Is it a bug in windows ? GTK 2.12.9

Re: [pygtk] gtk_accel_groups_activate ()

2009-01-04 Thread Yann Leboulanger
Gian Mario Tagliaretti wrote: On Wed, Dec 31, 2008 at 9:55 AM, Yann Le Boulanger aste...@lagaule.org wrote: Any idea why this function is not implemented in pygtk? It's in the ignore list in gtk.override, I don't know why though. If you want to remove it from ignore, recompile pygtk

[pygtk] gtk.label + wrapping

2009-01-30 Thread Yann Leboulanger
Hi guys, I have a gtk.Label, filled with a long text. I enabled wrap on this label, so that text is splitted into several lines. The problem is that when I increase window width, the wrapping is not re-computed. I tried to set_line_wrap() to False then True every 2 seconds, but still it's not

Re: [pygtk] gtk.label + wrapping

2009-02-01 Thread Yann Leboulanger
Gian Mario Tagliaretti wrote: On Fri, Jan 30, 2009 at 7:33 PM, Yann Leboulanger aste...@lagaule.org wrote: Hi Yann, I have a gtk.Label, filled with a long text. I enabled wrap on this label, so that text is splitted into several lines. The problem is that when I increase window width

Re: [pygtk] [ANNOUNCE] PyGTK 2.15.0 - unstable

2009-05-03 Thread Yann Leboulanger
Gian Mario Tagliaretti wrote: A new unstable development release of the Python bindings for GTK+ has been released. The new release is available from ftp.gnome.org and its mirrors as soon as its synced correctly: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.15/ Would it be

Re: [pygtk] GTK_IS_WIDGET on subclass of a widget fails

2009-05-22 Thread Yann Leboulanger
Jeffrey Finkelstein a écrit : Kelvin Ho wrote: Have a look at this: http://fuhm.net/super-harmful/ ;) Interesting...so what can _I_ do then? This seems like a problem above me... call HBox.__init__(self), as it was suggested, it will work. ___

Re: [pygtk] ANN: PyGUI 2.1.1

2009-11-19 Thread Yann Leboulanger
John Finlay a écrit : I'm disappointed that I appear to be the only one on this list that finds these announcements objectionable. And contrary to speculation I find them all objectionable (yes that means yours as well Roberto). So far it's been lucky that not all of the hundreds of

Re: [pygtk] announcement policy

2009-11-19 Thread Yann Leboulanger
Alessandro Dentella wrote: On Thu, Nov 19, 2009 at 06:19:31PM +0100, Yann Leboulanger wrote: John Finlay a écrit : I'm disappointed that I appear to be the only one on this list that finds these announcements objectionable. And contrary to speculation I I don't find announcement on PyGTK

[pygtk] Statusicon under Windows 7

2010-01-14 Thread Yann Leboulanger
Hi all, Under windows seven (and probably windows server) gtk.statusicon disappear from systray. Even if we ask Windows to keep it in systay, it stays until we restart the program. Is there something I did badly? I attach a small testcase. -- Yann Leboulanger #!/usr/bin/env python import

Re: [pygtk] can't import gtk

2010-01-25 Thread Yann Leboulanger
Mathew Yeates wrote: here's a snippet. import gtk Thats it! I immediately get the error. So your pygtk installation is not complete most probably. ry re-installing it and its dependances -- Yann ___ pygtk mailing list pygtk@daa.com.au

Re: [pygtk] gtk.Window focus problem

2010-02-07 Thread Yann Leboulanger
Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್) wrote: Dear friends, I have written a small application, which is a very tiny and exits by pressing escape. But I am not able to bring the window on to front on launch. print self.window.is_focus()-- Output is False print self.window.is_active()

Re: [pygtk] gtk.Window focus problem

2010-02-07 Thread Yann Leboulanger
Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್) wrote: On Sun, Feb 7, 2010 at 3:54 PM, Yann Leboulanger aste...@lagaule.org mailto:aste...@lagaule.org wrote: Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್) wrote: Dear friends, I have written a small application, which is a very tiny and exits by pressing

Re: [pygtk] Statusicon under Windows 7

2010-02-09 Thread Yann Leboulanger
Yann Leboulanger wrote: Hi all, Under windows seven (and probably windows server) gtk.statusicon disappear from systray. Even if we ask Windows to keep it in systay, it stays until we restart the program. Is there something I did badly? I attach a small testcase. Nobody uses

Re: [pygtk] Statusicon under Windows 7

2010-02-11 Thread Yann Leboulanger
John Stowers wrote: On Tue, 2010-02-09 at 19:38 +0100, Yann Leboulanger wrote: Yann Leboulanger wrote: Hi all, Under windows seven (and probably windows server) gtk.statusicon disappear from systray. Even if we ask Windows to keep it in systay, it stays until we restart the program

[pygtk] strange behaviour with py2exe

2010-02-22 Thread Yann Leboulanger
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

Re: [pygtk] to make a window with tabs in GLADE

2010-04-23 Thread Yann Leboulanger
varnikat t a écrit : I want to make a window with tabs (not menubar menuitems) like how 'about me' window opens in ubuntu with tabs at top like Contact , Address, Help On clicking on each shows something in the frame below them How to make a window that way in GLADE? Waiting eagerly

Re: [pygtk] pygtk.glade import problem

2010-04-30 Thread Yann Leboulanger
On 04/30/2010 04:28 PM, Krisztian Buza wrote: Dear Colleagues, I am new with Python. I have installed Python (version 2.6), PyGTK and Glade (http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/) under Windows. The import pygtk command works nice (i.e. without error message), but

Re: [pygtk] gtk InfoBar documentation?

2010-06-29 Thread Yann Leboulanger
no attribute 'InfoBar' You need a GTK / PyGTK version 2.18 -- Yann Leboulanger ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] Py2exe + gtk.IconTheme

2010-07-28 Thread Yann Leboulanger
Hi, Do some people here uses Py2exe to package a pygtk application that uses gtk.IconTheme? Recently I switch to gtk.IconTheme in my application, and since this moment, py2exe doesn't work anymore. I did a very very short test application that shows the problem (attached files) If some of

Re: [pygtk] Py2exe + gtk.IconTheme

2010-08-23 Thread Yann Leboulanger
On 07/28/2010 10:52 AM, Yann Leboulanger wrote: Hi, Do some people here uses Py2exe to package a pygtk application that uses gtk.IconTheme? Recently I switch to gtk.IconTheme in my application, and since this moment, py2exe doesn't work anymore. I did a very very short test application

[pygtk] cell_renderers order

2010-10-07 Thread Yann Leboulanger
Hi all, Once you added several renderers into a column, is there a way to get the order of the renderers? I'd like to get renderers with column.get_cell_renderers() then add a renderer in the middle of the list, and re-add them to the column. But to re-add them in the same order as it was

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread Yann Leboulanger
On 10/16/2010 09:00 AM, John Stowers wrote: Hi All, I spent some time updating the windows installers for PyGObject, PyGTK and Pycairo. I would appreciate it if those interested tested these installers before they go on the official GNOME servers. The installers are * PyGObject 2.26 (for

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread Yann Leboulanger
On 10/16/2010 03:01 PM, steve_...@optusnet.com.au wrote: * gtk+-2.22 sees the return of the windows theme! Please test this by setting adding the following line to C:\GTK\etc\gtk-2.0\gtkrc (for example) gtk-theme-name = MS-Windows Tried this, .. it seems to work. things seems

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-28 Thread Yann Leboulanger
On 10/28/2010 12:52 AM, John Stowers wrote: On Sat, 2010-10-16 at 20:00 +1300, John Stowers wrote: Hi All, I spent some time updating the windows installers for PyGObject, PyGTK and Pycairo. Hi All, Thanks for your feedback and testing. I updated the installers again to hopefully correct

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-28 Thread Yann Leboulanger
On 10/28/2010 11:12 AM, Dieter Verfaillie wrote: Hi, Quoting John Stowers john.stowers.li...@gmail.com: Yeah, styles is something different. Can you please run the installer from the console and see if it prints anything else of interest please? What is your target system, etc? Does anyone

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-28 Thread Yann Leboulanger
On 10/28/2010 02:04 PM, Dieter Verfaillie wrote: Hi, Quoting Yann Leboulanger aste...@lagaule.org: I did all that, reinstalled everything, and I still get error on pygobject and pygtk. Funny thing is that if I run the .exe from command line, I don't get error, but a success message and the end

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-28 Thread Yann Leboulanger
On 10/28/2010 02:49 PM, Dieter Verfaillie wrote: Quoting Yann Leboulanger aste...@lagaule.org: On 10/28/2010 02:04 PM, Dieter Verfaillie wrote: I uninstalled everything, removed previously listed folder, installed this pygobject, and still the same error at the end, without any debugging thing

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-28 Thread Yann Leboulanger
On 10/28/2010 03:52 PM, Dieter Verfaillie wrote: Quoting Yann Leboulanger aste...@lagaule.org: Nothing more, still the same thing. Ok, I'm quite sure this is not an issue with the postinstall script itself. I've made 3 new build to make sure. All 3 have their pygobject_postinstall.py

Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-11-02 Thread Yann Leboulanger
On 11/02/2010 10:53 AM, John Stowers wrote: On Thu, 2010-10-28 at 11:52 +1300, John Stowers wrote: On Sat, 2010-10-16 at 20:00 +1300, John Stowers wrote: PyGObject 2.26 (for glib-2.26.0) http://www.johnstowers.co.nz/files/win32/pygobject-2.26.0.win32-py2.6.exe

Re: [pygtk] Testing PyGTK installer for Mac OS X

2011-03-14 Thread Yann Leboulanger
folder + one index.theme in /usr/share/icons/hicolor/ I think it should be installed by your package. Except, once again a great thanks! -- Yann Leboulanger ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Testing PyGTK installer for Mac OS X

2011-03-15 Thread Yann Leboulanger
, but is there a dependancy thing? Could your package depend on a hicolor-icon-theme package? -- Yann Leboulanger ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Testing PyGTK installer for Mac OS X

2011-03-15 Thread Yann Leboulanger
Le 15/03/2011 10:38, Anders F Björklund a écrit : hicolor-icon-theme is the default icon theme that all icon themes automatically inherit from. In practice, all it does is avoid that warning. Since it doesn't include any icons, it would still show the missing image (the doc with red x). So

Re: [pygtk] gnome options

2011-04-21 Thread Yann Leboulanger
On 04/05/2011 11:59 AM, Yann Le Boulanger wrote: Hi, In my PyGTK grogram, I try to use gnome session. I'm able to make gnome start my program on startup, but it launches it with some command line optins like --sm-config-prefix, --sm-client-id, ... The problem is that my application doesn't

Re: [pygtk] gnome options

2011-05-01 Thread Yann Leboulanger
On 04/22/2011 12:03 AM, Robert Schroll wrote: On 04/21/2011 04:37 PM, Yann Leboulanger wrote: But it seems I have to use GOptionContext, but that doesn't seem to exist in PyGTK. OptionContext is in gobject, at least for me (2.21.1). Can't help you with the rest, I'm afraid. Thanks, I didn't

Re: [pygtk] How to clear/delete all values from the gtk.Liststore

2011-12-13 Thread Yann Leboulanger
Le 13/12/2011 16:14, Arun p das a écrit : I am new to pygtk. currently i am doing one application using pygtk and glade. my Question is How to clear/delete all values from the gtk.Liststore. I am using the liststore as model for combobox. http://pygtk.org/docs/pygtk/class-gtkliststore.html

[pygtk] segfault

2012-04-12 Thread Yann Leboulanger
Hi, We are experiencing a strange bug in our application, which result sometimes in a segfault, and sometimes in a freeze of the application. it's related to accel groups. In our application (quite big, and I haven't tried to make a small test case, but if someone is interested I can point

[pygtk] PyGobject set pixbuf value to None

2012-12-18 Thread Yann Leboulanger
Hi, I am trying to port my application to Gobject introspection, and I am facing a problem. I have a TreeModel that contains a GdkPixbuf.Pixbuf in one of its columns. When I try to do: model[iter][PIXBUF_COL] = None I get a Traceback saying: TypeError: Argument 3 does not allow None as a

[pygtk] [GTK3] get background color

2013-01-29 Thread Yann Leboulanger
Hi, I'm trying to get the default / current background color of a textview. The code I do it: context = tv.get_style_context() color = context.get_background_color(Gtk.StateFlags.NORMAL) But that returns a fully transparent color (0,0,0,0) If I first set a custom color with

Re: [pygtk] [GTK3] get background color

2013-01-29 Thread Yann Leboulanger
On 01/29/2013 02:35 PM, Niklas Koep wrote: Sounds like you're trying to retrieve the default colors before the widget has been realized. Consider this (mind you this uses pygtk): No, this is done AFTER the widget is realized. It's done in a textbiffer 'changed' callback, a long time (several

Re: [pygtk] [GTK3] get background color

2013-07-31 Thread Yann Leboulanger
On 07/31/2013 07:33 PM, Timo wrote: Op 31-07-13 13:48, Yann Leboulanger schreef: On 01/29/2013 02:18 PM, Yann Leboulanger wrote: Hi, I'm trying to get the default / current background color of a textview. The code I do it: context = tv.get_style_context() color = context.get_background_color

Re: [pygtk] [GTK3] get background color

2013-08-01 Thread Yann Leboulanger
On 08/01/2013 02:00 AM, Osmo Salomaa wrote: Here is a very simple scrpit that shows the problem. For me it prints: Gdk.Color(red=0.00, green=0.00, blue=0.00, alpha=0.00) For editable text fields, you're probably looking for the *base* color.