[pygtk] style (theme font) and GenericCellRenderer ?

2006-04-06 Thread Danny Milosavljevic
Hi, I'm trying to make one of my cell renderers adhere to the theme font selected. I have something like - style myentry { font_name = Courier New 12 } widget_class *TCellRendererEditLine* style myentry widget_class *CellRendererText* style myentry

Re: [pygtk] 'Style' object has no attribute 'white_gc'

2001-10-10 Thread Matt Wilson
The style objects and helpers haven't been reimplemented yet and isn't fully bound. Cheers, Matt On Thu, Oct 11, 2001 at 02:21:25AM +0900, Tamito KAJIYAMA wrote: Hi, I have trouble with regard to PyGTK 1.99.3 (together with GTK+ 1.3.9 and Python2.2a4). I know that the `Style' object in

[pygtk] Style and scroll bar problems

2000-09-05 Thread Martin Grimme
Hello I've got two questions: 1. Is it possible to change the style property bg_pixmap with widget.set_style()? When I try this, Python complains that bg_pixmap can only take a GdkPixmap as value. Is pix in the following line not a GdkPixmap? pix, mask =

[pygtk] Style

2000-08-24 Thread Javi Roman
After of fighting much I have managed to control the progress bar (thanks to the people that helped me). Now I have the following problem: I want to change the color of the bar. I have tried all type of combinations of styles and I have not obtained it. Since I can do it? mycolor =

Re: [pygtk] Style

2000-08-24 Thread acano
On Thu, 24 Aug 2000 11:45:16 +0200, Javi Roman [EMAIL PROTECTED] wrote: After of fighting much I have managed to control the progress bar (thanks to the people that helped me). Now I have the following problem: I want to change the color of the bar. I have tried all type of combinations of

Re: [pygtk] style question again

2000-03-03 Thread Randolph Fritz
On Thu, Mar 02, 2000 at 10:47:06AM +0100, Javi Roman wrote: I have: ... style = self.window.get_style ().copy () style.bg[STATE_NORMAL] = style.black self.window.set_style (style) ... This works correctly, but i want a red background color, and i

[pygtk] style question again

2000-03-02 Thread Javi Roman
I have: ... style = self.window.get_style ().copy () style.bg[STATE_NORMAL] = style.black self.window.set_style (style) ... This works correctly, but i want a red background color, and i try: ... style.bg[STATE_NORMAL] = style.red

Re: [pygtk] style question again

2000-03-02 Thread James Henstridge
There isn't a style.red attribute. To create the colour red in the colormap used by the widget, use one of the following: red = widget.get_colormap().alloc('red') red = widget.get_colormap().alloc('#ff') red = widget.get_colormap().alloc(0x, 0, 0) All these forms are equivalent

[pygtk] style question

2000-01-10 Thread Javi Román
Hi: I have a program that uses black background color in the main window: ... window = GtkWindow () style = window.get_style ().copy () style.bg[STATE_NORMAL] = style.black window.set_style (style) ... When I put any