[pygtk] python2, gtk 0.6.8 GdkColor
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 any ideas ? Martin -- Martin Preishuber - IT Expert, Student, SysAdmin http://www.eclipt.at, mailto:[EMAIL PROTECTED] Make a wish, it might come true. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] python2, gtk 0.6.8 GdkColor
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
[pygtk] Strange window-icon
Hello again all I'm trying to set the window-icon by using: pix, mask = create_pixmap_from_xpm(self, None, icon.xpm) self.set_icon(pix,mask) where self is the window, but instead of the icon I get a bunch of lines and dots in different colours, although sometimes, it looks allright. What's going on? Should I use a different method for setting the icon or what? ANY help is MUCH appreciated. Christian Storgaard / Cybolic - [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] `GtkDialogFlags' is not an enum type
I've been away from the Gtk 1.3 release cycles for a month or two. Upon returning to it yesterday, I got this new warning: `GtkDialogFlags' is not an enum type Is this something I need to worry about or will it go away on its own as new versions of PyGtk are released that accommodate some new Gtk 1.3 API change? Thx, Skip ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] `GtkDialogFlags' is not an enum type
Will be fixed in cvs in a few minutes. Matt On Thu, Jan 03, 2002 at 09:31:10AM -0600, Skip Montanaro wrote: I've been away from the Gtk 1.3 release cycles for a month or two. Upon returning to it yesterday, I got this new warning: `GtkDialogFlags' is not an enum type Is this something I need to worry about or will it go away on its own as new versions of PyGtk are released that accommodate some new Gtk 1.3 API change? Thx, Skip ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk