[pygtk] PyGTK and PDB - are threads involved?

2010-07-14 Thread Noam Yorav-Raphael
Hello, I'm developing a PyGTK app, and sometimes I debug what's going on inside a callback, by calling pdb.set_trace(). I found out that other events are being processed while pdb is tracing the function. I assume this is done with threads. I don't like that because I don't want other things to

Re: [pygtk] Implementing my own ScrolledWindow

2010-07-05 Thread Noam Yorav-Raphael
Ok, I found the solution (thanks to help from Tadej Borovšak on gtk-app-devel-list): I had to call textview.set_size_request(0, 0), so now the textview doesn't request space for all its contents. Noam On Sun, Jul 4, 2010 at 3:45 PM, Noam Yorav-Raphael noamr...@gmail.com wrote: Hello, I would

[pygtk] Implementing my own ScrolledWindow

2010-07-04 Thread Noam Yorav-Raphael
Hello, I would like to implement my own ScrolledWindow that will hold a TextView. The reason is that I would like to use the small square between the horizontal scrollbar and the vertical scrollbar as a resize grip. (The whole window will be a tooltip, so there would be no other way to resize the

[pygtk] Forwarding key-press-event to another widget

2009-07-01 Thread Noam Yorav-Raphael
Hello, In the code editor I'm writing, I have a list of completions opened in a popup window. Since it's a popup window, key press events go to the text view below. I would like the list to scroll when the user presses up, down, pgup, pgdn, home, end. Is there a way to forward those key press

Re: [pygtk] Forwarding key-press-event to another widget

2009-07-01 Thread Noam Yorav-Raphael
I just implemented these by myself (it wasn't *too* hard, although pgup and pgdn were a bit tricky), so it's ok. Thanks! 2009/7/2 Noam Yorav-Raphael noamr...@gmail.com: Hello, In the code editor I'm writing, I have a list of completions opened in a popup window. Since it's a popup window, key

[pygtk] gtk.Style has no properties

2009-06-30 Thread Noam Yorav-Raphael
Hello, for gtk.Style objects there are no properties - I do: st = gtk.Style() gobject.list_properties(st) () I would like to change its bg property (appears in the documentation, and even in gtk-base-types.def), so that the selection color will be different from the default, but since it has

[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 Noam Yorav-Raphael
: 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 won't