Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80687
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <yimr00@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.025 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'yet.': 0.04; 'root': 0.05; 'tkinter': 0.07; 'thread': 0.14; 'appears.': 0.16; 'ast': 0.16; 'emit': 0.16; 'sound,': 0.16; 'statement.': 0.16; 'tk()': 0.16; 'fix': 0.17; 'widget': 0.19; 'thanks.': 0.20; 'import': 0.22; 'cc:2**0': 0.24; 'code:': 0.26; 'idea': 0.28; 'skip:( 20': 0.30; 'run': 0.32; 'to:name:python-list': 0.33; 'date:': 0.34; 'could': 0.34; 'subject:with': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'adjust': 0.36; "didn't": 0.36; 'thanks': 0.36; 'hi,': 0.36; 'message- id:@gmail.com': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'skip:- 10': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'color': 0.61; 'first': 0.61; 'here': 0.66; 'sound': 0.68; 'received:111': 0.84; 'subject:skip:S 10': 0.84; 'yellow': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:mime-version:message-id :content-type; bh=/EdfQZprC0GRXSTC2PWHcPl/vtIp7vPVlCyEHgOJAow=; b=Pmo4Evvl+vA9dBgcrWerPtVz2eYqZ6kwjB2lNQSZ+vfNvEsQ5PpIf3C54lD2eXyO+0 FzxXLQPqMuYy2hdD796Z5XlBzki6hM1nxlz8pQBBOHdvLD711SzVgOq5YMSyCQp0upRz BdddITygd0TEOcIl5zD6s+9UKIU4VXomUWZrAyptlgaKUsDDm+LIS50kIPR+RotB8DMp 24VDjcABpXyFS4qOi0vCL9d5hs13UU7AD0ctoansj+w9DMw+xkdV6R/pi9qfpBmdAUix W5MOlAhFd2enVq7SWNh61UYuB3l8o/SlczGvG/A+FEDB2PyuP+YjNBYnWNG6Cvdz/bua ycaA== |
| X-Received | by 10.66.220.197 with SMTP id py5mr3112369pac.140.1415889287743; Thu, 13 Nov 2014 06:34:47 -0800 (PST) |
| Date | Thu, 13 Nov 2014 22:34:52 +0800 |
| From | "Yimr Zero" <yimr00@gmail.com> |
| To | python-list <python-list@python.org> |
| Subject | Re: Synchronizing a sound with a widget change |
| References | <54648d03$0$1981$426a74cc@news.free.fr> |
| X-Priority | 3 |
| X-GUID | 36E39166-17EB-4493-A2DE-52995081C487 |
| X-Has-Attach | no |
| X-Mailer | Foxmail 7, 2, 5, 140[cn] |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="----=_001_NextPart406430588155_=----" |
| Cc | ast <nomail@invalid.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15777.1415889291.18130.python-list@python.org> (permalink) |
| Lines | 64 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1415889291 news.xs4all.nl 2915 [2001:888:2000:d::a6]:55695 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80687 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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. Yimr Zero From: ast Date: 2014-11-13 18:50 To: python-list Subject: Synchronizing a sound with a widget change Hello, here is a small test code: ---------------- from tkinter import Tk, Frame from winsound import Beep root = Tk() f = Frame(root, width=300, height=300) f.pack() f.config(bg='Yellow') Beep(2000, 1000) -------------- I intended to change the frame color to yellow (f.config(bg='Yellow')) and at the same time to emit a sound (Beep(2000, 1000)) But I first have the sound and when the sound is over the window appears. Is there a way to fix that ? I have the idea to run an other thread to emit the sound, but I didn't try yet. Is it the solution ? Thanks
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Synchronizing a sound with a widget change "ast" <nomail@invalid.com> - 2014-11-13 11:50 +0100
Re: Synchronizing a sound with a widget change "ast" <nomail@invalid.com> - 2014-11-13 11:56 +0100
Re: Synchronizing a sound with a widget change "ast" <nomail@invalid.com> - 2014-11-13 12:06 +0100
Re: Synchronizing a sound with a widget change Dave Angel <davea@davea.name> - 2014-11-13 06:42 -0500
Re: Synchronizing a sound with a widget change "ast" <nomail@invalid.com> - 2014-11-13 14:25 +0100
Re: Synchronizing a sound with a widget change "Yimr Zero" <yimr00@gmail.com> - 2014-11-13 22:34 +0800
Re: Synchronizing a sound with a widget change Dave Angel <davea@davea.name> - 2014-11-13 11:15 -0500
csiph-web