[pygtk] gtk.Table + Scrolledwindow with permanent headers?

2008-09-26 Thread Laszlo Nagy
I have a gtk.Table inside a scrolled window. I have many rows and columns in the Table. Each cell in the table contains a widget (typically a button, but not necessarily.) Some of the cells on the edges of the table are headers. They should always be visible even when the user scrolls in the mi

Re: [pygtk] Cairo Line Width

2008-09-26 Thread Laszlo Pandy
In Cairo, the coordinates do not refer to a particular pixel. Instead "...integer coordinates map to points half way between sample point locations." http://www.cairographics.org/FAQ/#sharp_lines Laszlo 2008/9/26 Jeffrey Drake <[EMAIL PROTECTED]>: > In my code below, I set a line width of 1 and

[pygtk] No default icon in Treeview DnD using drag_begin

2008-09-26 Thread Jeffrey Barish
In the attached program, I get the default icon when I use enable_model_drag_source to enable the drag (set MANUAL to False). When I use drag_begin (set MANUAL to True), the icon is wrong. I need to use drag_begin so that I can disallow the drag under certain conditions. Thoughts? -- Jeffrey Ba

Re: [pygtk] Cairo and Fonts

2008-09-26 Thread Greg Ewing
Jeffrey Drake wrote: > Is there a font that I can guarantee looks the same across all > platforms, or could I actually distribute a font with the application to > be loaded by cairo The Bitstream Vera fonts are freely redistributable. -- Greg ___ pygt

Re: [pygtk] cell.set_property and colors

2008-09-26 Thread Alessandro Dentella
On Thu, Sep 25, 2008 at 05:48:54PM +0200, Alessandro Dentella wrote: > Hi, > >I want to color single cells in a TreeView (totals of a table). >Since I'm using cell_data_func to set value of property text I tried >using that same function to set colors but it turns out all cells get >