pythontk(Tkinter)不能在ubuntuunity上透明工作

2024-09-29 23:22:50 发布

您现在位置:Python中文网/ 问答频道 /正文

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()

Tags: 代码fromimportalphatkinterubuntuwindowattributes

热门问题