Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Arcade Menu (Fullscreening a Tk App)

by beretboy (Chaplain)
on Oct 15, 2004 at 13:40 UTC ( #399500=perlquestion: print w/ replies, xml ) Need Help??
beretboy has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to write a menu program that can be launched from the command line and take up the entire screen. Thus far I've been successful with the exception of two problems. The X cursor floats irritatingly in the center of the screen and the focus isn't on the window. This is for an arcade cabinet, so this Tk app needs to grab the focus immedieatly without user intervention. The X11 modules look promising, but I've been unable to figure out how to use them to solve the aforementioned problems. Thoughts?


"Sanity is the playground of the unimaginative" -Unknown

Comment on Arcade Menu (Fullscreening a Tk App)
Re: Arcade Menu (Fullscreening a Tk App)
by qumsieh (Scribe) on Oct 15, 2004 at 17:33 UTC
    Hmm .. what do you mean by the X cursor floating in the center of the screen? Can you show us your code? It's really hard to figure out what's wrong without it.

Re: Arcade Menu (Fullscreening a Tk App)
by roju (Friar) on Oct 15, 2004 at 21:07 UTC
    Check out Tk::CursorControl. I believe you want to do
    use Tk::CursorControl; $cursor = $main->CursorControl; #hide the cursor when it is over $widget $cursor->hide($widget);
    over your main window.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://399500]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-08-02 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls