Python Forum
TabError: inconsistent use of tabs and spaces in indentation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TabError: inconsistent use of tabs and spaces in indentation
#2
The error message complains that a mix tabs and spaces are being used to indent code somewhere around line 80. I would look at the buttons dictionary. I used to get this error a lot when editing code in Notepad++ before I configured the editor to use spaces instead of tabs when editing Python code.

I cannot find where tabs are being used. I even copied the file to a file and wrote a Python program to look for tabs and found none. But it may be that the act of posting the code replaced the tabs with spaces.
hobbyist likes this post
Reply


Messages In This Thread
RE: TabError: inconsistent use of tabs and spaces in indentation - by deanhystad - Dec-27-2020, 03:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Found buttonstate in tabs MacTommu 4 2,026 Sep-22-2021, 05:56 PM
Last Post: deanhystad
  [Tkinter] Vertical Tabs Alignment in Tkinter muhammadasim 2 6,093 Oct-05-2020, 08:40 AM
Last Post: Larz60+
  [Tkinter] Need help please properly putting tabs within a PanedWindow JackMack118 2 3,395 Dec-08-2019, 03:02 PM
Last Post: balenaucigasa
  [PyQt] Drag items across tabs Alfalfa 5 4,848 Sep-01-2019, 11:58 PM
Last Post: Alfalfa
  [Tkinter] Adding space between Notebook tabs Columbo 4 4,602 Jul-10-2019, 10:46 PM
Last Post: Columbo
  [Tkinter] How to get a tabs works exactly same as google chrome sarthak260 0 3,820 Mar-07-2019, 10:45 AM
Last Post: sarthak260
  [Tkinter] How to create multilple tabs in tkinter from different classes Rishav 5 18,406 Jul-11-2018, 11:59 AM
Last Post: CCChris91
  How to create mutiple tabs in tkinter using oops Rishav 2 6,917 Jul-12-2017, 04:43 PM
Last Post: Rishav

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020