gui.py 文件源码

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

项目:StochOPy 作者: keurfonluu 项目源码 文件源码
def main():
    """
    Start StochOPy Viewer window.
    """
    import matplotlib
    matplotlib.use("TkAgg")
    from sys import platform as _platform

    root = tk.Tk()
    root.resizable(0, 0)
    StochOGUI(root)
    s = ttk.Style()
    if _platform == "win32":
        s.theme_use("vista")
    elif _platform in [ "linux", "linux2" ]:
        s.theme_use("alt")
    elif _platform == "darwin":
        s.theme_use("aqua")
    root.mainloop()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号