The observer pattern (publish/subscribe) comes to mind. Note that a GUI is an event driven system. You should somehow signal some GUI logic to do a redraw/update if the model (your network nodes) change. The most simple way is to let the nodes signal an event (call a function/method) that triggers GUI logic to schedule an update.
Hope this helps, Arjan On 8 Sep 2011, at 17:27, Petr Kubánek wrote: > How you upgrade GUI? Is the code running GUI upgrades doing something? > Are you upgrading GUI in a loop, idle method, in timers or in extra > thread? > > Petr > > ravi ravi píše v St 07. 09. 2011 v 23:23 +0100: >> hello, >> >> I am developing a GUI using PYGTK. I am really puzzled on how to make >> my GUI update dynamically. I am working on a networking project. I am >> representing each node in the network with an image. My GUI does not >> update when the number of nodes change during run time. Please help me >> out >> >> >> >> -- >> >> Ravindra Nagireddy >> _______________________________________________ >> pygtk mailing list [email protected] >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ > > > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
