ImportError: cannot import name

The problem is that you have a circular import: in app.py in mod_login.py This is not permitted in Python. See Circular import dependency in Python for more info. In short, the solution are either gather everything in one big file delay one of the import using local import

Does Python have “private” variables in classes?

It’s cultural. In Python, you don’t write to other classes’ instance or class variables. In Java, nothing prevents you from doing the same if you really want to – after all, you can always edit the source of the class itself to achieve the same effect. Python drops that pretence of security and encourages programmers to be … Read more

Use a.any() or a.all()

here is the error I get: I have read several posts about a.any() or a.all() but still can’t find a way that really clearly explain how to fix the problem. I see why Python does not like what I wrote but I am not sure how to fix it.

pygame.error: video system not initialized

You haven’t called pygame.init() anywhere. See the basic Intro tutorial, or the specific Import and Initialize tutorial, which explains: Before you can do much with pygame, you will need to initialize it. The most common way to do this is just make one call. This will attempt to initialize all the pygame modules for you. Not all pygame modules need … Read more