def dialog_static(label, choice_label, choices, choices_end = {}) -> str:
	"""Generates a selection dialog.

	Args:
		label (str): Title to show at the top.
		choice_label (str): Shown next to the 'select one' dialog.
		choices (dict): First option set.
		choices_end (dict, optional): Second option set, appearing next to quit.

	Returns:
		str: Chosen value.
	"""
	print(label)
	print("")
	for key, text in choices.items():
		print("[" + key + "] " + text)
	print("")
	for key, text in choices_end.items():
		print("[" + key + "] " + text)
	print("[q] Cancel.")
	print("")

	selected = input("[" + choice_label + "] Select one: ")

	for key, text in choices.items():
		if key == selected:
			return key
	for key, text in choices_end.items():
		if key == selected:
			return key
	return "q"