From: Sergei N. <vo...@ra...> - 2015-01-13 13:20:47
|
13.01.2015, 17:12:27 пользователь Arjen Markus (Arj...@de...) написал: > What happens if you do not use g_timeout()? I’d say the plot should appear (at least the axes). Nop... I moved it to the end if init_app() and the axes appeared. Probably because plotting happens in the main gtk loop. But in this case when the time comes to call update_from_modbus() it dumps this to the console: *** PLPLOT ERROR, ABORTING OPERATION *** plsym: Please set up window first, aborting operation The reason seems to be understandable: plend() closes the context of drawing. So it comes to my original question, how is drawing done across threads? -- Sergei |