Hi Alec
Well, Ive downloaded wxpython, and am trying to run your little
example, so far with no success; but that's mostly because my thumbs keep
getting in the way.
As I understand what you've programmed, it includes a frame,
labels, etc. I just want to exhibit my bare .jpg, and then make it go
away. Does that let me eliminate some lines in your example"
Regards,
Jack
ps I've also ordered a book on pygames, as another approach to my
problem.
"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, 12 Jul 2010, Alec Bennett wrote:
My understanding is that show() is mainly for debugging and tests, and that
it doesn't offer very much control or efficiency. That's not to say that
what you're after can't be done, maybe someone else can help you with that,
I just don't know.
Personally I'd suggest using WXPython, which can do what you're after fairly
easily.
Here's one very simple way to display an image in WX:
import wx
class PictureWindow(wx.Frame):
..def __init__(self, parent, id):
....wx.Frame.__init__(self, parent, id, "Window Title", size=(200, 200), pos
= (50, 50), style = wx.DEFAULT_FRAME_STYLE)
....panel = wx.Panel(self, -1)
....bmp = wx.Image("page1.jpg", wx.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 <j...@hep.anl.gov> 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.
Regards,
Jack U.
"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
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig