Menu

#49 no effect when setting opacity on Gtkwidget

1.0
open
nobody
None
2016-09-26
2016-09-26
narcisse
No

Hi,
Just want to inform you that we can't change the opacity of the window and
for any other widget. Here is a simple code to test it.
I have installed: pygi-aio-3.18.2_rev7-setup.exe

Best regards,
Narcisse.

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

def dest_wid(wid):
Gtk.main_quit()

w = Gtk.Window()
w.set_property("opacity", .5)
w.connect("destroy", dest_wid)
w.show()
Gtk.main()

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.