Ok, the gui9.py misbehavior comes from a color incompatibility between
pygame version 1.7.1 versus 1.8.1:

>>> import pygame
>>> print pygame.version.ver
1.8.1release
>>> c=pygame.color.Color('#000000')
>>> print c
(0, 0, 0, 0)
>>>


>>> import pygame
>>> print pygame.version.ver
1.7.1release
>>> c = pygame.color.Color('#000000')
>>> print c
(0, 0, 0, 255)
>>>

A color is initialized in gui9.py to '#000000' wich was black in 1.7.1 and
is transparent in 1.8.1. Besides, the color picker do not change alpha, so
any color selected will maintain the original alpha, 0 in this case.
Fix: specify the alpha, in this case : '#000000FF'

Pygame bug additional impact:
Seems that in pgu.gui there are no other instances of colors as '#xxyyzz',
but the config.txt file in the themes\default and themes\gray directories
used colors without explicit alpha. To be safe probably it would be better
to specify the alpha desired ( -- untested -- )

A patch for gui9.py, against pgu from imitation pickles r38 is included.

--
claxo
Index: gui9.py
===================================================================
--- gui9.py     (revisi¢n: 38)
+++ gui9.py     (copia de trabajo)
@@ -280,7 +280,7 @@
         mode.rect.w,mode.rect.h = mode.resize()
         #mode._resize()
         
-        default = "#000000"
+        default = "#000000FF"
         self.color = color = 
gui.Color(default,width=mode.rect.w,height=mode.rect.w)
         self.color_d = ColorDialog(default)
         

Reply via email to