help importing Pmw

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moroccanplaya
    New Member
    • Jan 2011
    • 80

    help importing Pmw

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

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


    am i doing something wrong?
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    The error message pinpoints the problem in OptionMenu.py 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.

    Comment

    • moroccanplaya
      New Member
      • Jan 2011
      • 80

      #3
      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

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        You only have to check files that raise an exception. Pythonwin can be configured to show mixed tabs and spaces. I can get ugly!

        Comment

        Working...