I tried changing PyQt4 to PyQt5 in line 41, and it initialised properly and let me cutomise it. But then it didn't actually work.

So it looks like I'll have to hope someone who knows what they are doing feels like having a look at it.
... Which has now happened. Thank-you. But...