As for Pycharm to associate the QT file Form and QtPy?

Help to associate Pycharm 2017.3.3 with PyQt5.
I tried to follow this video tutorial.
The truth is I have Windows 10.

The installation sequence.
1. PyCharm 2017.3.3
2. python-3.5.2-webinstall
3. PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x32-2

At the moment we have:
5a7494bd721c3450874353.png

The interpreter in PyCharm set up like this:
5a7495ab02f49875083298.png

When you run the file with the extension .ui team External Tools > Qt Designer “Qt Designer” is opened, that is, everything is fine. In the file .py compile this code:

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication, QWidget
if __name__ == '__main__':
 app = QApplication(sys.argv)
 w = QWidget()
 w.resize(250, 150)
 w.move(300, 300)
w.setWindowTitle('Simple')
w.show()
 sys.exit(app.exec_())


Code kompileerimise, that is also OK here. But the problem is that changes made in the file .ui, not as not reflected in the file .py, although he needs to change. For example I added a button in “Qt Designer” and when you compile .py file, it appeared in the program.

At the same time when creating .py file is missing “edit”, “From”:
5a7495da7f604765634815.png

Should be something like this as far as I understand:
5a7495e1980ec061399790.png

This “editor”, as far as I understand, I need to bind .py to .ui ...
But I somehow I don't have it...
June 8th 19 at 16:41
1 answer
June 8th 19 at 16:43
Solution
Found on the Internet by a drag source for .py file and it worked:)
Here it is:
from PyQt5 import uic, QtWidgets
import sys

class Ui(QtWidgets.QDialog):
 def __init__(self):
 super(Ui, self).__init__()
 uic.loadUi('window.ui', self)
self.show()

if __name__ == '__main__':
 app = QtWidgets.QApplication(sys.argv)
 window = Ui()
 sys.exit(app.exec_())

Find more questions by tags PyCharmPyQt