Hey there, so I'm trying to create automated regression for PDFs that will use
Selenium RC for the generation and Python for the comparison of PDFs. I will be
using pyPdf to rename the files according to their content, ImageMagick to
convert the PDFs to images and PIL to actually compare the PDF
Update: Found out with the Picture Manager by Windows I could view an image
100%, use a tool that measures the windows and get a probably not accurate but
still serviceable coordinate to use. I compared with the coordinates I
currently have and tried to get it by the above method and the coordin
So I have a dictionary and the key is a number. The values are either a single
tuple or a tuple of tuples. Is there a better way to go about accessing the
values of the dictionary? All the tuples contain four elements.
So say:
col = {"1": (0,1,2,3): "2": ((0,1,2,3),(2,3,4,5))}
Then to access th
Wow, why didn't I think of that. Thanks! I'll try it now. By the way I think I
don't need to wrap the single tuples in runtime because I'm declaring that
dictionary anyway beforehand and I could just do it right there. I won't be
adding elements to the tuple.
--
http://mail.python.org/mailman/l
Sorry if I didn't check the code before I posted it, I just mocked it up in
Google's editor. That's what Mitya suggested too, yep, I guess I just need to
make it uniform to get rid of the extra checking. Thanks man!
--
http://mail.python.org/mailman/listinfo/python-list
Hi Mark. Well, doesn't iteritems() work the same? or am I missing something? By
the way I'm sure I read the dictionaries part of Python but I'm unsure if it
would take int's as a key for dictionaries. I've been weaned on Java where the
keys of hashmaps are always Strings.
PS: Just checked, wow
Thanks Dave and Mitya for enlightening me about dictionaries. I'm still
confused about this though:
" so that if two
key objects are equal, they stay equal, and if they differ, they stay
different. "
What does this mean? I won't be comparing key objects with one another. Also,
when I had two
Oh, I see, thanks! I was thinking I'll study 2.7 and once I'm comfortable with
Python as a language I'll move to 3. Heck, I don't even know how to create a
simple main method.
--
http://mail.python.org/mailman/listinfo/python-list
I have two images generated from ImageMagick that I need to compare through PIL
but when I compare them it says that the two images aren't identical. I tried
viewing the supposed "difference" but all I see is a black image which means
the two image are identical. ImageChops even returns the regi
Wow, what the heck, I just learned that using beyond compare if I compare the
two images then I'll see a different section under tolerance mode. Anyone an
expert on images? The two images have whites on that same image but they're
different according to BeyondCompare. What's more, if I do a bina
10 matches
Mail list logo