V
V
Vista2021-07-28 13:20:37
PyQt
Vista, 2021-07-28 13:20:37

PyQt5 how to write logic in separate file?

How can I write the calculator logic in a separate file?

Here is the calculator code:
(Habr does not allow adding the code because it is too long)
https://github.com/xXLareMoonXx/pyqt-calc/tree/main

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
UberPool, 2021-07-28
@UberPool

As an option:
Write logic to a file, import it into the main one.

B
bbkmzzzz, 2021-07-28
@bbkmzzzz

At first, it’s enough to move the interface into a separate
module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question