Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.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 我在github中复制了一个tkinter库代码,现在我遇到了缩进错误_Python_Tkinter - Fatal编程技术网

Python 我在github中复制了一个tkinter库代码,现在我遇到了缩进错误

Python 我在github中复制了一个tkinter库代码,现在我遇到了缩进错误,python,tkinter,Python,Tkinter,因此,我想我不小心删除了tkinter库中的init.py,所以我创建了一个新库并将代码复制到 现在我有一个缩进错误:在 def __eq__(self, other): """Comparison for equality (==). Note: if the Variable's master matters to behavior also compare self._master == other._master

因此,我想我不小心删除了tkinter库中的init.py,所以我创建了一个新库并将代码复制到 现在我有一个缩进错误:在

   def __eq__(self, other):
        """Comparison for equality (==).



        Note: if the Variable's master matters to behavior

        also compare self._master == other._master

        """

        return self.__class__.__name__ == other.__class__.__name__ \

            and self._name == other._name
这里是全部错误 回溯(最近一次呼叫最后一次): 文件“C:\Users\mypc\eclipse workspace\myproject\package\module.py”,第6行,在 将tkinter作为tk导入 文件“C:\Users\mypc\AppData\Local\Programs\Python37\lib\tkinter\uuuu init\uuuuu.py”,第929行 和self.\u name==其他。\u name ^
缩进错误:意料之外的缩进我想我只是个傻瓜,我只需要把它原封不动地复制下来就可以解决所有问题