Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Python3中,当创建新标签按钮出错时_Python_Button_Tkinter_Label - Fatal编程技术网

在Python3中,当创建新标签按钮出错时

在Python3中,当创建新标签按钮出错时,python,button,tkinter,label,Python,Button,Tkinter,Label,我在python 3和sqlite3中使用Tkinter我创建了一个具有两个按钮和文本标签的注册表我在单击按钮中的“签名”后打开了一个新窗口当我在“签名”窗口中创建另一个按钮时出错 def new_winF(): newwin = Toplevel(root) newwin.geometry('500x500') # display = Label(newwin, width=70, height=80) label_zero = Label(newwin, te

我在python 3和sqlite3中使用Tkinter我创建了一个具有两个按钮和文本标签的注册表我在单击按钮中的“签名”后打开了一个新窗口当我在“签名”窗口中创建另一个按钮时出错

def new_winF():
    newwin = Toplevel(root)
    newwin.geometry('500x500')
    # display = Label(newwin, width=70, height=80)
    label_zero = Label(newwin, text="SignIn form", width=20, font=("bold", 20))
    label_zero.place(x=90, y=63)
    label_one = Label(newwin, text="Email", width=20, font=("bold", 10))
    label_one.place(x=80, y=130)
    label_one = Entry(newwin, textvar=Email)
    label_one.place(x=240, y=130)

    label_two = Label(newwin, text="Password", width=20, font=("bold", 10))
    label_two.place(x=80, t=180)
    label_two = Entry(newwin)
    label_two.place(x=240, y=180)
    buttonSignIn = Button(root, text="Sign in", width=10, bg='black', fg='white', command=new_winF).place(
    x=140, y=430)

这可能是由于行中的错误:

label_two.place(x=80, t=180)
可能应该是:

label_two.place(x=80, y=180)
因为没有选项t in place()方法


label_two=Entry(newwin)我在调试时遇到错误,请将问题包括在内。当它出现在注释中时无法读取。Tkinter回调回溯中的异常(最近一次调用):+self.\u options(cnf,kw))\u Tkinter.TclError:unknown option“-t”@rammohandubey我们知道
t
是导致错误的原因。如果你读了巴托斯的答案,他是在告诉你把
t
改成
y
。。。就这么简单。@rammohandubey:这绝对是问题所在。对不起,我没有看到那一次我适当地回答了您的问题。谢谢您,先生!