2024-09-29 23:22:50 发布
网友
Python2.7.3中的代码可以在WindowsXP中工作,而不能在UbuntuUnity中工作。 如何在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()
试试这个:
相关问题 更多 >
编程相关推荐