I need to figure out the correct way to write a config file in python; since I'd rater not just have a .txt file with a value sitting in it. otherwise, I'm going to just create an xml file and parse the xml.
I use the ConfigParser module, which write a .ini type config file. It works well for me (although I'm sure there are other ways of doing it).
I need to figure out the correct way to write a config file in python; since I'd rater not just have a .txt file with a value sitting in it. otherwise, I'm going to just create an xml file and parse the xml.
For simplicity, I use the pickle module and just write a dictionary to a file. Then I unpickle it and have everything ready in just 2 lines.
You should also add a version number to your config file if you do it this way. It will help you a lot whenever you add new options to it.
I have to take a look at this, thanks so much for your help. packaging is quite a new concept for me.
You're welcome.
You should have a look at Debian's New Maintainer's Guide. It's a very good introduction. Apart from that, the full reference of packaging is the Debian's Policy Manual. It covers everything but it's not meant to be used as an introduction.
EDIT: Don't be scared of the size of the policy. It's a complete reference and as such it is big. You only need to look at some parts of it.
Is there anyway to include some watermarks in the pictures?
wow, that's a fairly interesting question. what sort of watermarks would you have in mind? And on top of that what sort of general usage case would you/we have for watermarks? just curious.
as you can see when we do a crop the crop lines are placed as a layer above the current image. I would just need to devise a watermark, with the appropiate alpha channel (transparency settings) and merge layers.
wow, that's a fairly interesting question. what sort of watermarks would you have in mind? And on top of that what sort of general usage case would you/we have for watermarks? just curious.
as you can see when we do a crop the crop lines are placed as a layer above the current image. I would just need to devise a watermark, with the appropiate alpha channel (transparency settings) and merge layers.
Well, I tought I could create some watermarks adding some text or even another picure.
Yes, I could see using it to post images, screenshots, photos, Etc to blogs (Especially with maStory, sort of love that app).
Just have to come up with a good way to load those 1-bit images.
You could take the extra's-testing release (0.9-1) which probably still works. Its really a nice app and well worth a try, even if you have to resort to a non devel version