User Profile

Collapse

Profile Sidebar

Collapse
Kase
Kase
Last Activity: Sep 1 '10, 03:53 PM
Joined: Aug 1 '10
Location: Nashville, TN
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Awesome

    That worked! I modified it a little so that I didn't get a long list of 'XXX' based on what files were in the folder that didn't correlate to the dictionary.
    I think it works so far:
    Code:
     for name in fileList:
                self.DataTypes.insert(END, dd.get(name))
    Thanks a ton!
    See more | Go to post

    Leave a comment:


  • Linking certain filenames in a directory and a dictonary?

    Hi. I'm trying to get my feet wet with programming and keep hitting some brick walls.

    I basically want to look in a folder for certain filenames. If the files are there, I would like the term linked to the filename to be in a listbox.

    I thought a dictionary would work:
    Code:
    dataset = { "File1.txt":"Picotiter Plate",
                        "File2.txt":"KeyPass Wells",
    ...
    See more | Go to post
No activity results to display
Show More
Working...