Interacting with a gtk.container while gtk.main() is executing?
问题 Experimenting with a battery monitor icon at the moment in Python using pygtk and egg.trayicon to create an icon to display a battery icon/tooltip. I seem to be able to add the icon and the tooltip text, but when it then reaches the gtk.main() stage I need a way to modify these so it can then show the updated values. I've tried gobject.idle_add() and gobject.timeout_add() without much luck, not sure where to go from this. Anyone got any ideas? EDIT : Perhaps not the clearest of questions. I