[pygtk] Problem in referencing Glade widegets

2009-06-29 Thread ganesh gajre
Hi all, I am writing a program in which i want to get the image file which is created on the server to my desktop. For whicj i am looking for the same url which i used to connect to my server database. I had written a small function to get the url address. Code is as follow: Glade file

[pygtk] gtkunixprint.enumerate_printers - Cant detect all printers.

2009-06-29 Thread Vamsi Krishna Davuluri
Hi, I don't if i'm doing this wrong, but I can only get the 'Print To File' gtkunixprint.Printer Listed. Here's a sample code. Even if I return a false from the function, all I get is a loop. Although my gtkunixprint dialog shows all the listed printers. import gtkunixprint import gtk def

[pygtk] Change background of selected cell in a TreeView

2009-06-29 Thread Noam Yorav-Raphael
Hello, TreeViews usually highlight the background of the selected cell. I would like to change that color to white (the background of unselected cells), so that a border would be drawn around the cell but its background won't change. I tried using treeview.modify_bg(gtk.STATE_SELECTED,

Re: [pygtk] Change background of selected cell in a TreeView

2009-06-29 Thread Alessandro Dentella
On Mon, Jun 29, 2009 at 08:15:19PM +0300, Noam Yorav-Raphael wrote: Hello, TreeViews usually highlight the background of the selected cell. I would like to change that color to white (the background of unselected cells), so that a border would be drawn around the cell but its background

[pygtk] GPollFD/GSource wrappers [was: Re: iosource]

2009-06-29 Thread Martin Schulze
Sorry, it should read the GSource/GPollFD wrappers, not GIOSource wrapper. Also, I should add that I'm using the Linux versions 2.16.1/2.14.1 and the Windows versions 2.14.2/2.12.1 of pygobject/pygtk. Still, the problem remains unchanged ... Regards, Martin Am Sonntag, den 28.06.2009,

Re: [pygtk] GPollFD/GSource wrappers [was: Re: iosource]

2009-06-29 Thread Martin Schulze
I've got it working! gobject.Source is not functional - you must derive your own class and define the functions prepare, check and dispatch. See attached example. If this is actually intended, the error that's being raised should be a NotImplementedError. Btw, there doesn't seem to be any

Re: [pygtk] Change background of selected cell in a TreeView

2009-06-29 Thread Noam Yorav-Raphael
Thanks! However, the link you sent me explains how to change the background of cells when they are not selected. At least on my system, the cells have the same (ubuntu orange) background when selected. I'm looking for a way to change that color. 2009/6/29 Alessandro Dentella san...@e-den.it: On