anaconda中spyder编辑tkinter

为什么使用tkinter中会出现TclError: bad option "-ride": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx, -ipady, -padx, -pady, or -side问题

你的参数传递错误,在pack布局中没有ride参数选项,可能是side,写错了一个字母,改一下即可。有关参数解释参考一下:


如对你有帮助,请点击采纳按钮支持一下~~