A Qua, 2004-07-14 �s 18:39, george young escreveu: > [python 2.3.3, pygtk-2.0.0, gtk+-2.4, x86 linux] > > Well, once again I've wasted a few hours and offended various deities with > my speech trying to change the color of a widget. Only to eventually find > that gtk.Frame widgets don't have a window so modify_bg doesn't work. I > KNOW there's a list in the FAQ of such widgets, but one doesn't think to > look there right away. There are too many subtleties in GUI programming > not to give the developer help when its easily doable. > > Is there any good reason that modify_xx (and maybe set_style) shouldn't > result in a gtk warning, so we know that it just failed? Maybe not a > fatal python exception, but something sent to stderr so the developer > doesn't go crazy? > > I know the notion of warnings and logging in pygtk is in flux, but it > seems like it shouldn't be so hard to just cause a gtk-level warning now > and have it go where-ever the rest of gtk warnings go.
Please bring this up to gtk+ people, we have nothing to do with this ;-) Seriously, it is not the job of the python bindings to do this kind of validation. But I can understand your frustration. Regards. -- Gustavo Jo�o Alves Marques Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> The universe is always one step beyond logic. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
