python

How do I get a windows current size using Tkinter?

How do I get a windows current size using Tkinter, or possibly with the python standard library? ...

[ Python Beginner ] compilation error. AttributeError: 'module' object has no attribute 'init'

Here is my small program, import pygame pygame.init() Here is my compilation command. python myprogram.py Compilation error, File "game.py", line 1, in import pygame File "/home/ubuntu/Documents/pygame.py", line 2, in pygame.init() AttributeError: 'module' object has no attribute 'init' I have pygame instal...

South django.db.utils.IntegrityError: django_content_type.name may not be NULL while running unit tests

I'm getting this error django.db.utils.IntegrityError: django_content_type.name may not be NULL while running tests via nosetest. I've done everything as told in south tutorial - initial migration, fake migration etc. Running site normally via runserver command works like charm, but while using test command - above error. Also, In my d...