Monitoring updating directory for image for GUI

MRAB python at mrabarnett.plus.com
Tue Feb 12 00:50:25 CET 2013


On 2013-02-11 22:50, ciscorucinski at 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.



More information about the Python-list mailing list