哪里可以找到如何使用Canvas.configure()的介绍?

发布于 01-15 01:08 字数 448 浏览 2 评论 0原文

我看到了一些示例代码:

from tkinter import HIDDEN, NORMAL, Tk, Canvas

root = Tk()
c = Canvas(root, width=400, height=400)
c.configure(bg='dark blue', highlightthickness=0)
c.pack()
root.mainloop()

问题: 哪里可以找到Canvas.configure的用法?我翻遍了Python的在线文档,但没有找到。我在网上google了一下也没有找到。我只找到了.itemconfigure。如果你能告诉我如何检查Canvas的所有方法就更好了。

I saw some sample codes:

from tkinter import HIDDEN, NORMAL, Tk, Canvas

root = Tk()
c = Canvas(root, width=400, height=400)
c.configure(bg='dark blue', highlightthickness=0)
c.pack()
root.mainloop()

Question:
Where to find the usage of Canvas.configure? I looked through Python's Online Documentation, but did not find it. I googled it online and did not find it either. I only found .itemconfigure. It would be even better if you can tell me how to check all the methods of Canvas.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文