这里,我将窗口小部件设置为可视的,然后启动GTK +主事件循环。
Here I set the widgets to be visible, and start the GTK + main event loop.
本质上,这个策略是创建带回调的一串窗口小部件,然后进入一个主事件循环。
Essentially, the strategy is to create a bunch of widgets with callbacks, then enter a main event loop.
将长时间的计算从主事件循环线程移到别的线程中,从而提高用户接口的响应速度。
Multithreading your application improves the responsiveness of your user interface by moving long calculations into separate threads and away from your main event loop.
创建所需的网络监听套接字,注册在执行期间要调用的事件,然后启动主事件循环,让libev处理过程的其余部分。
You create the necessary network listening sockets, register the events to be called during execution, and then start the main event loop with the libev handling the rest of the process.
创建所需的网络监听套接字,注册在执行期间要调用的事件,然后启动主事件循环,让libev处理过程的其余部分。
You create the necessary network listening sockets, register the events to be called during execution, and then start the main event loop with the libev handling the rest of the process.
应用推荐