C GTK+ periodic event to update the UI

前端 未结 1 507
清酒与你
清酒与你 2020-12-21 06:22

How can I update a GTK+ interface on a periodic event. For example, let\'s say I wanted to update a text field containing the time every 200 milliseconds. How is this typica

相关标签:
1条回答
  • 2020-12-21 07:03

    This tutorial has an example. (Search for the section titled "A timer example".)

    The short answer is "use g_timeout_add".

    0 讨论(0)
提交回复
热议问题