tests.glade package¶
Submodules¶
tests.glade.check_accelerators module¶
- tests.glade.check_accelerators.add_check_accel(glade_filename, accels, label, po_map)¶
Check whether an accelerator conflicts with existing accelerators. and add it to the current accelerator context.
- tests.glade.check_accelerators.check_glade(glade_filename, po_map=None)¶
- tests.glade.check_accelerators.combine_accels(glade_filename, list_a, list_b, po_map)¶
- tests.glade.check_accelerators.is_exception(node, conflicting_node, language=None)¶
- tests.glade.check_accelerators.main(argv=None)¶
- tests.glade.check_accelerators.process_object(glade_filename, interface_object, po_map)¶
Process keyboard shortcuts for a given glade object.
The return value from this function is a list of accelerator dictionaries, with each consiting of accelerator shortcut characters as keys and the corresponding <object> Element objects as values. Each dictionary represents a set of accelerators that could be active at any given time.
tests.glade.check_format_string module¶
Python script to ensure that translatable format strings are not present in Glade files.
Since format substitution is language-dependent, gettext is unable to check the validity of format string translations for strings within glade. Instead, the format string constant, the translation substitution, and the format substitution should all happen outside of glade. Untranslated placeholder strings are allowable within glade.
- tests.glade.check_format_string.check_glade_file(glade_file_path)¶
tests.glade.check_icons module¶
Check that all icons referenced from glade files are valid in the gnome icon theme.
- tests.glade.check_icons.check_glade_file(glade_file_path)¶
tests.glade.check_invisible_char module¶
Check that the invisible_char in glade files is actually a char.
The invisible char is often non-ASCII and sometimes that gets clobbered.
- tests.glade.check_invisible_char.check_glade_file(glade_file_path)¶
tests.glade.check_markup module¶
Python script to check that properties in glade using Pango markup contain valid markup.
- exception tests.glade.check_markup.PangoElementException(element)¶
Bases: builtins.Exception
- tests.glade.check_markup.check_glade_file(glade_file_path, po_map=None)¶
tests.glade.check_pw_visibility module¶
Simple python script checking that password GtkEntries in the given .glade files have the visibility set to False.
- tests.glade.check_pw_visibility.check_glade_file(glade_file_path)¶
tests.glade.check_viewport module¶
Check that widgets that implement GtkScrollable are not placed within a GtkViewport. If a widget knows how to scroll itself we probably don’t want to add an extra layer.
- tests.glade.check_viewport.check_glade_file(glade_file_path)¶