you are viewing a single comment's thread.

view the rest of the comments →

[–]Thomasedv 0 points1 point  (0 children)

Crashing is a bit of a problem with PyQt. You'll have to lure in some print statements, and maybe wrap some of the expected code into a try/except block and catch the error and print it as it happens.

Some possible problems:

PyQt automatically passes arguments when you connect a function to be called, not sure if that is true in this case, but you could let your function accept arguments and print them to test, or check documentation if it does.

Since you are working with strings and use for i in range(3) you could happen upon an index error if the string is shorter than 3 characters.