File selection element with text field and browse button.
Displays selected file path and allows browsing filesystem via dialog.
Supports file filtering and custom icons.
Attributes:
file_path (str): Currently selected file path.
file_filter (List[str]): List of file extensions to filter.
dialog_title (str): Title for file dialog.
button_text (str): Text for browse button.
show_icon (bool): Whether to show file icon.
def __init__(self: Any, x: int, y: int, width: int, height: int, file_path: str = '', file_filter: Optional[List[str]] = None, dialog_title: str = 'Select File', button_text: str = 'Browse...', show_icon: bool = True, icon_path: Optional[str] = None, root_point: Tuple[float, float] = (0, 0), theme: ThemeType = None, element_id: Optional[str] = None) -> Any
def _check_tkinter(self: Any) -> bool
def _create_child_elements(self: Any) -> Any
def _get_default_icon(self: Any) -> pygame.Surface
def set_file_path(self: Any, path: str) -> Any
def _update_icon(self: Any) -> Any
def _open_file_dialog(self: Any) -> Any
def _open_tkinter_dialog(self: Any) -> Any
def _open_simple_dialog(self: Any) -> Any
def _get_initial_directory(self: Any) -> Optional[str]
def set_on_file_selected(self: Any, callback: Callable[[str], None]) -> Any
def get_file_path(self: Any) -> str
def update(self: Any, dt: float, inputState: InputState) -> Any
def render(self: Any, renderer: Renderer) -> Any