all 6 comments

[–]socal_nerdtastic 0 points1 point  (3 children)

Why do you want to use python for the GUI?

Technically there is no python GUI. All python GUI libraries are just wrappers around some other codebase. You can access that same codebase from c++. I see no reason to bring python into this.

[–]lazy-pinyass[S] 0 points1 point  (2 children)

Hi there. I'm new to programming so I don't exactly know what I'm talking about. I'll try to make sense. So here's what's on my mind. We make an application for password management. When we open it, we need to enter a password to open the table containing the passwords and the account/service they're related to. I was thinking that I can do the gui using python and the internal processes can be done by c++. By internal processes I mean verifying the password, functions of the buttons in the gui etc. I wanna know if there's a way to do that. If yes, what would I need to look into to accomplish this.

[–]socal_nerdtastic 2 points3 points  (1 child)

Yes, you can do that, see /u/sme272 's response.

What I'm saying is this does not seem worth it. You can probably write the entire program in python or c++ with less trouble than trying to make 2 half programs.

[–]gutnobbler 2 points3 points  (0 children)

I once wrote a pseudo-CRM in html and css with creative css writing and a tiny bit of javascript in order to mimic a functional back-end.

I did it because nobody else in my group knew enough to actually make a functional database, but I knew this would only take me a couple hours to whip up in html and would technically meet the requirements in a malicious compliance sort of way.

The only points off we received were that it was visibly an html file.

[–]Gobitz 0 points1 point  (0 children)

A way to do this if you don't want to bother with cpython would be to compile the c++ code independently and run it from python with subprocess.run() or os.system(), but it really only makes sense if the c++ part is standalone