[pygtk] GtkColorButton bug

2005-09-04 Thread Alexei Gilchrist
Hi, I've come across a bug with GtkColorButton (with 'use-alpha' turned on): Say I click on the button and select a color on the color wheel and hit OK, then print out the color components with: coltmp=self.colorbutton1.get_color() print coltmp.red, coltmp.green, coltmp.blue,

[pygtk] refreshing a treeview

2005-06-21 Thread Alexei Gilchrist
Hi, how do I refresh a treeview? I have a function which changes the scale of the font of the items (setting the scale property of the cellrenderer) but the height of the rows is then all wrong relative to the font size. If I collapse and open a node the height is then correct, but this is

Re: [pygtk] Error using Gnome Canvas

2003-06-04 Thread Alexei Gilchrist
On Wed, Jun 04, 2003 at 03:51:15PM +1200, Michael JasonSmith did merrily tap: I am in the process of a Gtk/GNOME 1.2 - 2 conversion and I am a bit stuck on a error I get when I try to create item objects: RuntimeError: could not create canvas item object Any idea about what this means?

[pygtk] Full Screen window

2002-05-09 Thread Alexei Gilchrist
Hi all, This is a question on approach as well as specific problems, it seems to have come up several times on the list but there doesn't seem to be any conclusive answers ... I want to have a full screen mode for my application (so you can use it with a data projector for presentations) Is

Re: [pygtk] Trouble with GnomePixmapEntry 2

2002-04-30 Thread Alexei Gilchrist
Thanks James, that did the trick. Alexei On Tue, 2002-04-30 at 12:51, James Henstridge wrote: Alexei Gilchrist wrote: Here is a simply test prog to show the problem: -- from gtk import * from gnome.ui import * w = GnomePixmapEntry() w.show() box

[pygtk] Trouble with GnomePixmapEntry 2

2002-04-29 Thread Alexei Gilchrist
, and a debian install of gnome (unstable branch). cheers, Alexei On Mon, 2002-04-29 at 13:09, Alexei Gilchrist wrote: Hi I'm having problems using GnomePixmapEntry, I can place it in a dialog (I'm using libglade) but typing something into the GtkEntry will freeze the application after

[pygtk] Trouble with GnomePixmapEntry

2002-04-28 Thread Alexei Gilchrist
Hi I'm having problems using GnomePixmapEntry, I can place it in a dialog (I'm using libglade) but typing something into the GtkEntry will freeze the application after about 3 characters. Similarly selecting a pixmap via the 'browse' button returns ok from the file selection, renders the

[pygtk] 2 views of the same widget?

2001-05-03 Thread Alexei Gilchrist
Hi all, Using libglade and glade how would I set up two independently scrolled views of the same widget (say each view in pane of the GtkVPaned widget)? cheers, Alexei ___ pygtk mailing list [EMAIL PROTECTED]

[pygtk] printing from gnome canvas

2000-06-14 Thread Alexei Gilchrist
Hi, Is there any way of printing, or exporting to postscript, a gnome canvas? I've looked everywhere I can think of on the docs and can't find any mention of it. Many thanks, Alexei ___ pygtk mailing list [EMAIL PROTECTED]

Re: [pygtk] 2 simple ctree questions

2000-01-20 Thread Alexei Gilchrist
Hi, The reason I ask is that it would be nice to be able to navigate via the keyboard in a ctree so that hitting the left arrow takes you to the parent node. This would require transfering the focus to the parent node. It's easy to come up with other examples that would be useful (eg some find

Re: [pygtk] 2 simple ctree questions

2000-01-20 Thread Alexei Gilchrist
On Thu, 20 Jan 2000, Frederic Gobry wrote: * How do I put pixmap into a row? An example would be really helpful. See the enclosed example... BTW, does anybody know why I don't get transparency with PNG files ? Thanks a lot! :-) I got the images, I also had problems with the transparency

[pygtk] syntax coloring

1999-06-09 Thread Alexei Gilchrist
Hi, please excuse these very basic questions ... How do I define a GdkColor? If I use colour_alloc it says "colour_alloc deprecated. Use GdkColormap.alloc" which I can't find anywhere. is there a neat way of changing the color of a piece of text in GtkText, other than deleting it and

[pygtk] 2 Questions

1999-06-02 Thread Alexei Gilchrist
James Henstridge wrote: To get most affine transformations to work correctly, you need to use an antialiased canvas. This can be done by creating the canvas with GnomeCanvas(aa=TRUE). Thanks! works a treat. I have a further two questions ... 1) placing text on a aa canvas give me a

[pygtk] affine transform

1999-06-01 Thread Alexei Gilchrist
Hi, I'm just starting to learn to use the gnome canvas. Could someone please give me a brief example of affine transforms at work (using python) ... particularly rotation. Should this work for any item? eg text I only seem to get scaling and translation going for rect's and the