Sunday, February 26, 2012

Third week start

Well the third week has started off well.  We've all gathered in the cs dept for some team programming.  We all just kind of worked on our own stuff, but with everyone but alfonso here to help with learning python it has gone very well.  I've started to get used to the Tkinter gui library, and made a less simple gui.  I haven't done much else code then that, but I have done other things not in code.  One of which is we had a problem importing each module to each other's code.  I figured it would be like java with the import gui.cGui.widgets.CLabel or something.  Chris said that with modules you have to add the location of each one into your PYTHONPATH or something.  This sounded like a huge pain in my ass, since I love making deep directory structures.  The import function is also not recursive, so every directory must be added.  I notice every time I want to make a new python module, there is also the option for a python package.  Wondering what this is, I tried it out.  Turns out it is the same as java.  You just make a package, and as long as the top level directory of the package is in the path, then you can import anything inside it as long as it is in a sub-package.  This will be much easier than adding each and every little directory.  Hopefully I can work more with this group than once per week, they are pretty cool people.

No comments:

Post a Comment