GuiUtils.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:PINCE 作者: korcankaraokcu 项目源码 文件源码
def center(window):
    """Center the given window to desktop

    Args:
        window (QMainWindow, QWidget etc.): The window that'll be centered to desktop
    """
    window.move(QDesktopWidget().availableGeometry().center() - window.frameGeometry().center())


#:tag:GUI
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号