On Tue, Aug 12, 2003 at 02:51:13PM -0400, george young wrote: > [pygtk-1.99.16, gtk-2.2.2, python-2.3] > In the following code, I had previously been changing some style attribute, > then deleted the lines that set attribute, but left in the get_style;set_style, > assuming this to be a no-op. Alas, no! > > If I comment out the self.set_style(sty), the later modify_bg succeeds, > else it fails.
You should check out how modify_bg works. It may be changing the default style, and not the latest one. > Why should a get + set change something? I do no other explicit manipulation > of the style, though a number of modify_bg calls... It changes the style object attached to the widget -- the copy() clones the original style but returns a *new* style object. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/