On 3/29/2012 3:15 PM, Kent A. Reed wrote: > On 3/29/2012 3:46 PM, Dave wrote: >> The back end of that tutorial link I sent, parts 3 and 4 have an example >> of linking the Glade3 results into a C program. >> >> http://www.micahcarrick.com/gtk-glade-tutorial-part-3.html >> >> <...> >> Dave >> >> >> >> On 3/29/2012 12:39 PM, Jon Elson wrote: >>> Kent A. Reed wrote: >>> >>>> <...> >>>> >>>> >>> Well, I made major progress in using gtkbuilder and created a GUI and >>> the Python >>> code to make it do stuff. So, I have radiobuttons, regular buttons, a >>> spin box and >>> some textboxes that display info from the Python. That's GREAT! >>> >>> Now, I need to figure out how to interface this to the C code that will run >>> the hardware. This might be through swig, unless somebody has a better >>> idea. >>> >>> Learning how to use the OMAP's GPIO without stepping on any important toes >>> took some time, but I have that figured out from the earlier project. >>> >>> Jon >>> >>> > Jon: > > It sounds like you are well on your way. > > If the entire program is in C then I'd follow Dave's advice. If it is a > mixture of Python and C, then, yes, SWIG can be pressed into service but > it is possible to avoid it. See, for example, > http://csl.sublevel3.org/C-functions-from-Python/ > > Note that the author of this piece suggests employing SWIG for larger > libraries. > > Regards, > Kent >
PS - Sometimes it pays to look at a problem through the opposite end of the telescope. In that vein, don't forget it is possible to embed Python within C instead of using C to extend Python. Regards, Kent ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
