By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,910 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,910 IT Pros & Developers. It's quick & easy.

How to pass a Python GUI radio button selection in to C++ function

P: 1
Hi ,

I am working on a project using C/C++ in linux environment. Our program right now using the command line(console window) inputs and starts executing.

command on console are to start program is,

./exe

Please enter the selections( displays 1to 6 options)
if either of them selected the program starts.

Since my supervisor needs a small GUI interface he suggested to use Python and give the user 6 radio buttons and if one of them chosen then start the program instead of console. I used gtk module option in python and have created the 6 radio buttons and one button for(Submission). But I am not sure how to get the radio button input and start my C/C++ programm. On other words tie together the radio selection in python as a selection of my programm.

I hope there is a way to do that and if any boday knows please post the reply as soon as possible.

Thanks

Cheers
Para
Mar 4 '07 #1
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
Hi ,

I am working on a project using C/C++ in linux environment. Our program right now using the command line(console window) inputs and starts executing.

command on console are to start program is,

./exe

Please enter the selections( displays 1to 6 options)
if either of them selected the program starts.

Since my supervisor needs a small GUI interface he suggested to use Python and give the user 6 radio buttons and if one of them chosen then start the program instead of console. I used gtk module option in python and have created the 6 radio buttons and one button for(Submission). But I am not sure how to get the radio button input and start my C/C++ programm. On other words tie together the radio selection in python as a selection of my programm.

I hope there is a way to do that and if any boday knows please post the reply as soon as possible.

Thanks

Cheers
Para
ctypes is probably the way to go. I'll have to look more closely at your problem.
See this link for a ctypes intro.
Mar 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.