473,288 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

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\Pmw_1_3\demos\OptionMenu.py to
OptionMenu.pyc
Sorry: TabError: inconsistent use of tabs and spaces in indentation (OptionMenu.
py, line 14)


am i doing something wrong?
Feb 1 '12 #1
3 2308
bvdet
2,851 Expert Mod 2GB
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.
Feb 1 '12 #2
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
bvdet
2,851 Expert Mod 2GB
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

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

Similar topics

4
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
0
by: No | last post by:
I have a MySQL database and I want to cut and paste a part of it into my current MySQL database. is there a certain place that it has to be cut ? Here is a sample of the data, can someone tell me...
0
by: Matrix | last post by:
I currently have a database in MSSQL and am trying to import several tables into MySQL. On the MySQL Console Manager, there is a greyed out Import selection that will not allow me to use. I dont...
2
by: MFRASER | last post by:
Does anyone have a good way of importing a csv file into an object? Entity1,123,22,red,blue Entity2,123,22,red,blue Entity3,123,22,red,blue Entity4,123,22,red,blue Entity5,123,22,red,blue ...
4
by: GastonFranzini | last post by:
I export some data from access to excel, then I update the data by importing it. The way I update the records is relating them with a unique ID, Is there a way to add a new record ? One without an...
4
by: hibbii | last post by:
I am trying to import data from a spreadsheet into a pre-created table. The table however has columns that the spreasheet does not such as an autonumber PK and an ID as the FK. What is the best...
18
by: Landaverry | last post by:
I have an excel file that has over 20 tabs. I need to import all tabs into one table and am having trouble finding code to do this. I would liike the user to be able to press on button, navigate to...
4
by: alvinstraight38 | last post by:
Hey guys, I am trying to import data from an Excel spreadsheet into my SQL database. I am running SQL 2005. I following Microsoft's instructions for creating a linked server, and it appeared...
0
by: aoztuncer | last post by:
I can import data from Excel using the following code if the spreadsheet is saved on the computer and has a non-empty path name: string connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" +...
2
anoble1
by: anoble1 | last post by:
I have a button in my database that when you hit tit, it imports just 1 excel sheet and puts it in a table. Works great. I am wanting to grab 4 more excel sheets from different locations and store...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.