Martin Preishuber wrote: >Hi all, > >I try to change the background color and therefor I create a GdkColor >instance. With python 1.5 that works as expected, with python 2.1.1 I >get some errors when using parameters > 32767. Usually >GdkColor(65535, 65535, 65535) should be white so I can make any bright >colors with that restriction. The error I get is > > return _gtk.gdk_color_new(red, green, blue, pixel) >OverflowError: signed short integer is greater than maximum > This problem is fixed in CVS, but you shouldn't be using this function (it now prints a warning). Instead, use the alloc() method of a GdkColormap object (you can get the colormap used by a widget with its get_colormap() method).
James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk