Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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
Node Status?
node history
Node Type: perlquestion [id://399500]
Approved by Arunbear
[atcroft]: .oO(Then there is the effect if a site changes their timezone, such as when the International Date Line was moved by the purchase of Alaska by the US from Russia in 1867, or several places (I cannot recall off-hand) that moved from one side of the Date
[atcroft]: Line to the other recently....)
[atcroft]: .oO(Then again, you also have to be careful if you had it to the database, and be aware of any assumptions it makes (such as SQLite assuming Gregorian calendar and a day of exactly 86400 seconds)...)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-04-29 04:56 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.