Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

Replies are listed 'Best First'.
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.
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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-05-20 16:04 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (75 votes). Check out past polls.