Set window gravity in PyGObject?

北战南征 提交于 2019-12-11 05:05:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!