Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
python 2.7.3 中的此代码在 windows xp 中工作,在 Ubuntu Unity 中不起作用。如何在 ubuntu 中制作窗口透明度。
# -*- coding: UTF-8 -*- from Tkinter import Tk window = Tk() window.wm_attributes('-alpha',0.8) window.geometry('500x500+200+211') window.mainloop()
试试这个:
from Tkinter import Tk window = Tk() window.wait_visibility(window) window.wm_attributes('-alpha',0.8) window.geometry('500x500+200+211') window.mainloop()