From http://qt-project.org/wiki/PySideSimplicissimus_Module_2_CloseButton