This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Issue in transparency in top level tk window(python) on MAC
Type: crash Stage:
Components: Tkinter Versions: Python 2.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: YMohan, amaury.forgeotdarc, gpolo
Priority: normal Keywords:

Created on 2009-03-26 18:47 by YMohan, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg84196 - (view) Author: Yogendra Mohan (YMohan) Date: 2009-03-26 18:47
Hello All,

   OS - MAC 10.5.1
   Python 2.5.1
   Tk - 8.5.6

I am using the wm_attributes for transparency of top level window. But 
unable to do the same.  
The Tk wm attributes command takes option arguments
        self.top=Toplevel(master=self.parent)
        self.top.wm_attributes(alpha=0.0)
Let me know can I do on MAC system or Not? If not then please let me 
know what all changes are required into tkinter.

Thanks in advance.
Yogendra Mohan
msg84265 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-03-27 15:46
wm_attributes does not take keyword arguments. See issue1500773.

something like this should work, though:
        self.top=Toplevel(master=self.parent)
        self.top.wm_attributes('-alpha', 0.8)
msg84300 - (view) Author: Yogendra Mohan (YMohan) Date: 2009-03-28 06:44
Hello Amaury Forgeot,

Thanks for reply.
As you said 'wm_attributes does not take keyword arguments' I have 
taken that pach from issue1500773 and updated the same.
Still I am not able to run with Python 2.5.1 on MAC 10.5.1. Please let 
me know if anything else I have to do.

Regards
Yogendra Mohan
msg84313 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-03-28 16:38
Please revert that patch, it is not correct!
Did you try the commands I suggested in my previous post?

And please, be more specific than "I am not able to run". Do you get an
error message? If yes, copy its content here.
msg84316 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-03-28 17:15
Amaury, can you be more specific on how it is not correct ? What patch
should be reverted ?

I'm closing this as invalid now. Although this, in some way, can be
considered a duplicate of issue1500773, I don't see it that way. I'm
just seeing an incorrect usage of wm_attributes, not a request to change
how it works, besides the question being asked ("can I do on MAC system
or Not?") should be moved to a proper mail list.
msg84317 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-03-28 17:44
Guilherme, you are right. I think I looked at the wrong patch, sorry.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49819
2009-03-28 17:44:32amaury.forgeotdarcsetmessages: + msg84317
2009-03-28 17:15:56gpolosetstatus: open -> closed

nosy: + gpolo
messages: + msg84316

resolution: duplicate -> not a bug
2009-03-28 16:38:39amaury.forgeotdarcsetmessages: + msg84313
2009-03-28 06:44:23YMohansetstatus: closed -> open

messages: + msg84300
2009-03-27 15:46:35amaury.forgeotdarcsetstatus: open -> closed

nosy: + amaury.forgeotdarc
messages: + msg84265

resolution: duplicate
2009-03-26 18:47:05YMohancreate