Back to index

gcompris  8.2.2
Classes | Functions | Variables
tuxpaint Namespace Reference

Classes

class  Gcompris_tuxpaint

Functions

def child_callback
def stop_board

Variables

 pid = None

Function Documentation

def tuxpaint.child_callback (   fd,
  cond,
  data 
)

Definition at line 227 of file tuxpaint.py.

00227 
00228 def child_callback(fd,  cond, data):
00229   # restore pointergrab if running fullscreen
00230   if (gcompris.get_properties().fullscreen and
00231       not gcompris.get_properties().noxf86vm):
00232     gtk.gdk.pointer_grab(data.window.window, True, 0, data.window.window)
00233   #global board
00234   #board.window.set_property("accept-focus", 1)
00235   #board.window.set_keep_above(False)
00236   gcompris.sound.reopen()
00237 
00238   #a bug in tuxpaint 9.14: it does not suppress it lockfile
00239   lockfile = os.getenv('HOME') + '/.tuxpaint/lockfile.dat'
00240 
00241   try:
00242     os.remove(lockfile)
00243   except:
00244     print lockfile, 'not removed.'
00245 
00246   global pid
00247   pid = None
00248   gcompris.bar_hide(0)
00249   gcompris.bonus.board_finished(gcompris.bonus.FINISHED_RANDOM)

Definition at line 250 of file tuxpaint.py.

00250 
00251 def stop_board():
00252   gcompris.bonus.board_finished(gcompris.bonus.FINISHED_RANDOM)
00253 

Variable Documentation

tuxpaint.pid = None

Definition at line 34 of file tuxpaint.py.