Simple perl tk question

Tifababy

Senior member
Feb 5, 2001
654
1
81
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.
 

Tifababy

Senior member
Feb 5, 2001
654
1
81
Easier than I thought. Sometimes the most obvious answers are so hard to find :)

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