thank you .you can stop sending me these now thanks
From: [EMAIL PROTECTED]
Reply-To: tutor@python.org
To: tutor@python.org
Subject: Tutor Digest, Vol 33, Issue 12
Date: Fri, 03 Nov 2006 12:00:11 +0100
>Send Tutor mailing list submissions to
> tutor@python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/tutor
>or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
>You can reach the person managing the list at
> [EMAIL PROTECTED]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Tutor digest..."
>
>
>Today's Topics:
>
> 1. Re: Print Screen (Chris Hengge)
> 2. Re: Print Screen (Luke Paireepinart)
> 3. Checking the format of IP address... (Asrarahmed Kadri)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 3 Nov 2006 00:08:19 -0800
>From: "Chris Hengge" <[EMAIL PROTECTED]>
>Subject: Re: [Tutor] Print Screen
>To: "Luke Paireepinart" <[EMAIL PROTECTED]>
>Cc: pythontutor <tutor@python.org>
>Message-ID:
> <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Wow.. I have visions of writing a little wanna-be VNC client/server now
>using the ImageGrab.grab() =D
>This ImageGrab trick does exactly what I wanted. Thanks for the tip!
>
>Actually, I want to write a little package for the learning experience
>sometime over the holidays (plus I use VNC fairly often), but I can't find
>any direction, or any already made packages for python for the VNC protocol
>(no libs?).
>
>On 11/2/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
> >
> >
> > >> Anyone know of a way to capture special keys like "Print Screen"?
> > >> I have a small script to grab all they keycodes, but it doesn't seem to
> > >> catch several keys on the keyboard. I've got a utility that I'd like to
> > >> be able to automagically get a screenshot when something goes wrong so
> > I
> > >> dont have to hope the user can re-create the error. Universal support
> > >> would be best, but WinXP is the main OS
> > >>
> > >>
> > >
> > > I'm not exactly sure what you want here :-) but if you want to capture
> > > when the 'Print Screen' key (or any other key) has actually been
> > > pressed, try pyHook. Note: pyHook only works on Windows!
> > >
> > Also note that if you want all of the keypresses, but you _don't_ care
> > about the application with focus
> > receiving the input, you can do a complete key grab using TKInter or
> > Pygame, and probably the other GUI packages too.
> > But, like I said, if you were, for example, typing an e-mail and you
> > started a script that did a complete grab like this, you'd no longer be
> > able to type
> > into the e-mail window. Using pyHook, your program could see all the
> > keypresses, but they'd also still be sent to the e-mail program.
> > Actually, I've never tried it, but I'm pretty sure that's how the GUI
> > packages' key capturing works.
> > You may be asking 'well, it sounds like pyHook does a better job of this
> > anyway!'
> > Yeah, you're right.
> > However, as Alan exclaimed, pyHook works only on Windows!
> > So the solution I offered would be more portable.
> > Hope that helps,
> > -Luke
> >
> >
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: http://mail.python.org/pipermail/tutor/attachments/20061103/7f2cbe57/attachment-0001.htm
>
>------------------------------
>
>Message: 2
>Date: Fri, 03 Nov 2006 02:35:41 -0600
>From: Luke Paireepinart <[EMAIL PROTECTED]>
>Subject: Re: [Tutor] Print Screen
>To: Chris Hengge <[EMAIL PROTECTED]>
>Cc: pythontutor <tutor@python.org>
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Chris Hengge wrote:
> > Wow.. I have visions of writing a little wanna-be VNC client/server
> > now using the ImageGrab.grab() =D
> > This ImageGrab trick does exactly what I wanted. Thanks for the tip!
> >
> > Actually, I want to write a little package for the learning experience
> > sometime over the holidays (plus I use VNC fairly often), but I can't
> > find any direction, or any already made packages for python for the
> > VNC protocol (no libs?).
>Heh, I was actually writing my own VNC, that's when I ran into the
>ImageGrab function.
>I also did something cool, which is :
> self.prevscr = self.currscr
> self.currscr = ImageGrab.grab().resize((800,600))
>
> diff = ImageChops.difference(self.prevscr,self.currscr)
>
>Obviously you need a currscr before you start, which I declared during
>the initialization of the class.
>The cool part of this is that the ImageChops difference will return
>black pixels in any area of the screen that hasn't changed.
>so you can just send the changed parts over the network (if you have a
>good algorithm to discard the unchanged portions).
>Would be much faster than sending the whole screen every frame, obviously.
>Not CPU-faster, but network-faster.
>
>
>------------------------------
>
>Message: 3
>Date: Fri, 3 Nov 2006 10:51:14 +0000
>From: "Asrarahmed Kadri" <[EMAIL PROTECTED]>
>Subject: [Tutor] Checking the format of IP address...
>To: pythontutor <tutor@python.org>
>Message-ID:
> <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi Folks,
>
>I want to implement a simple program that verifies the IP provided by the
>user is in the right format or not.
>
>How to go about it..?
>Any suggestions..
>
>TIA.
>Regards,
>Asrarahmed
>
>
>--
>To HIM you shall return.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: http://mail.python.org/pipermail/tutor/attachments/20061103/1718a735/attachment.html
>
>------------------------------
>
>_______________________________________________
>Tutor maillist - Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
>End of Tutor Digest, Vol 33, Issue 12
>*************************************
Be the first to hear what's new at MSN - sign up to our free newsletters!
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor