Merge pull request #20 from fayvel/deprecated

Replace deprecated functionality with new ones
pyqt5