Hello,
I'm writing an audio player console application.
This is not purely GTK, but it uses gobject.
It requires:
1) running gobject.MainLoop in order to be notified of gstreamer events
2) catching user input from keyboard
I try to read user input in a thread, but it does not work.
Then, in my thread:
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
User input is not read in the thread until I stop main loop (control-c).
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
How can I run main loop and listen to user input at the same time?

 

 
		
		 
         
 


 gobject main loop and sys.stdin.readline
 gobject main loop and sys.stdin.readline
				 Répondre avec citation
  Répondre avec citation
Partager