Answer the question
In order to leave comments, you need to log in
How to combine python and c++?
I am learning python, my friend is c++. I tried to learn GUI in python, but somehow it didn't work out. I would like the functionality to be written in python, for example, and the interface in C++. It is desirable links in Russian. thanks in advance
Answer the question
In order to leave comments, you need to log in
The C++ interface in the vast majority of cases is Qt. For Python, there is the PyQt library, which represents a very close API and all the wealth of functionality.
Are you sure that with your level of understanding / knowledge of Python, C ++, you and your friend can handle this task? Maybe it's better to start focusing on one thing, otherwise "for two birds with one stone ....". Yes, the interface in C ++ for functionality in Python is somehow very "specific".
However, ask - well, please, Even in Russian:
https://habr.com/ru/post/168083/
https://ru.stackoverflow.com/questions/39243/Launch...
https://habr.com/ ru/post/466181/
https://python-scripts.com/question/10550
Well, here is the canonical approach, though not in Russian.
https://docs.python.org/3/extending/embedding.html
A GUI in python should be much easier to write than in C++. You have a dubious team with a friend ...
And from fresh: https://habr.com/en/post/499152/
I would do the opposite. High level things. Moulds. Mouse clicks. I would do user actions in Python. And time-critical things (working with files and network and business logic) - in C ++.
The fact that C++ has Qt with molds says nothing. This is like a rare exception to the rule. It's like using the example of a meteorite fall to prove that there is iron in the sky and we urgently need to mine it in space.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question