KeyFile#
- class KeyFile(**kwargs)#
- Constructors:
new() -> GLib.KeyFile
Constructors#
Methods#
- class KeyFile
-
- get_locale_for_key(group_name: str, key: str, locale: str | None = None) str | None #
- Parameters:
group_name
key
locale
- get_locale_string(group_name: str, key: str, locale: str | None = None) str #
- Parameters:
group_name
key
locale
- get_locale_string_list(group_name: str, key: str, locale: str | None = None) list[str] #
- Parameters:
group_name
key
locale
- load_from_bytes(bytes: Bytes, flags: KeyFileFlags) bool #
- Parameters:
bytes
flags
- load_from_data(data: str, length: int, flags: KeyFileFlags) bool #
- Parameters:
data
length
flags
- load_from_dirs(file: str, search_dirs: Sequence[str], flags: KeyFileFlags) tuple[bool, str] #
- Parameters:
file
search_dirs
flags
- load_from_file(file: str, flags: KeyFileFlags) bool #
- Parameters:
file
flags
- remove_comment(group_name: str | None = None, key: str | None = None) bool #
- Parameters:
group_name
key
- set_boolean_list(group_name: str, key: str, list: Sequence[bool]) None #
- Parameters:
group_name
key
list
- set_comment(group_name: str | None, key: str | None, comment: str) bool #
- Parameters:
group_name
key
comment
- set_double_list(group_name: str, key: str, list: Sequence[float]) None #
- Parameters:
group_name
key
list
- set_integer_list(group_name: str, key: str, list: Sequence[int]) None #
- Parameters:
group_name
key
list
- set_locale_string(group_name: str, key: str, locale: str, string: str) None #
- Parameters:
group_name
key
locale
string
- set_locale_string_list(group_name: str, key: str, locale: str, list: Sequence[str]) None #
- Parameters:
group_name
key
locale
list