Skip to content

AttributeError: 'NoneType' object has no attribute 'title' #2351

Answered by mhsmith
jlij asked this question in Q&A
Discussion options

You must be logged in to vote

As the documentation says, widget.selection returns None if no row is currently selected, so your code will have to handle that.

On some platforms, it's possible that there will be an intermediate None state every time the selection switches from one row to another.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mhsmith
Comment options

mhsmith Jan 21, 2024
Collaborator

@jlij
Comment options

@jlij
Comment options

@mhsmith
Comment options

mhsmith Jan 23, 2024
Collaborator

Answer selected by jlij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants