Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'thread': 0.14; '0.5em;': 0.16; '1.5;': 0.16; 'blocking': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:plane.gmane.org': 0.16; 'statement.': 0.16; 'version.': 0.19; 'thanks.': 0.20; 'non': 0.24; 'header:X-Complaints-To:1': 0.27; '0);': 0.29; "doesn't": 0.30; 'another': 0.32; 'rgb(0,': 0.33; 'could': 0.34; 'subject:with': 0.35; 'but': 0.35; 'add': 0.35; 'adjust': 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'color': 0.61; 'subject:skip:S 10': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Synchronizing a sound with a widget change Date: Thu, 13 Nov 2014 11:15:18 -0500 (EST) Organization: news.gmane.org References: <54648d03$0$1981$426a74cc@news.free.fr> <201411132234480664272@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 97.73.240.77 X-Newsreader: PiaoHong.Usenet.Client.VIP:1.65 X-Archive: encrypt X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415895324 news.xs4all.nl 2955 [2001:888:2000:d::a6]:41923 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80691 "Yimr Zero" Wrote in message: > body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Segoe UI'; color: rgb(0, 0, 0); line-height: 1.5; } > Hi, > You may try to add the sleep(5) after the color change statement. You could adjust the sleep time to let the color change and beep synchroize. > Thanks. > But sleep () doesn't have a non blocking version. You'd have to put it in another thread to get it out of the way. -- DaveA