threading

2008-08-13 Thread Parimala

Hello,

  I am using *python2.5.1* version to run my test scripts. I want 
to use '*threading*' module in my tests. As a startup program, I had run 
the following one.


*import threading
import sys
import time

def hello():
 i=0
 try:
   while i<10:
 print "hi"
 time.sleep(1)
 i+=1
 except KeyboardInterrupt:
   print 'KeyboardInterrupt'
   raise KeyboardInterrupt

try:
 thread=threading.Thread(target=hello,args=())
 thread.start()
except KeyboardInterrupt:
 print 'KeyboardInterrupt'
 raise KeyboardInterrupt*

once program starts, problem is..
I am not able to abort the thread using (CTRL+C) *KeyboardInterrupt*.  
While running if I press CTRL+C, it won't generate any exception until 
the end of the execution. Once the execution gets over,  it will give 
"*Exception exceptions.KeyboardInterrupt in 'C:\python25\lib\threading.py*'*> ignored*" this message and exits.


I had gone through some documents, it says if a thread is joined with 
*.join()* method then we can't stop that process until it releases the 
lock what it acquired. But in the above program I didn't use *.join()* 
method but still I am not able to abort the thread.


Could you please suggest me how can I abort the thread at any point in 
time using CTRL+C.


Thank you.

Regards,
Parimala.






##
The information transmitted is intended for the person or entity to which it is 
addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination, copying or other use of, 
or taking any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you 
have received this in error, please contact the sender and delete
the material from your system. Accord Software & Systems Pvt. Ltd. (ACCORD) is 
not responsible for any changes made to the material other
than those made by ACCORD or for the effect of the changes on the meaning of 
the material.
##
--
http://mail.python.org/mailman/listinfo/python-list

how to combine two applications in pygtk

2007-04-16 Thread PARIMALA KALAVALA

hi,

   I want to know how to integrate two applications in pygtk. Should we
add any  header files in the main program or import any modules.
   also if we need to import any modules then how to convert the
application in a module.
   Pls reply to this mail as soon as possible.
Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list

regarding tree iterators

2007-04-16 Thread PARIMALA KALAVALA

hi ,

I wanted to know how to move data from one row to another row  or how to
copy contents of one row to another row if we click any button  in a table
in pygtk.

Do we need to use get value and set value methods in tree iterators.


pls reply to this as early as possible.

Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list

how to copy the contents of pygtk into a file

2007-04-16 Thread PARIMALA KALAVALA

hi,

   I want to know how to copy the contents of a pygtk application into a
file and include that in other applications.

   Pls reply to this .

bye.
-- 
http://mail.python.org/mailman/listinfo/python-list

regarding process preemption in linux

2008-05-19 Thread PARIMALA KALAVALA
Hello,

 I am presently working on linux.
I wanted to know how to view the preemption of one process by another
process. If we give TOP command we are not able to visualize it or do we
need to write any different code to see it or is it possible to see it in
the proc file system.

Any help would be appreciated.

Thanks

Parimala
--
http://mail.python.org/mailman/listinfo/python-list