问题
Every time I try to set the gravity of my application, it keeps throwing an error message like this:
AttributeError: 'gi.repository.Gdk' object has no attribute 'GRAVITY_SOUTH_EAST'
What is the correct method for setting the gravity of a GTK3 application with python? (Not pygtk, I'm using the newer PyGI libraries.)
There isn't a documentation for PyGI AFAIK, and when I do help(Gdk.Gravity)
in the python console it returns GDK_GRAVITY_SOUTH_EAST
as an option.
来源:https://stackoverflow.com/questions/38154350/set-window-gravity-in-pygobject