New answers tagged

2

A few things I noticed: Quite a few of your variables can be marked final. From my understanding pretty much any variable where the underlying object doesn't get reassigned to a new object. Instead of 3 separate variable for the time parts, you could use java.time.LocalTime to hold the time parts. Not only does this reduce your code, but it simplifies ...


1

You misspelled "movement" as "movment". Typically (as per PEP-8), indentations are specified by one hard tab or four spaces, so you're good in that respect. To be sure about formatting you can read up on PEP-8. I am also wondering about _man. This doesn't seem to be displaying a man (but I haven't run it) so why name it that way? Also, epilepsy doesn't ...


4

setup_toolbar from settings.py Maintaining a several lists in parallel is tedious. setup_toolbar has a minimal check with assert len(names) == len(icons) == len(methods) == len(tips) == len(key_shorts) to help here, but even if all the lists have the same length, there is no way to make sure that those values are really consistent. I'd propose to use ...


Top 50 recent answers are included