_________________________________________
Andrea Gavana (gav...@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Hi all
From: Giovanni Porcari [mailto:giovanni...@gmail.com]
Sent: 08 November 2006 13:31
To: wxpython-users
Subject: [wxPython-users] Grab screen in wxpython
Is there a way to grab an image from the screen using wxpython?
I know that it could be done using PIL ImageGrab.grab(bbox) => image but unfortunately it is only for windows.
TIA
G
If one uses the print screen button on Windows, then one can also use
something like the following...
def GetClipboardImage():
success = False
do = wx.BitmapDataObject()
if wx.TheClipboard.Open():
success = wx.TheClipboard.GetData(do)
wx.TheClipboard.Close()
if success:
return do.GetBitmap()
return None
- Josiah