+def warn_missing(data):
+ need = ('window.button.hover.focus', 'window.button.hover.unfocus',
+ 'menuOverlap')
+ for n in need:
+ i, nul, nul = find_key(data, n)
+ if i < 0:
+ out('The ' + n + ' value was not found in the theme, but it '
+ 'can optionally be set.\n')
+
+def err_missing(data):
+ need = ('window.button.disabled.focus', 'window.button.disabled.unfocus',
+ 'window.frame.focusColor', 'window.frame.unfocusColor')
+ for n in need:
+ i, nul, nul = find_key(data, n)
+ if i < 0:
+ out('*** ERROR *** The ' + n + ' value was not found in the '
+ 'theme, but it is required to be set.\n')
+ global valid
+ valid = False