python - How to change text on gtk.label in frequent intervals - PyGTK -
i coding desktop application shows contents text file in gtk.label, update text file, once in every 15 mints. are there methods make application read text file in constant intervals , display without restarting window
on platforms, can call gobject.timeout_add() read file every once in while, or gobject.idle_add() mtime check when app idle.
on linux, i'd recommend using pyinotify monitor file , re-read when it's updated.
Comments
Post a Comment