0

I recently learn about Pyqt5 and have some confusion about it. I have finished designing my GUI using Designer and I convert it using the pyuic5 command to start writing function for it, lets say it generate a mainwindow.py. So my question is, is it a best practice to directly write a code on mainwindow.py or should I create a new python file that import it? I want to avoid problem of fixing this in the future. Thank you

Wanttobepro
  • 77
  • 13

1 Answers1

0

It is generally better to import it and extend it, since you can iterate design process and generate new file when design changes.

johnymachine
  • 781
  • 2
  • 7
  • 28