Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/312.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
Python Tkinter中lbl引用的问题_Python_Tkinter - Fatal编程技术网

Python Tkinter中lbl引用的问题

Python Tkinter中lbl引用的问题,python,tkinter,Python,Tkinter,第一次在这里发布,下面的代码应该在tkinter中创建一个标签,并在我的另一个程序中以这种方式工作,但在另一个程序中没有,它给出了所附图片中显示的错误。非常感谢您的帮助。谢谢 检查你的缩进你没有足够的代码让我们看到哪里出了问题我假设你的代码中有更高的地方你只需要修复缩进请不要发布错误图片。相反,花点时间剪切、粘贴和格式化消息。另外,请发布一个复制问题的日志。 lblReference = Label(f1, font = ('arial', 16, 'bold'),

第一次在这里发布,下面的代码应该在tkinter中创建一个标签,并在我的另一个程序中以这种方式工作,但在另一个程序中没有,它给出了所附图片中显示的错误。非常感谢您的帮助。谢谢


检查你的缩进你没有足够的代码让我们看到哪里出了问题我假设你的代码中有更高的地方你只需要修复缩进请不要发布错误图片。相反,花点时间剪切、粘贴和格式化消息。另外,请发布一个复制问题的日志。
lblReference = Label(f1, font = ('arial', 16, 'bold'), 
            text = "Choose:", bd = 16, anchor = "w")