[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 i

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

2001-10-10 Thread Tamito KAJIYAMA
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 0.6.x has the member `white_gc', but it seems not in 1.99.3. Here is a code snippet that I could not figure out how to fix "AttributeError: 'Style' object has no att

Re: [pygtk] Style problem

2001-06-12 Thread James Henstridge
On Tue, 12 Jun 2001, Eduardo Ferro wrote: > > Hi > > I am trying to change the font of a label with the following code: > > > fuente = gtk.load_font("-*-helvetica-*-*-*-*-24-*-*-*-*-*-*-*") > strMensaje = string.replace(strMensaje,'\\n','\n') > gtkLabel = gtk.GtkLabel(strMensaje

[pygtk] Style problem

2001-06-12 Thread Eduardo Ferro
Hi I am trying to change the font of a label with the following code: fuente = gtk.load_font("-*-helvetica-*-*-*-*-24-*-*-*-*-*-*-*") strMensaje = string.replace(strMensaje,'\\n','\n') gtkLabel = gtk.GtkLabel(strMensaje) estilo = gtkLabel.get_style() es

[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 = create_pixmap_from_xpm(win

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 combinatio

[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 = 'b

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, a

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 (th

[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

2000-01-10 Thread Matt Wilson
Manyy widgets are 'Windowless,' that is, they draw on their parent's window ahd have no window of their own. GtkFrame is one such widget. You'll need to place it inside a window to make the background grey. The style settings only apply to the areas that the GtkFrame draws on. The easiest way to

[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

Re: [pygtk] style modification implemented.

1999-02-16 Thread Andreas Degert
James Henstridge <[EMAIL PROTECTED]> writes: > You can now modify the attributes of style objects in pygtk (well you will > once I commit my changes to CVS and make a release). For the arrays like > GtkStyle.fg, I decided to make a helper object class to handle setting of > these attributes. Th

[pygtk] style modification implemented.

1999-02-16 Thread James Henstridge
You can now modify the attributes of style objects in pygtk (well you will once I commit my changes to CVS and make a release). For the arrays like GtkStyle.fg, I decided to make a helper object class to handle setting of these attributes. This object is not quite as functional as the tuples I w