[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] Patch for GtkWidget.set_scroll_adjustment

2000-03-02 Thread John Ehresman
The GtkWidget.set_scroll_adjustment method wasn't returning the result from the gtk_widget_set_scroll_adjustments extension module function. The patch below adds the return to the method; it was made against the pygtk 0.6.4 release. John *** /home/jpe/down/pygtk-0.6.4/gtk.py Wed Feb 16

[pygtk] Background color

2000-03-02 Thread Javi Roman
I need a GtkVBox with buttons but i want that this vbox has a pixmap background. How i can do it? I need a simple example. Thaks. To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]