Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread larry
success, had to fill in a few blanks with some more googling, here is the finished script (used all for loops this time, saved a few more lines): == #!/usr/local/bin/python import string import Image, ImageDraw size = 2 im = Image.new("1",[8*size,8*size],1) draw = ImageDraw.Draw(im)

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread larry
Wonderful, thank you! Will try them out this evening. The image module syntax looks more like what I was expecting than TKinter. All the online drawing examples I found yesterday used TKinter; image was only shown to manipulate pre-made images. Larry -- http://mail.python.org/mailman/listinfo/p

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread Lie
On Jun 29, 4:47 pm, Lie <[EMAIL PROTECTED]> wrote: > On Jun 29, 11:18 am, [EMAIL PROTECTED] wrote: > > > > > Ok I'm a Python noob, been doing OK so far, working on a data > > conversion program and want to create some character image files from > > an 8-bit ROM file. > > > Creating the image I've g

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread Lie
On Jun 29, 11:18 am, [EMAIL PROTECTED] wrote: > Ok I'm a Python noob, been doing OK so far, working on a data > conversion program and want to create some character image files from > an 8-bit ROM file. > > Creating the image I've got down, I open the file and use TK to draw > the images... but > >

help debugging noob code - converting binary data to images...

2008-06-28 Thread larry
Ok I'm a Python noob, been doing OK so far, working on a data conversion program and want to create some character image files from an 8-bit ROM file. Creating the image I've got down, I open the file and use TK to draw the images... but 1) It does not seem to end (running in IDLE), I have to ki

converting binary data

2006-02-27 Thread piotr maliński
I have a game file described here: http://iesdp.gibberlings3.net/ieformats/itm_v1.htm and I'm trying to read all the data: plik = open('bow08.itm', 'rb') try:         tekst = plik.read() finally:         plik.close() # char array - works print tekst[0x0004:0x0004

converting binary data

2005-04-27 Thread Dan Stromberg
I've written up a page about how to convert native binary data to another platform's native binary data, as I did some fortran data conversions for a client. The programs and documentation are at: http://dcs.nac.uci.edu/~strombrg/converting-binary.html So far, the page includes a variety of pro