Saturday, March 10, 2012
Spring break - 1
So in order to meet Ackley's request for the demo next time we meet, I have a lot of work ahead of me this spring break. I don't have anything else really to do, except for LANFEST!!!!! Anyways, I started today and made the custom gui widgets be able to load configurations from the config file. I also started on the main gui panel structuring. I had some difficulties with the layout, still getting used to that. Also, in python if you have different modules that try to load files by relative paths it is much harder than I thought. The current directory for each module is the same as the modules that the program entered in. So if I have a module that handles IO to files in a local directory, then my path to that dir would be "./files" plain and simple. If I use this module from a module in a different directory then it wouldn't work, because the directory the starting module is in doesn't have a "./files". I was able to work around this by not using a relative path, but getting the path to the module the code is in via the symbol table. It ended up taking me an hour to get this part. It is a bit overly complicated, but now that I know how it should be really easy to duplicate in the future.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment