From 2fea25d3d1233e56f92b0d0ca6eee51eee749270 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 27 Jul 2007 16:06:03 +0000 Subject: Free the audio device when not in focus We free the audio device and stop the csound performance when not visible and start it again when in focus. This allows to have several instances on one machine. Commented out to printouts in the svgcard. --- (limited to 'svgcard.py') diff --git a/svgcard.py b/svgcard.py index 38aa767..a20b0ff 100755 --- a/svgcard.py +++ b/svgcard.py @@ -86,7 +86,7 @@ class SvgCard(gtk.DrawingArea): self.back_layout = self.get_text_layout(self.props['back_text'].get('card_text',''), self.size-12) self.back_layout_position = (self.size -(self.back_layout.get_size()[1]/1000))/2 - print str(self.props['back_text']) + # print str(self.props['back_text']) if build_all or self.pprops.has_key('back_border') or self.pprops.has_key('back_text'): self.cache['back'] = self.build_face('back') @@ -238,7 +238,7 @@ class SvgCard(gtk.DrawingArea): self.flop() def get_text_layout(self, text, size): - _logger.error('Text: '+text) + #_logger.error('Text: '+text) if self.size == 184: font_sizes = [50,40,26,20,17,13,11,8] elif self.size == 145: -- cgit v0.9.1