ENH: added compatability with pyuic promotion