How to invoke parent's method?

2007-01-06 Thread many_years_after
Hi, pythoners: My wxPython program includes a panel whose parent is a frame. The panel has a button. When I click the button , I want to let the frame destroy. How to implement it? Could the panel invoke the frame's method? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to stop program when threads is sleeping

2006-12-25 Thread many_years_after
Carsten Haese wrote: > On Sun, 2006-12-24 at 22:55 -0800, many_years_after wrote: > > Hi, pythoners: > > > > There is a problem I couldn't dispose. I start a thread in the my > > program. The thread will do something before executing time.sleep(). > > W

How to stop program when threads is sleeping

2006-12-24 Thread many_years_after
Hi, pythoners: There is a problem I couldn't dispose. I start a thread in the my program. The thread will do something before executing time.sleep(). When the user give a signal to the main thread (such as click the 'end' button or close the window), the thread should end it's running. But h

How to Restart a thread

2006-11-25 Thread many_years_after
class mythread(threading.Thread): def __init__(self, threadname): threading.Thread.__init__(self, name = threadname) def run(self): print 'i am running' print 'i quit run()' thread = mythread('1') thread.start() print threading.activeCount() ## 1 , this means the

Try to stop thread Using flag

2006-11-25 Thread many_years_after
Hi,pythoners: I countered some problems when I try to stop threads using flag. These are my some important codes: # mythread.py def run(self): while self.addr != '':### text waiting for processing if not self.CONTINUE: ### flag for thread ,means to exit the

How to make a python file to a DLL?

2006-11-16 Thread many_years_after
Any solution? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the ascii code of Chinese characters?

2006-08-19 Thread many_years_after
John Machin wrote: > many_years_after wrote: > > hi: > > > > what I want to do is just to make numbers as people input some Chinese > > character(hanzi,i mean).The same character will create the same > > number.So I think ascii code can do this very well. > >

Re: How to get the ascii code of Chinese characters?

2006-08-19 Thread many_years_after
hi: what I want to do is just to make numbers as people input some Chinese character(hanzi,i mean).The same character will create the same number.So I think ascii code can do this very well. John Machin wrote: > many_years_after wrote: > > Hi,everyone: > > > >

How to get the ascii code of Chinese characters?

2006-08-19 Thread many_years_after
Hi,everyone: Have you any ideas? Say whatever you know about this. thanks. -- http://mail.python.org/mailman/listinfo/python-list

Which field is Python suitable to do some tasks?

2006-08-17 Thread many_years_after
hello , members: I have basic knowledge of python programming. But i don't know what to do next step. I don't know in which field I should learn more about python and finally finish some tasks. Can you give me some ideas? Thanks. -- http://mail.python.org/mailman/listinfo/python-list