Re: Monitoring updating directory for image for GUI

2013-02-13 Thread Piet van Oostrum
ciscorucin...@gmail.com writes: > WOW...I am thinking that all of this was actually unnecessary, I don't think > I need a Queue, or List / Stack, or any traversal of the file system to > accomplish this!! > > I only need one image displayed at a time and don't care about them > after a newer ima

Re: Monitoring updating directory for image for GUI

2013-02-11 Thread MRAB
On 2013-02-11 22:50, ciscorucin...@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 -

Re: Monitoring updating directory for image for GUI

2013-02-11 Thread ciscorucinski
WOW...I am thinking that all of this was actually unnecessary, I don't think I need a Queue, or List / Stack, or any traversal of the file system to accomplish this!! I only need one image displayed at a time and don't care about them after a newer image is generated. So my prototype of just re

Re: Monitoring updating directory for image for GUI

2013-02-08 Thread Oscar Benjamin
On 8 February 2013 17:09, wrote: >> So you have a thread that updates the image and then checks the stack >> to see if a new image is available? Can you not just have it only try >> to load the newest image? > > That is what I am trying to figure out how to do. I have a counter that > updates w

Re: Monitoring updating directory for image for GUI

2013-02-08 Thread ciscorucinski
> Who/what are you responding to here? You haven't included any context > from what you're replying to. Sorry, never really used Google Groups, or anything like this before. That I was responding to only Chris Angelico with his question of how real-time it needed to be...since it takes some ti

Re: Monitoring updating directory for image for GUI

2013-02-07 Thread Oscar Benjamin
On 8 February 2013 00:48, wrote: > Real-time...as close to real-time as possible. That is why I did not really > want to use a queue. That is because if a bunch of the thread that create the > images finish really close to one another (when they should be spread out > based on how the music is

Re: Monitoring updating directory for image for GUI

2013-02-07 Thread ciscorucinski
Real-time...as close to real-time as possible. That is why I did not really want to use a queue. That is because if a bunch of the thread that create the images finish really close to one another (when they should be spread out based on how the music is played), then there would be a larger "lag

Re: Monitoring updating directory for image for GUI

2013-02-07 Thread Piet van Oostrum
ciscorucin...@gmail.com writes: > Hello, > > I have been using Python for a few months now, so I am still learning a few > things here and there. > > Basically I am creating a program that will stream musical notes into a > program called Lilypond one-by-one and it will create the sheet music fo

Re: Monitoring updating directory for image for GUI

2013-02-07 Thread Alain Ketterlin
ciscorucin...@gmail.com writes: > Basically I am creating a program that will stream musical notes into > a program called Lilypond one-by-one and it will create the sheet > music for that stream of music via OS command. Your understanding of > Lilypond is not needed, but you need to know that for

Re: Monitoring updating directory for image for GUI

2013-02-06 Thread Chris Angelico
On Thu, Feb 7, 2013 at 9:02 AM, wrote: > Basically I am creating a program that will stream musical notes into a > program called Lilypond one-by-one and it will create the sheet music for > that stream of music via OS command. Your understanding of Lilypond is not > needed, but you need to kn

Monitoring updating directory for image for GUI

2013-02-06 Thread ciscorucinski
Hello, I have been using Python for a few months now, so I am still learning a few things here and there. Basically I am creating a program that will stream musical notes into a program called Lilypond one-by-one and it will create the sheet music for that stream of music via OS command. Your