[Image-SIG] my solution (formerly "enough")

2010-08-22 Thread Jack Uretsky
Hi all- Following a suggestion of Yuri's. with assistance from the book "Beginning Game Development" by Will McGugan (Apress (registered) (Berkeley, CA 2007), here is my solution to the problem of switching images (you can substitute anything you have hadny for the images used for "back1" and

Re: [Image-SIG] that's enough

2010-08-04 Thread Jack Uretsky
stian Haase On Wed, Aug 4, 2010 at 1:48 AM, Jack Uretsky wrote: Hi all-        I tried Yuri's matplotlib approach, as follows: ___  (I verified that the imports are giving me directories) import Image import numpy as np import pylab as pyl if __name__ ==

Re: [Image-SIG] that's enough (corrrection)

2010-08-03 Thread Jack Uretsky
"Trust me. I have a lot of experience at this." General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Tue, 3 Aug 2010, Jack Uretsky wrote: Hi all- I tried Yuri's mat

Re: [Image-SIG] that's enough

2010-08-03 Thread Jack Uretsky
ray(img) p = a.copy().transpose((1, 0, 2)) pyl.imshow(p) pyl.show() -- Sincerely yours, Yury V. Zaytsev On Sun, 2010-07-11 at 18:16 -0500, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open("a_1.jpg") d.show() Now, how do I

Re: [Image-SIG] that's enough

2010-08-01 Thread Jack Uretsky
end first working with some basic Python tutorials. In the meantime, I have a feeling the Pygame example that someone sent over will be a bit simpler. On Sat, Jul 31, 2010 at 5:55 PM, Jack Uretsky wrote: Actually, I did in what I tried to run. What I posted was a verbatim copy fr

Re: [Image-SIG] that's enough

2010-07-31 Thread Jack Uretsky
into the Little Big Horn Valley On Fri, 30 Jul 2010, Alec Bennett wrote: You didn't delete the periods that I put in to simulate indentations. On Fri, Jul 30, 2010 at 9:06 AM, donn wrote: On 30/07/2010 17:48, Jack Uretsky wrote: def__init__(self, parent, id): ^ SyntaxError: invalid

Re: [Image-SIG] that's enough

2010-07-30 Thread Jack Uretsky
; General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Fri, 30 Jul 2010, donn wrote: On 30/07/2010 17:48, Jack Uretsky wrote: def__init__(self, parent, id): ^ SyntaxError: invalid syntax I imagine th

Re: [Image-SIG] that's enough

2010-07-30 Thread Jack Uretsky
.BITMAP_TYPE_ANY).ConvertToBitmap() self.mainPic = wx.StaticBitmap(panel, -1, bmp) self.Show() app = wx.App(redirect=0) PictureWindow(None, -1) app.MainLoop() On Sun, Jul 11, 2010 at 4:16 PM, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open(

Re: [Image-SIG] that's enough

2010-07-29 Thread Jack Uretsky
just before leading them into the Little Big Horn Valley On Thu, 29 Jul 2010, donn wrote: On 29/07/2010 04:56, Jack Uretsky wrote: I suspect that my phrasing was a distraction. There is a python command that brings up an X11 window. Is there a python command that make the win

Re: [Image-SIG] that's enough

2010-07-28 Thread Jack Uretsky
20/2010 7:09 PM, Jack Uretsky wrote: Hi all- I'm really grateful for all the help, but my question seems to have gotten lost. I was really happy with "show', except that I could not stop the display. Is it in fact true that there is no way to stop a 'show" display

Re: [Image-SIG] that's enough

2010-07-27 Thread Jack Uretsky
_ANY).ConvertToBitmap() self.mainPic = wx.StaticBitmap(panel, -1, bmp) self.Show() app = wx.App(redirect=0) PictureWindow(None, -1) app.MainLoop() On Sun, Jul 11, 2010 at 4:16 PM, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open("a_1.jpg

Re: [Image-SIG] that's enough

2010-07-23 Thread Jack Uretsky
Hi all- Maybe someone can set me straight, but this whold dialog is beginning to sound like the answer to the little girl's question, "Mom, where did I come from?" After Mom's erudite exposition of biology 101, the little girl said, "Dorothy said she came from Wichita, where did I come from?"

Re: [Image-SIG] that's enough

2010-07-21 Thread Jack Uretsky
s like a perfect use case for pygame. Just set up a screen, then run your main loop and when a new state is calculated, blit the corresponding JPEG to the screen. I've already posted the code that you need to implement this setting. -- Sincerely yours, Yury V. Zaytsev On Tue, 2010-07-20 at

Re: [Image-SIG] that's enough

2010-07-20 Thread Jack Uretsky
Hi all- I'm really grateful for all the help, but my question seems to have gotten lost. I was really happy with "show', except that I could not stop the display. Is it in fact true that there is no way to stop a 'show" display of an image in order to do a subsequent 'show' display of a dif

Re: [Image-SIG] that's enough

2010-07-20 Thread Jack Uretsky
eral Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Tue, 20 Jul 2010, Yury V. Zaytsev wrote: On Mon, 2010-07-19 at 18:18 -0500, Jack Uretsky wrote: In answer to your question, this is a simulation. The "events"

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
rse (how you turn a uniform distribution into any distribution you want). Chris On Mon, Jul 19, 2010 at 7:18 PM, Jack Uretsky wrote: Hi Chris- In answer to your question, this is a simulation.  The "events" are program generated; I'm trying to approximate a Poisson process, so the

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
"Trust me. I have a lot of experience at this." General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Mon, 19 Jul 2010, Christopher Barker wrote: Jack Uretsky wrote: I have a sequence o

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
e. I have a lot of experience at this." General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Mon, 19 Jul 2010, Christopher Barker wrote: Jack Uretsky wrote: Thanks. I'm looking into this.

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
map(panel, -1, bmp) self.Show() app = wx.App(redirect=0) PictureWindow(None, -1) app.MainLoop() On Sun, Jul 11, 2010 at 4:16 PM, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open("a_1.jpg") d.show() Now, how do

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
just before leading them into the Little Big Horn Valley On Sun, 18 Jul 2010, Brian Blais wrote: On Jul 18, 2010, at 21:12 , Jack Uretsky wrote: I'n trying to find a binary veersion of matplotlib that I can install on my OS X Snow Leopard. Hello Jack, I see you're t

Re: [Image-SIG] that's enough

2010-07-18 Thread Jack Uretsky
ytsev On Sun, 2010-07-11 at 18:16 -0500, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open("a_1.jpg") d.show() Now, how do I turn it off before showing another image I'm on an Intel Mac, OS X Snow Leopard.

Re: [Image-SIG] that's enough

2010-07-13 Thread Jack Uretsky
elf.mainPic = wx.StaticBitmap(panel, -1, bmp) self.Show() app = wx.App(redirect=0) PictureWindow(None, -1) app.MainLoop() On Sun, Jul 11, 2010 at 4:16 PM, Jack Uretsky wrote: Hi- The following worked very well: import Image d = Image.open("a_1.jpg") d.show() N

[Image-SIG] that's enough

2010-07-11 Thread Jack Uretsky
Hi- The following worked very well: import Image d = Image.open("a_1.jpg") d.show() Now, how do I turn it off before showing another image I'm on an Intel Mac, OS X Snow Leopard. Regards, Jack U. "Trust me. I hav

Re: [Image-SIG] building PIL in Snow Leopard

2010-06-20 Thread Jack Uretsky
just before leading them into the Little Big Horn Valley On Sat, 19 Jun 2010, Christopher Barker wrote: Jack Uretsky wrote: Macintosh-2:Imaging-1.1.7 jackuretsky$ python setup.py build_ext -i running build_ext --- using frameworks at /System/Library/Frameworks building '_ima

Re: [Image-SIG] building PIL in Snow Leopard

2010-06-20 Thread Jack Uretsky
ce at this." General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Sat, 19 Jun 2010, Christopher Barker wrote: Jack Uretsky wrote: Macintosh-2:Imaging-1.1.7 jackuretsky$ python setup.py build_ext

[Image-SIG] building PIL in Snow Leopard

2010-06-19 Thread Jack Uretsky
Hi- When I do "python setup.py buil_ext -i" The response starts with _ I am following the README that comes with PIL 1.1.7 I get the following, when I do "python setup.py build_ext -i (I note the "please check your xcode installation"..I reinsta

Re: [Image-SIG] Python Imaging Library for Windows Mobile

2010-06-19 Thread Jack Uretsky
Hi- Sorry for the delay. I'm the wrong person to ask. I don't even know what WM is. Regards, Jack "Trust me. I have a lot of experience at this." General Custer's unremembered

[Image-SIG] Snow Leopard; PIL

2010-06-18 Thread Jack Uretsky
___ Evidently, I need help. Please. Regards, Jack Uretsky "Trust me. I have a lot of experience at this." General Custer's unremembered message to his

[Image-SIG] Snow Leopard; PIL

2010-06-17 Thread Jack Uretsky
Hi- Is there presently a binary of PIL (1.1.7?) that will run on OS X Snow Leopard? I find the archive a bit confusing. Regards, Jack "Trust me. I have a lot of experience at this." General Custer's unremembered message

Re: [Image-SIG] Installing libjpeg

2010-06-14 Thread Jack Uretsky
just before leading them into the Little Big Horn Valley On Mon, 14 Jun 2010, Yury V. Zaytsev wrote: On Sun, 2010-06-13 at 23:45 -0500, Jack Uretsky wrote: Thanks. I believe I have Macports installed. Here's what I get on the first command: Macintosh-2:~ jackuretsky$ sudo

Re: [Image-SIG] Installing libjpeg

2010-06-13 Thread Jack Uretsky
quot;Trust me. I have a lot of experience at this." General Custer's unremembered message to his men, just before leading them into the Little Big Horn Valley On Sat, 12 Jun 2010, Christopher Barker wrote: Jack Uretsky wrote: Hi- I'm a

Re: [Image-SIG] Installing libjpeg

2010-06-12 Thread Jack Uretsky
know what to do with them. Pls help me complete the install Regards, Jack Uretsky "Trust me. I have a lot of experience at this." General Custer's unremembered message to his men,

Re: [Image-SIG] PIL 1.1.7 binary for python 2.4

2009-11-15 Thread Jack Uretsky
sage to his men, just before leading them into the Little Big Horn Valley On Sun, 15 Nov 2009, Bill Janssen wrote: So, did you download and install a different Python than came with your Mac? Bill Jack Uretsky wrote: Thanks. I'n not seeing why that helps. I did

Re: [Image-SIG] PIL 1.1.7 binary for python 2.4

2009-11-14 Thread Jack Uretsky
em trying to use the 10.4 SDK, instead of the 10.6 SDK? The only thing I can think of is that you are using a non-Apple-supplied Python, which was built against the 10.4 SDK, so it's trying to use that to build PIL, too. Bill Jack Uretsky wrote: Hi- Xcode - 3.2 (bundled wit

Re: [Image-SIG] PIL 1.1.7 binary for python 2.4

2009-11-14 Thread Jack Uretsky
the Little Big Horn Valley On Fri, 13 Nov 2009, Bill Janssen wrote: Need more details. What version of OS X, what version of Python, what version of Xcode? Bill Jack Uretsky wrote: Hi- Perhaps you can answer, at least, the second question. In what file do I find the gcc?

Re: [Image-SIG] PIL 1.1.7 binary for python 2.4

2009-11-13 Thread Jack Uretsky
Hi- Perhaps you can answer, at least, the second question. In what file do I find the gcc? 1. What is my Xcode problem? When I run >python2.6 setup.py build I get: running build running build_py running build_ext --- using frameworks at /System/Library/Frameworks building '_imaging' extens

[Image-SIG] installing PIL on Snow Leopard; Xcode problem

2009-11-07 Thread Jack Uretsky
Hi- I'm trying to install the PIL using Imaging-1.1.6. following the first of the suggestions at "Passing Curiosity": http://passingcuriosity.com/2009/installing-pil-on-mac-os-x-leopard/ . I'm running Snow Leopard on an Intel machine (MacBook2.1). Two questions (to start with): 1.