Python code from qtDesigner