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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo