• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple perl tk question

Tifababy

Senior member
I'm trying to create a simple perl tk application and when the main window pops up, I'd like to be able to have the cursor in the entry box so the user doesn't need to use the mouse to first click in the text box. Similar to a .focus() in javascript.

Is this possible? Google hasn't been helpful so far.
 
Easier than I thought. Sometimes the most obvious answers are so hard to find 🙂

$main->Entry(blah blah)->pack()->focus();
 
Back
Top