Re: [pygtk] Problems with gdkpixbuf

2003-01-15 Thread John Finlay
Robert Lowe wrote: What would a valid code snippet look like that was using pygtk to load an image file? Try: pixbuf = gtk.gdk.pixbuf_new_from_file(imagefilename) John ___ pygtk mailing list [EMAIL PROTECTED]

[pygtk] instance.__dict__ disappears with many widgets

2003-01-15 Thread Ava Arachne Jarvis
I'm using python 2.2 and pygtk 1.99.14, gtk 2.2.0 and friends. I'm running across an odd problem when I use a large number of widgets, and some of them are ones that inherit from original gtk widgets. When first created, these objects seem intact; however, the first time a signal callback is

[pygtk] custom CellRendererText

2003-01-15 Thread David M. Cook
Has anyone tried to create their own custom cell renderer in python? In particular, I'd like to extend CellRendererText so I can add signals to the CellEditable. But it looks like I'd have to reimplement lots of CellRendererText in python. I suppose the other option would be to modify the C

Re: [pygtk] instance.__dict__ disappears with many widgets

2003-01-15 Thread Ava Arachne Jarvis
[Ava Arachne Jarvis - Wed, 15 Jan 2003 05:25:54 AM CST] I'm attaching a version of the program that I stripped down to about 50 lines. Instruction for running this: It would help if I attached the program. Heh. Sorry. -- | BOFH excuse #105: | | UPS interrupted the server's power

[pygtk] Question bout image possitioning in PyGTK

2003-01-15 Thread Pawel J. Maczewski
Hello, I got a question bout possitioning images on the surface of the widget. I'd like to load an image to a widget and then display a few littler images on it. Is it possible, using Pygtk, to set an exact possition of them? regards, Kender -- Pawel J. Maczewski @ HIL reg.linux

Re: [pygtk] GtkClipboard

2003-01-15 Thread James Henstridge
Johan Dahlin wrote: tis 2003-01-14 klockan 23.51 skrev John Finlay: These aren't implemented in PyGTK 1.99.x - what's the reason? Are they likely to be implemented in the future? A comment in gtk-types.defs seems to indicate GTK+ 2.2. I think it's mainly because missing GTK_TYPE_*

Re: [pygtk] more interesting behavior with selections, treeviewsand scrolling

2003-01-15 Thread Andrew S. Townley
On Wed, 2003-01-15 at 06:33, David M. Cook wrote: On Tue, Jan 14, 2003 at 10:20:32PM +, Andrew S. Townley wrote: This time I've included an example of what I'm trying to do. It serves to illustrate both my previous double selection signal issue as well as something different. One

[pygtk] Gtk-WARNING **: Whoever translated default:LTR did so wrongly

2003-01-15 Thread Erik Rivera Morales
somebody knows what is this warning and as is solved? Python 2.2.2 (#1, Jan 3 2003, 12:42:27) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type help, copyright, credits or license for more information. import pygtk pygtk.require(2.0) import gtk (:10215): Gtk-WARNING **: Whoever

[pygtk] Pythonian class instances inside a TreeModel

2003-01-15 Thread Roberto Cavada
Hi, the GTK+ FAQ states that user-defined data can be stored inside a GtkTreeModel via a hidden column. How can I associate each row in the TreeModel with a user-defined python class instance? If I use an hidden column in the model, what's the type for that column? Thanks, rob

[pygtk] RFC: Hooks for class creation process

2003-01-15 Thread arjanmolenaar
Hi, I would like to create hooks for the class creation routines. Normally a new (GObject) class is created when gobject.type_register() is called. It would be nice if other modules can add hooks, so interfaces can be initiated and stuff like that. For example: class MyClass(GObject,

Re: [pygtk] Pythonian class instances inside a TreeModel

2003-01-15 Thread Johan Dahlin
ons 2003-01-15 klockan 13.05 skrev Roberto Cavada: Hi, the GTK+ FAQ states that user-defined data can be stored inside a GtkTreeModel via a hidden column. How can I associate each row in the TreeModel with a user-defined python class instance? If I use an hidden column in the model,

Re: [pygtk] instance.__dict__ disappears with many widgets

2003-01-15 Thread John Finlay
I'm guessing that your ColorWidgets are somehow losing info because of loss of references in python but I don't understand how PyGTK handles memory in conjunction with python. I fiddled with your test program and added a list of ColorWdigets to the StyleBox instance - this seemed to fix things

Re: [pygtk] Pango and french

2003-01-15 Thread mc collilieux
Le 14 Jan 2003 20:56:12 -0200 Johan Dahlin [EMAIL PROTECTED] écrivait : tis 2003-01-14 klockan 21.49 skrev mc collilieux: Before inserting data into the liststore, convert them to utf-8. First you need to convert to a unicode object, this can be done like this: obj = unicode(some_string,

[pygtk] set_sensitive gray-out too extreme for gtk.Entry

2003-01-15 Thread george young
[python-2.2.1, gtk-2.1.1 pygtk-1.99.14, linux] How can I change the grey background of an insensitive gtk.Entry? I tried: self.entry = gtk.Entry() map=self.entry.get_colormap() red=map.alloc('red') style=self.entry.get_style().copy()

Re: [pygtk] set_sensitive gray-out too extreme for gtk.Entry

2003-01-15 Thread James Henstridge
george young wrote: [python-2.2.1, gtk-2.1.1 pygtk-1.99.14, linux] How can I change the grey background of an insensitive gtk.Entry? I tried: self.entry = gtk.Entry() map=self.entry.get_colormap() red=map.alloc('red') style=self.entry.get_style().copy()