为什么我的TKINTER标题栏没有更改?
我不明白为什么标题栏没有改变:
from tkinter import*
from tkinter import ttk
from PIL import Image, ImageTk
class Face_Recognization_System:
def _init_(self, root):
self.root = root
self.root.title("Simple Prog")
self.root.geometry("1530x790+0+0")
if __name__ == "__main__":
root = Tk()
obj = Face_Recognization_System()
root.mainloop()
I don't understand why the title bar is not changing:
from tkinter import*
from tkinter import ttk
from PIL import Image, ImageTk
class Face_Recognization_System:
def _init_(self, root):
self.root = root
self.root.title("Simple Prog")
self.root.geometry("1530x790+0+0")
if __name__ == "__main__":
root = Tk()
obj = Face_Recognization_System()
root.mainloop()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有两个错误,第一个是在初始化的语法中,
第二个错误是您应该作为输入输入根。
最后,您将其更改一些,以将初始化与其他方法分开。
There are two errors the first is in the syntax of Initialization it's
Second you should enter the root as an input.
And finally you change it up a little to separate the initialization from the other method .
您不会在功能的参数中传递根。这应该更好
You don't pass your root in parameter of the function. This should be better