# Gtk::Entry and default focus on startup

**URL:** <https://www.ruby-forum.com/t/gtk-entry-and-default-focus-on-startup/92475>\
**Category:** Ruby-Gnome 2\
**Created:** [April 19, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/gtk-entry-and-default-focus-on-startup/92475 "2007-04-19T21:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [April 19, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/gtk-entry-and-default-focus-on-startup/92475/1 "2007-04-19T21:19:44Z")

</div>

Hi there,

first thanks for the various helpful pointers, even though I dont  
reply (due to batch-mode digest, and this free email. Makes  
emails a bit difficult) 🙂

Now, my question is:

I have several Gtk::Entries. How can I give one entry default  
input focus, so that a user can type with his keyboard, and  
have the text appear in a specific Gtk::Entry box?

Right now in my application it is always the first entry that  
is selected (it is also the only entry that will have  
a text on startup… i am trying to do a “type trainer”  
in GTK)

=  
Invention Idea: Start Here  
Davison helps design, develop, and present inventions to corporations.  
[http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=8cd6327f526d26e8efb9140ab104c5e4](http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=8cd6327f526d26e8efb9140ab104c5e4)

–  
Powered by Outblaze

* * *

This [SF.net](http://SF.net) email is sponsored by DB2 Express  
Download DB2 Express C - the FREE version of DB2 express and take  
control of your XML. No limits. Just data. Click to get it now.  
[http://sourceforge.net/powerbar/db2/](http://sourceforge.net/powerbar/db2/)
