#!/usr/bin/env python3 from pyui import master validate = master.keyboard.validate(master.keyboard())