[PyKDE] Two issues with QT Designer 3.3.0 and PyQt 3.8.1
Randy Carnahan
rcarn at chartermi.net
Wed Apr 28 23:16:01 BST 2004
On Wednesday 28 April 2004 14:10, Welch, Donald J wrote:
> image0_data = \
> "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d" \
> "\x49\x48\x44\x52\x00\x00\x00\x61\x00\x00\x00\x60" \
> "\x08\x06\x00\x00\x00\x0d\x5a\x1c\x06\x00\x00\x08" \
> "\x98\x49\x44\x41\x54\x78\x9c\xed\x5d\x69\x92\xf4" \
[snipperoo]
The problem, from what I can tell, is on line 15 of the data, which contain
periods in the hexcode.
I used the following script to find it (after just including the hexcode in a
text file):
!/usr/bin/env python2
import string
fp = open("tmpfile.txt")
linenum = 1
for line in fp:
line = line.strip()
line = line[:-1]
lineparts = line.split("\\x")
for part in lineparts:
if part:
for p in part:
if p not in string.hexdigits:
print "Error: \\%s in line %s" % (part, linenum)
linenum = linenum + 1
fp.close()
...which gave this:
[rcarn at cerebus rcarn]$ ./hmmm.py
Error: \3. in line 15
Error: \3. in line 15
Error: \0. in line 15
Error: \0. in line 15
--
Randy Carnahan
Charter Communications
1-888-968-3442 Opt 3.
SW::POP Michigan Region
I am Geek. Hear me Code!
More information about the PyQt
mailing list