[pygtk] gnome options

2011-04-05 Thread Yann Le Boulanger
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 accept unknown command line options. So I'm sea

Re: [pygtk] gtk_accel_groups_activate ()

2008-12-31 Thread Yann Le Boulanger
"Iakov Davydov" a écrit : > Hello. > > The short form of question: > where the gtk_accel_groups_activate () gone? > http://www.gtk.org/api/2.6/gtk/gtk-Keyboard-Accelerators.html#gtk-accel-groups-activate > > The complete description: > There is a problem in Gajim I am trying to fix. There is a

[pygtk] GTK Warning with modelfilter

2007-03-28 Thread Yann Le Boulanger
Hi all, I have a GTK Warning saying that: GtkWarning: gtk_tree_model_filter_iter_has_child: assertion `filter->priv->stamp == iter->stamp' failed if iter and self.modelfilter.iter_has_child(iter): the pygtk code before this line is this one: try: iter = self.modelfilter.convert_child_iter_

Re: [pygtk] treemodel problems

2007-03-25 Thread Yann Le Boulanger
Christopher Cole wrote: > hey all, i'm confused as to why the following code doesn't work, > this seems like the most basic thing you could do for a treeview, > yet i don't see any text from my model being displayed when it's run: > you have to create a renderer per column, and you also have to t

Re: [pygtk] image and text in button

2007-01-23 Thread Yann Le Boulanger
Tim Evans wrote: > Yann Le Boulanger wrote: >> I attached a very simple exemple that adds text and an image in a >> button. This code works under linux (evert GTK version) but not under >> windows (GTK2.10.6 / pygtk2.10.3). Ttext is displayed, but not image. >> >>

[pygtk] image and text in button

2007-01-22 Thread Yann Le Boulanger
I attached a very simple exemple that adds text and an image in a button. This code works under linux (evert GTK version) but not under windows (GTK2.10.6 / pygtk2.10.3). Ttext is displayed, but not image. Do I use button badly or is it a win32 bug ? -- Yann import gtk w = gtk.Window() b = gtk

[pygtk] HButtonBox and homogeneous

2007-01-17 Thread Yann Le Boulanger
Hi all, When I add 2 button in a HButtonBox, both have the same size, even if text in first button is smaller than text in second one. buttonbox.get_homogeneous() returns False. Same behaviour if I add buttons with buttonbox.add(button) or buttonbox.pack_start(button, False) Is it a known bug ?

Re: [pygtk] Statusbar memory leak?

2007-01-09 Thread Yann Le Boulanger
Tony Nelson wrote: > Does the statusbar (in pygtk 2.10.3 gtk 2.10.4 python 2.4.4 FC6) leak > memory? I didn't see anything in pygtk's bugzilla. > it has been fixed in GTK 2.10.7. see bug #364868 -- Yann ___ pygtk mailing list pygtk@daa.com.au http:

Re: [pygtk] Cloning Glade notebook tabs?

2006-01-31 Thread Yann Le Boulanger
John Pye wrote: Hi all I have a GUI which has a 'notebook' with two fixed tabs that stay there all the time. I want to add extra 'templated' tabs at the end of the notebook, at runtime. If I want to define the template for the 'extra' tabs in Glade, how to I go about adding those tabs at runtim

Re: [pygtk] Determining window position..

2005-12-19 Thread Yann Le Boulanger
Rob Marino wrote: Hi and xmas greetings to all. Quick question. I'm writing an app in which I would like to store the last position of the window on the screen in a config file. I've tried calling window.get_position() on my gtk window,but this always returns (0,0) regardless of the actual

Re: [pygtk] threading

2004-08-28 Thread Yann Le Boulanger
So this didn't work? === thr = GajimThread('gt') thr.start() while thr.isAlive() thr.join(timeout=0.1) time.sleep(2) print "core" === This works, but it's not what I want : I doesn't want the main thread (core.py) to stop when I close the second thread. What I want is that when the

[pygtk] pixbufAnimation in a treeview

2004-05-17 Thread Yann Le Boulanger
Hi, Is there a way to show a gtk.gdk.PixbufAnimation in a treeview ? It seems that putting it in a gtk.CellRendererPixbuf doesn't work. Do I have to write a gtk.GenericCellRenderer ? thank's for help Asterix signature.asc Description: OpenPGP digital signature

Re: [pygtk] question about pygtk, win32, i18n and bidi

2004-05-17 Thread Yann Le Boulanger
Johan Dahlin wrote: _translation = gettext.translation(APP, DIR) gtk.glade.bindtextdomain (APP, DIR) gtk.glade.textdomain (APP) def _(s): if s == '': return s assert s return _translation.gettext(s) This is busted. should only be: _ = gettext.translation(APP

Re: [pygtk] color of selected row in TreeView

2004-03-29 Thread Yann Le Boulanger
David M. Cook wrote: On Sun, Mar 28, 2004 at 07:08:07PM -0500, Yann Le Boulanger wrote: I'd like to change the color of selected row in a treeview. As CellRenderer and TreeIter are not Widgets, I can't use style.bg[gtk.STATE_SELECTED] Is there a solution ? You can do that for

[pygtk] color of selected row in TreeView

2004-03-28 Thread Yann Le Boulanger
Hi I'd like to change the color of selected row in a treeview. As CellRenderer and TreeIter are not Widgets, I can't use style.bg[gtk.STATE_SELECTED] Is there a solution ? Thanks for help Asterix ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa