set_focus_on_click


Description:

[ Version ( deprecated = true , deprecated_since = "3.20" , since = "2.10" ) ]
public void set_focus_on_click (bool focus_on_click)

Warning: set_focus_on_click is deprecated since 3.20.

Sets whether the button will grab focus when it is clicked with the mouse.

Note:

Use set_focus_on_click instead

Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.

Parameters:

this

a FileChooserButton

focus_on_click

whether the button grabs focus when clicked with the mouse