This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author becky07
Recipients becky07, paul.moore, shreyanavigyan, steve.dower, steven.daprano, tim.golden, zach.ware
Date 2021-05-08.22:23:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620512625.96.0.822546648241.issue44076@roundup.psfhosted.org>
In-reply-to
Content
I'm using tkinter for a long time, my application was running fine till 1st May, and suddenly happen this issue.

After adding a new data to a list, it showing in some places of tkinter components. For example, in treeview, it shows based on running specfic function, but on click it appear this message:

Traceback (most recent call last):
  File "C:\Users\xxxxxx\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
    return self.func(*args)
  File "xxxxxxx.py", line 1423, in OnDoubleClick
    itemXid = assetinfo_lst[xrec][1]
IndexError: list index out of range

in OnDoubleClick:
    xrec = self.treedata.selection()[0]
    xrec = int(xrec[1:], 16) - 1

    itemXid = assetinfo_lst[xrec][1]

However, after exiting the program and restarting it, it is working properly.

it could be the mainloop is not working:
if __name__ == "__main__":
    root = Tk()
    App = MasterApp(root)
    root.mainloop()

Is an issue with a new update of Windows 10? MS suggest to reinstall tkinter and recover Windows
History
Date User Action Args
2021-05-08 22:23:46becky07setrecipients: + becky07, paul.moore, tim.golden, steven.daprano, zach.ware, steve.dower, shreyanavigyan
2021-05-08 22:23:45becky07setmessageid: <1620512625.96.0.822546648241.issue44076@roundup.psfhosted.org>
2021-05-08 22:23:45becky07linkissue44076 messages
2021-05-08 22:23:45becky07create