469,919 Members | 2,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,919 developers. It's quick & easy.

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

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
1 2246
bartonc
6,596 Expert 4TB
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.

Similar topics

6 posts views Thread by Craig Keightley | last post: by
3 posts views Thread by D.P. Roberts | last post: by
16 posts views Thread by Stuart | last post: by
267 posts views Thread by Xah Lee | last post: by
3 posts views Thread by Chris Marsh | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.