[Tkinter-discuss] Making an image the background of a Frame

Tim Jones timj at tolisgroup.com
Sun Jul 20 03:27:32 CEST 2008


On Jul 19, 2008, at 5:12 PM, Guilherme Polo wrote:

>> Unfortunately, this is one of the aspects of TK that isn't quite  
>> right on OS
>> X.  You could use a drawn image of a button on your backdrop image  
>> and then
>> monitor for the mouseclick position to determine that the pseudo- 
>> button was
>> pressed, but without proper ties to the Carbon Compositor, it's  
>> best to use
>> pushbuttons only on default, blank backgrounds.
>>
>
> Does that happen when using a Canvas too ? Same in Tk 8.5 ? I'm
> curious, mainly because I don't have a mac to test.

Yes - for the button's background to be "transparent", OS X windows  
use a model known as Composite.  Unfortunately, AFAIK, the TK  
implementation as it exists doesn't offer a Composite window parameter.

Tim



More information about the Tkinter-discuss mailing list