.open(filename, os.O_RDWR |
os.O_NONBLOCK)
self.fd = os.open(filename, os.O_RDONLY | os.O_NONBLOCK)
Runs great.
Thanks again.
[EMAIL PROTECTED] wrote:
> Hello dfaber,
>
> I had the same problem not long ago. I tried to use the Xlib since its
> obvious the X server has all the events bu
That IS brain-crushingly complicated. However, thanks for the insight.
I really appreciate it.
Dennis Lee Bieber wrote:
> On 17 Jul 2006 21:00:09 -0700, "dfaber" <[EMAIL PROTECTED]> declaimed
> the following in comp.lang.python:
>
> > Is there no clean method of a
Is there no clean method of accessing the keyboard device or the mouse
on linux?
It seems that looking at /proc/interrupts might prove to be useful for
keyboard monitoring. What about checking if the left mouse button is
clicked or finding the position of the cursor on the screen?
--
http://mail.
So, how would I access /dev/input/ devices?
Can I just 'cat' them or read in those files?
Diez B. Roggisch wrote:
> [EMAIL PROTECTED] schrieb:
> > Diez> You could use the /dev/input/event* devices.
> >
> > On the only Linux system I have available (Mojam's CentOS-based web server),
> > /dev/i
So, how would I access /dev/input/ devices?
Can I just 'cat' them or read in those files?
Diez B. Roggisch wrote:
> [EMAIL PROTECTED] schrieb:
> > Diez> You could use the /dev/input/event* devices.
> >
> > On the only Linux system I have available (Mojam's CentOS-based web server),
> > /dev/i
Hi all,
I have been searching for a keyboard and mouse tracker on linux. I've
read solutions (watch at sourceforge) which look at /proc/interrupts to
check keyboard or mouse activity. I also read one post where "watch"
seems to have difficulty tracking usb keyboards and mice. So, I'm out
of ideas
Aloha!
I want to terminate a process/program from within a python script.
For example,
if I have a program say foo.sh that starts running, then I can run it
from within a python script using
os.popen('foo.sh') which starts a program/process say 'bar'
At some point later, I want to kill 'bar'. C
I use Eclipse with the Pydev plugin. It's great way to start
familiarizing yourself with Python. The editor has got great features
and the debugger will be a great help too. Vim is great too but may be
not a good idea if you are new to Python.
Good luck!
--
http://mail.python.org/mailman/listinf
Hi again,
I've tried a the Sane interface from PIL and I get the following
error, when I run the demo_pil.py from the Sane directory.
SANE version: (16777231, 1, 0, 15)
Available devices= [('v4l:/dev/video0', 'Noname', 'Logitech QuickCam
Thank you for your help. I will look around for v4l modules too.
--
http://mail.python.org/mailman/listinfo/python-list
It is a Win32 Python Extension. I am looking for something that work
on Linux.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have Logitech webcam and I need to grab images on Fedora Core 4 (not
my favorite distro). Are there any python modules available for doing
this? Any hints or suggestions would be welcome.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo