你可以看到它有一些不同的颜色,比如在顶部,整个区域看起来有点灰色,我想看看怎么做, 这是我的代码:
root.title("Arizon")
root.geometry("620x400+0+0")
root.configure(bg='#1c1b1c')
heading = Label(root, text="Arizon Updater", font=("arial", 40, "bold"), fg="#030208", bg= "#1c1b1c").pack()
label1 = Label(root, text="Enter how much minimum value do u want to gain: ", font=("arial", 9, "bold"), fg="#f0f0f5", bg="#141314").place(x=5, y=90)
在评论中解释
旁白:我修正了你第一个问题的语法
注意:
我写的一些东西对你来说可能是不必要的,直到你意识到你所做的每一个应用都可以从下面的模板开始。只需更改
WIDTH
、HEIGHT
和TITLE
值即可为您想要构建的内容设置舞台。它不是“最好”的模板,但肯定不是一个坏模板。当你变得更好时,你可以使你的模板更好,并理解为什么它更好我强烈建议你花点时间阅读文档。如果你不这样做,你会不断地挣扎和失败。即使你的成功也只不过是一个巨大的复制/粘贴混乱。文档是你应该建立你所有知识的基础。我已经编程25年了,精通20多种语言。我没有任何问题。我完全知道我在说什么。研究这些文件就像他们是圣经一样
“Tk允许有
Frames
。有Frames
,它是self.good
”~文件1.013rc的书:D
相关问题 更多 >
编程相关推荐