Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
423 views
in Technique[技术] by (71.8m points)

python - Creating an irregularly shaped Gdk Window

Gtk3 has the shape_combine_region method which takes a cairo.Region object (see docs) which allows making the window a non rectangular shape. This would be straightforward by turning my cairo.ImageSurface (created from a png) into a region with Gdk.cairo_region_create_from_surface, however pycairo does not support the cairo.Region in Python 2.

What would be the most elegant work around to accomplish this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...