great help, and great link, thanks again.<br>shawn<br><br><div><span class="gmail_quote">On 12/30/06, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
shawn bright wrote:<br>> Kent, Thanks.<br>> this is great. Yes, when i start the thread, i also pass the gtk object<br>> to it.<br>> kinda like this.<br>><br>> serial_1 = Serial1(self.serial_1_buffer, self.serial_1_view
)<br>> serial_1.start()<br>><br>> so i am wanting to change that, but i do not exactly know how to stop a<br>> thread once i have it running, so that i could start another one.<br><br>The usual way to stop a thread is to set a flag that the thread checks.
<br>Here is an example using a threading.Event as a flag:<br><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65448">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65448</a><br><br>> anyway, thanks for the link and the info, i am going to get started on
<br>> testing this right away. This long a .py script is becomming a headache<br>> and i think it will be easier by far if it is pulled apart somewhat.<br><br>Yes, 4000 lines is pretty long for one file IMO.<br><br>
Kent<br><br><br></blockquote></div><br>