Do you have to show these data on GUI? If so, why not use the event pattern? As far as I know, it's the standard way wxPython works.
BTW : If it's not complicated, I think maybe some wysiwyg solution is better. I use python for almost every thing, except these related to GUI. On Apr 5, 8:31 pm, azrael <jura.gro...@gmail.com> wrote: > I am currently working on an application and I need a advise. > > I am supposed to read data from a device connected to a serial port. I > am reading data using pySerial. The devise is sending signals with a > time between two signals of one second. > > The application is supposed to collect the data and put it into a > sqlite DB. wxPython GUI. > I am worried about this asspect that I have two solutions how to do it > but as I never tried it I wanted to ask for advise which one should be > easier. > > solution 1): > The GUI is set into a separate thread then the part of collecting and > saving data. Well one thread for getting signals and saving data and > the other for GUI and data presentation > > solution 2): > create an event which is binded to pySerial read methon. Well when the > devise sends a signal the event function is triggered. > > Or maybe combine the two? -- http://mail.python.org/mailman/listinfo/python-list