Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'deletes': 0.09; 'gui': 0.11; 'component': 0.15; '22:50,': 0.16; 'example).': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'subject:GUI': 0.16; 'subject:image': 0.16; 'wrote:': 0.17; 'basically': 0.17; 'tries': 0.17; 'second': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; 'in.': 0.27; '(maybe': 0.29; 'image,': 0.29; 'name?': 0.29; 'class': 0.29; 'notes': 0.30; 'file': 0.32; 'could': 0.32; 'legacy': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'updated': 0.34; 'there': 0.35; 'but': 0.36; 'being': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'easy': 0.60; 'email addr:gmail.com': 0.63; 'grab': 0.64; 'header :Reply-To:1': 0.68; 'eyes': 0.69; 'reply-to:no real name:2**0': 0.72; 'now)': 0.84; 'reply-to:addr:python.org': 0.84; 'updated,': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=Tv4_tr9OjFAA:10 a=90STFxZ1HJYA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=uRq1ScRsrDEA:10 a=pGLkceISAAAA:8 a=tK03IaGkyeeo6GkyjRYA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Mon, 11 Feb 2013 23:50:25 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Monitoring updating directory for image for GUI References: <8a572770-9cc1-4b65-9053-10fd6c2f543b@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360626611 news.xs4all.nl 6850 [2001:888:2000:d::a6]:56224 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38710 On 2013-02-11 22:50, ciscorucinski@gmail.com wrote: [snip] > > So I would only create one image location at "images\sheetMusic.png" > and that file would be continuously updated as new notes are streamed > in. My "monitor" class (might be a legacy component now) would > basically look for that one image - "images\sheetMusic.png", grab it, > and update the GUI at an interval that is easy on the eyes (maybe a > half second for example). > > Could there be a problem where the image is being updated, so the OS > deletes the image, and my program tries to update the image but > cannot find it, and the OS reassigns that file location to that > previous file location and name? > [snip] You could create the image under one name and then copy or move/rename it for display.