Re: [pygtk] question about handle pending events (Hussein Vastani)

2005-07-20 Thread Gustavo J. A. M. Carneiro
On Wed, 2005-07-20 at 10:17 +0100, Stephen Kennedy wrote: Ok so i read that if I have while gtk.events_pending(): gtk.main_iteration(False) inserted at the right places in my callback (which can be long computational ), my application would look response since it

[pygtk] howto get the directory size

2005-07-20 Thread Ogz
With such a code: gnomevfs.async.get_file_info(uri), fileinfo_callback, options = gnomevfs.FILE_INFO_DEFAULT | gnomevfs.FILE_INFO_GET_MIME_TYPE) ıt is possible to get the size of the file by using fileinfo_callback function. Is there a way like this for directories? When i apply it for a

[pygtk] Re: Themes and Stand Alone GTK

2005-07-20 Thread Brian Campbell
Two simple questions: 1) There's a way to set the theme that an app will use, without setting it globally or for the user? Like, just that app will use a different theme... 2) Using Python or py2exe to generate a standalone executable requires the installation of the gtk runtime for win32,

[pygtk] Highlighting all occurances of a string in a TextBuffer

2005-07-20 Thread Rich Burridge
Hi all, I'm trying to write a function that will highlight all occurances of the string searchStr in the TextBuffer buffer. This is what I've currently got that doesn't work. def highlightText(buffer, searchStr): buffer.create_tag(red_foreground, foreground=red) start, end =

Re: [pygtk] Highlighting all occurances of a string in a TextBuffer

2005-07-20 Thread John Finlay
Rich Burridge wrote: Hi all, I'm trying to write a function that will highlight all occurances of the string searchStr in the TextBuffer buffer. This is what I've currently got that doesn't work. def highlightText(buffer, searchStr): buffer.create_tag(red_foreground, foreground=red)

[pygtk] Gtk.Image unused widget space size

2005-07-20 Thread mammique
Hi, i use a Gtk.Image, with pixbuf set from a file, and i would like to know the new size of the widget when resized, to adjust the pixmap to this size. But the only thing i can get is the size of the displayed pixmap, i need the size of the Gtk.Image containing it (gray borders that appear on

Re: [pygtk] Highlighting all occurances of a string in a TextBuffer

2005-07-20 Thread Rich Burridge
John Finlay wrote: Looks OK to me except last line should be: start = matchEnd And I would create the tag in an initialization method. Thanks, I'll adjust accordingly. Are you sure that searchStr is in buffer? No it wasn't. In fact, nothing was in the text buffer. Here was