Hello fellow monks,
I asked some specific questions on this item before, but
I haven't quite found the answer I needed. I'm sure that
my explanation of what I wanted to do is the reason for this.
I'm writing an application which shows a number of images
on the screen, and it lets the user browse through these
images until he or she finds the correct one, and with some
mouse-action (probably leftclick...) this one is selected.
Very simple, but there is one big difficulty: the application
is for disabled people who cannot operate a mouse. There is,
however, a device that translates certain actions by disabled
people into mouse-events. In case of my daughter: she has a
'thing' around her head (I don't know the english translation for the dutch word 'hoofdsteun')
connected to this device, and when she moves her head right or
left, a (configurable) mouse-event is generated. These two actions
are the only actions that can be generated. I can however configure
what mouse-event is generated by moving her head left or right.
The possibilities are 'left single click', 'right single click',
'left double click', 'right double click', 'left triple click',
'mouse up', 'mouse down', 'mouse left', 'mouse right'.
To operate the PC normally and to start the program, still
a mouse is connected, which can accidentally be moved.
I thought using Tk was the simplests option. The problem
however is that I defined 'single click left' to select the
active image, and 'single click right' to activate the image
to the right (browse). But when the mouse is accidentally moved
(the whole installation is on a laptop on a wheelchair...it moves...)
the mousepointer moves out of the active window, and a single
click left or right after that moves the focus outside of the
program and the disabled person needs non-disabled to correct
this.
I already started the program in maximized size, but still
a gnomepanel or windows-startbar is visible (and clickable).
Does anyone have an idea how to solve this? Should I use
something else for this? Is it possible to run it fullscreen?
Any help would be greatly appreciated
Jouke Visser, Perl 'Adept'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.