a widget has focus if it will receive input events
Basic S3 method
For some widgets, this sets user focus (e.g. gedit gets focus for typing). For others, settig the focus calls the raise methods. (for gwindow, it will raise the window)
Basic S3 method for focus
1 2 3 4 5 6 7 8
logical. Set focus state.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.