dialog.py 文件源码

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

项目:Quiver 作者: DeflatedPickle 项目源码 文件源码
def body(self, master):
        text = tk.Text(master, relief="flat", wrap="word", width=0, height=0)
        text.pack(side="left", fill="both", expand=True)
        text.tag_configure("header", justify="center",
                           font=(font.nametofont("TkDefaultFont").cget("family"), 12, "bold"))
        text.tag_configure("hyperlink")

        scrollbar = ttk.Scrollbar(master, orient="vertical", command=text.yview)
        scrollbar.pack(side="right", fill="y")

        text.insert("end", "Libraries:\n", "header")
        text.insert("end", """- Fredrik Lundh for Tkinter.
- Alex Clark for Pillow.
- okdana for jsonesque.
- twoolie for NBT.\n\n""")
        text.insert("end", "Programs:\n", "header")
        text.insert("end", """- MightyPork for ResourcePack Workbench.
- dotPDN, LLC for Paint.NET.
- JetBrains for PyCharm.
- Mojang for Minecraft.\n\n""")
        text.insert("end", "Other:\n", "header")
        text.insert("end", """- Hartmut Goebel, Martin Zibricky, David Cortesi and David Vierra for PyInstaller.
- GitHub for hosting the code.
- Bryan Oakley on StackOverflow for occasional indirect help with code.""")

        text.configure(state="disabled", yscrollcommand=scrollbar.set)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号