I need to make an application with GUI built on gtk, that checks socekets for incoming messages and displays statistics as they are gathered without any imput from user.
How can this be organised?
I need to make an application with GUI built on gtk, that checks socekets
Share
I’d know how to do it using PyGtk and PyGObject but I never did something like it in C. However, I have a suggestion to you: try the
g_io_add_watchfunction from GLib (which is base for GObject as well). It worked well in Python for me (and were much more practical to use BTW) and the Python version is just a wrapper for the original C function. Since GTK+ is based in GObject and GObject uses GLib extensively, you already have this function available in your development environment and it should work well with GTK+.