By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,385 Members | 1,094 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,385 IT Pros & Developers. It's quick & easy.

help importing Pmw

P: 80
hi i have extracted Pmw to the site-packages folder
then did a install but it does not install teh module i get a bunch of errors:

byte-compiling C:\Python32\Lib\site-packages\Pmw\Pmw_1_3\demos\ to
Sorry: TabError: inconsistent use of tabs and spaces in indentation (OptionMenu.
py, line 14)

am i doing something wrong?
Feb 1 '12 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 2.5K+
P: 2,851
The error message pinpoints the problem in at line 14. The code has an inconsistent mixture of tabs and spaces. As you probably know, Python heavily depends on a consistent indentation to form the code structure. The webpage at this address has some useful information about Python indentation.
Feb 1 '12 #2

P: 80
so i have to open each file and check for inconsistent use of tabs, is there any easier around this, i might just have to use the standard tkinter scroll bars instead
Feb 1 '12 #3

Expert Mod 2.5K+
P: 2,851
You only have to check files that raise an exception. Pythonwin can be configured to show mixed tabs and spaces. I can get ugly!
Feb 1 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.