[pygtk] pygtk applet Menu trouble

2006-06-02 Thread Jay Graves
was hoping someone could tell my what I am doing wrong, and what the proper way to achieve this is. Thanks -- Jay Graves [EMAIL PROTECTED] jay.skabber.com #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk import gnomeapplet import gobject menu = gtk.Menu() def refresh(theMenu

Re: [pygtk] TreeList check boxes

2003-03-07 Thread Jay Graves
this. On Thu, Mar 06, 2003 at 10:56:53PM -0800, David M. Cook wrote: On Thu, Mar 06, 2003 at 11:40:03PM -0700, Jay Graves wrote: self.col2.connect('toggled',self.toggle) You want to connect to the renderer, not the column: cell = gtk.CellRendererToggle() cell.connect(toggled, self.toggle

Re: [pygtk] TreeList check boxes

2003-03-07 Thread Jay Graves
I just wanted to fix my mistake here for posterity. the model is passed as a 3rd param if you pass the model when you connect to the renderer. the pygtk examples are my friend. On Fri, Mar 07, 2003 at 01:20:29PM -0700, Jay Graves wrote: Oops I guess I should have read James' reply a bit more

[pygtk] TreeList check boxes

2003-03-06 Thread Jay Graves
= gtk.TreeViewColumn(allow,gtk.CellRendererText()) I have tried putting text=2 in the col2 gtkTreeViewColumn but that just displays 'False' in the TreeView Am I on the right track or way off base? Does anyone know how to achieve this? Thanks -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__

Re: [pygtk] TreeList check boxes

2003-03-06 Thread Jay Graves
the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__ _/`.\ `=( ' pgp0.pgp Description: PGP signature

Re: [pygtk] pygtk import problem

2003-01-19 Thread Jay Graves
. Instead it looks for /usr/lib/python2.2/site-packages/gtk-2.0/gtk.so On Sun, Jan 19, 2003 at 11:47:54AM -0200, Christian Reis wrote: On Sat, Jan 18, 2003 at 05:41:39PM -0700, Jay Graves wrote: no problem, works great. However on machine 2 the same code fails on the import gtk I get

[pygtk] pygtk import problem

2003-01-18 Thread Jay Graves
a ImportError: No module named gtk. have compared the /usr/lib/python2.2/site-packages/ dir's on both machines and they are identicle. What else might be the problem that the gtk module is not found on machine 2? -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__

[pygtk] pygtk Gnome2 errors

2002-11-18 Thread Jay Graves
-program.c: line 869 (gnome_program_locate_file): assertion `program != NULL' failed (test:32569): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion `_gtk_accel_path_is_valid (accel_path)' failed Am I missing a critical piece? Thank you. -- Jay Graves [EMAIL

Re: [pygtk] pygtk Gnome2 errors

2002-11-18 Thread Jay Graves
Yes. If you are using GNOME widgets in your glade interface, you must initialise GNOME. Add the following to the startup of your program: import gnome.ui gnome.init('program-name', 'version') Thanks a ton, works like a charm now. -- Jay Graves [EMAIL PROTECTED] jay.skabber.com

Re: [pygtk] error messages

2002-11-08 Thread Jay Graves
is why I ask. I was not able to install 1.99.13 the ./configure script fails when checking for GLIB = 2.0.0 This is on a Debian Sid system with Gnome 2 installed -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__ _/`.\ `=( ' msg04770/pgp0.pgp Description: PGP

Re: [pygtk] error messages

2002-11-03 Thread Jay Graves
On Sun, Nov 03, 2002 at 08:46:28PM -0200, Christian Reis wrote: On Fri, Nov 01, 2002 at 03:11:29PM -0700, Jay Graves wrote: import pygtk, gnome pygtk.require('2.0') import gtk, gtk.glade then gnome.init() is not a valid method perhaps import gnome.ui before? (i'm curious because i

Re: [pygtk] error messages

2002-11-01 Thread Jay Graves
, gnome pygtk.require('2.0') import gtk, gtk.glade then gnome.init() is not a valid method -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__ _/`.\ `=( ' msg04688/pgp0.pgp Description: PGP signature

[pygtk] error messages

2002-10-31 Thread Jay Graves
close the window? I have attached the app the glade file and a file with the list of errors. Thanks for your help -- Jay Graves [EMAIL PROTECTED] jay.skabber.com O__ _/`.\ `=( ' (test:1124): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GObject' (test