Python and USB

2009-10-14 Thread Ronn Ross
I'm new to Python and would like to capture mouse movements. I envision
writing a script that will just write out the mouse movements in the term.
Is this possible? Can someone point me in the right direction?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python and USB

2009-10-14 Thread Gabriel Genellina
En Wed, 14 Oct 2009 09:55:15 -0300, Ronn Ross ronn.r...@gmail.com  
escribió:



I'm new to Python and would like to capture mouse movements. I envision
writing a script that will just write out the mouse movements in the  
term.

Is this possible? Can someone point me in the right direction?


Capture mouse movements in your application, or globally?
All GUI frameworks that I know of (including the one that comes with  
Python, Tkinter, a wrapper around Tk and Tcl) provide some sort of  
notifications when the mouse is over your program window.
If you need to track the mouse everywhere (not only inside your app), that  
depends on the OS and desktop you're using. On Windows I think there's a  
library named pyhook or similar.


--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-28 Thread Graeme Glass
Or take a look at http://www.truecrypt.org/ (Unless like Brain said,
you are doing this to learn)

On Mar 27, 11:17 pm, Larry Bates [EMAIL PROTECTED] wrote:
 Brian Erhard wrote:
  I am still fairly new to python and wanted to attempt a home made
  password protection program.  There are files that I carry on a USB
  flash drive that I would like to password protect.  Essentially, I
  would like to password protect an entire directory of files.  Is there
  a way to auto execute a python script after a user double clicks to
  open a folder on the USB drive? How can you capture that double click
  event on a specific folder?

  Thanks.

 Unless you are just doing this to learn, I would suggest you purchase
 USB key with encryption included.  They are REALLY cheap.

 http://www.kingston.com/flash/DataTravelers_enterprise.asp

 -Larry


-- 
http://mail.python.org/mailman/listinfo/python-list


Auto execute python in USB flash disk

2007-03-27 Thread Brian Erhard
I am still fairly new to python and wanted to attempt a home made
password protection program.  There are files that I carry on a USB
flash drive that I would like to password protect.  Essentially, I
would like to password protect an entire directory of files.  Is there
a way to auto execute a python script after a user double clicks to
open a folder on the USB drive? How can you capture that double click
event on a specific folder?

Thanks.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-27 Thread Ene
On Mar 27, 9:56 am, Brian Erhard [EMAIL PROTECTED] wrote:
 I am still fairly new to python and wanted to attempt a home made
 password protection program.  There are files that I carry on a USB
 flash drive that I would like to password protect.  Essentially, I
 would like to password protect an entire directory of files.  Is there
 a way to auto execute a python script after a user double clicks to
 open a folder on the USB drive? How can you capture that double click
 event on a specific folder?

 Thanks.

Install the free PortablePython from http://www.portablepython.com/ on
your USB
flash drive, and go from there.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-27 Thread kyosohma
On Mar 27, 11:56 am, Brian Erhard [EMAIL PROTECTED] wrote:
 I am still fairly new to python and wanted to attempt a home made
 password protection program.  There are files that I carry on a USB
 flash drive that I would like to password protect.  Essentially, I
 would like to password protect an entire directory of files.  Is there
 a way to auto execute a python script after a user double clicks to
 open a folder on the USB drive? How can you capture that double click
 event on a specific folder?

 Thanks.

I've never done this before, but it sounds cool. You would need to
create some kind of python file object to do this properly. So instead
of actually clicking a folder, you would click a pickled file or
something. I found some cool info about encrypting files here:

http://www.methods.co.nz/python/

There's also a python cryptography kit: 
http://www.amk.ca/python/writing/pycrypt/

Finally, I found a fellow python programmer that wrote his own:
http://mail.python.org/pipermail/python-list/2006-April/378510.html

There's also PortablePython...

Enjoy!

Mike

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-27 Thread Tim Golden
Brian Erhard wrote:
 Is there
 a way to auto execute a python script after a user double clicks to
 open a folder on the USB drive? How can you capture that double click
 event on a specific folder?

That would depend on what desktop / Operating System you're
using. If it's Windows, you need a shell extension (which
is non-trivial to understand and write). If it's one of the
Linux desktops, someone else had better chip in!

TJG
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-27 Thread Shane Geiger



Is there
a way to auto execute a python script after a user double clicks to
open a folder on the USB drive? How can you capture that double click
event on a specific folder?



That would depend on what desktop / Operating System you're
using. If it's Windows, you need a shell extension (which
is non-trivial to understand and write). If it's one of the
Linux desktops, someone else had better chip in!
  


http://www.voidspace.org.uk/python/weblog/arch_d7_2006_07_15.shtml#e390


--


There is a new version of `Movable Python
http://www.voidspace.org.uk/python/movpy/`_
available.

This is available for **Movable Python** for Python 2.2.3, 2.3.5, 2.4.3
and 2.5rc2 from :

   `The Movable Python Groups Page
http://voidspace.tradebit.com/groups.php`_



What is Movable Python
==

Movable Python is a portable distribution of Python for windows,
designed to be run off a USB stick or computers that don't have Python
installed. It features an IDE (Pythonwin and IDLE are included - but
you can also use SPE), and a GUI launcher.

It can be configured to use multiple interpreters from a single
interface, including acting as a GUI for any executable.

It has a host of other features (like logging all output from files,
enabling psyco for all scripts, etc).

See the following link for a list of all the new features in Movable
Python 2.0.0 :


http://www.voidspace.org.uk/python/weblog/arch_d7_2006_07_15.shtml#e390

For an overview of the most important features (with screenshots) see :


http://www.voidspace.org.uk/python/weblog/arch_d7_2006_07_22.shtml#e396

Other uses for Movable Python include testing programs with different
versions of Python, and providing clean install 'sandboxes' for testing
programs. It is also an ideal launcher for IronPython.




--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED]  |  402-438-8958  |  http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

begin:vcard
fn:Shane Geiger
n:Geiger;Shane
org:National Council on Economic Education (NCEE)
adr:Suite 215;;201 N. 8th Street;Lincoln;NE;68508;United States
email;internet:[EMAIL PROTECTED]
title:IT Director
tel;work:402-438-8958
x-mozilla-html:FALSE
url:http://www.ncee.net
version:2.1
end:vcard

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Auto execute python in USB flash disk

2007-03-27 Thread Larry Bates
Brian Erhard wrote:
 I am still fairly new to python and wanted to attempt a home made
 password protection program.  There are files that I carry on a USB
 flash drive that I would like to password protect.  Essentially, I
 would like to password protect an entire directory of files.  Is there
 a way to auto execute a python script after a user double clicks to
 open a folder on the USB drive? How can you capture that double click
 event on a specific folder?
 
 Thanks.
 
Unless you are just doing this to learn, I would suggest you purchase
USB key with encryption included.  They are REALLY cheap.

http://www.kingston.com/flash/DataTravelers_enterprise.asp

-Larry
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Auto execute python in USB flash disk

2007-03-27 Thread José Antonio Salazar Montenegro




I suspect he wants to do this just for the kicks.

Just for completion, Truecrypt
does precisely what you need. It has to be installed, but you could
carry the installer unencrypted in the same USB drive.


Larry Bates wrote:

  Brian Erhard wrote:
  
  
I am still fairly new to python and wanted to attempt a home made
password protection program.  There are files that I carry on a USB
flash drive that I would like to password protect.  Essentially, I
would like to password protect an entire directory of files.  Is there
a way to auto execute a python script after a user double clicks to
open a folder on the USB drive? How can you capture that double click
event on a specific folder?

Thanks.


  
  Unless you are just doing this to learn, I would suggest you purchase
USB key with encryption included.  They are REALLY cheap.

http://www.kingston.com/flash/DataTravelers_enterprise.asp

-Larry
  



NOTA: La informacion de este correo es de propiedad exclusiva y confidencial. Este mensaje es solo para el destinatario indicado, si usted no lo es, destruyalo de inmediato. Ninguna informacion aqui contenida debe ser entendida como dada o avalada por MADISA, sus subsidiarias o sus empleados, salvo cuando ello expresamente se indique. Es responsabilidad de quien recibe este correo de asegurarse que este libre de virus, por lo tanto ni MADISA, sus subsidiarias ni sus empleados aceptan responsabilidad alguna.
NOTE: The information in this email is proprietary and confidential. This message is for the designated recipient only, if you are not the intended recipient, you should destroy it immediately. Any information in this message shall not be understood as given or endorsed by MADISA, its subsidiaries or their employees, unless expressly so stated. It is the responsibility of the recipient to ensure that this email is virus free, therefore neither MADISA, its subsidiaries nor their employees accept any responsibility.

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Auto execute python in USB flash disk

2007-03-27 Thread Ben Finney
Ene [EMAIL PROTECTED] writes:

 Install the free PortablePython from http://www.portablepython.com/
 on your USB flash drive, and go from there.

To be clear: In addition to being a zero-cost download, Portable
Python is free software:

Python® distribution included in Portable Python is licensed under
PSF License, SciTE is licensed under SciTE license and Portable
Python scripts are licensed under GPL license.

URL:http://www.portablepython.com/site/download/

-- 
 \ I know when I'm going to die, because my birth certificate has |
  `\an expiration date.  -- Steven Wright |
_o__)  |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list

Python and USB

2005-03-30 Thread RaviPaike








Rogger,

I am trying to use wrapper for libusb. I downloaded the
Usb.py but I am not sure that I have the libusb installed on my Pc. Can you
help me in getting libusb.py or libusb.c .



Thank you,

Ravi






-- 
http://mail.python.org/mailman/listinfo/python-list