2005年04月19日 星期二 17:09
ÎҲ鿴ÁËһϣ¬µ«ÊDz¢Ã»Óз¢ÏÖ×Ô¶¨Òå¹Ø¼üÖµµÃÑÕÉ«£¬ÎÒ¾ÙÀý¡°---¡µ¡±µÈ£¬²¢·Ç¾ÍÒ»¶¨ÊÇÕâ¸ö¹Ø¼ü×Ö¡£¡£¡£ _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2005年04月19日 星期二 17:28
yOe5+8q508NTdHlsZWRUZXh0Q3RybL7N0qrX0M+40dC+v87EtbXBy6Osy7XG8MC0sci9z7i01NOh oyBOZXdFZGl0INbQINPQyrXP1qOs0O224Lv509p3eFB5dGhvbrXEseC8rcb3trzT0Mq1z9ahowoK 1NowNS00LTE5o6xrYW5jaHkga2FuZzx6emhpa2FuZ0Bob3RtYWlsLmNvbT4g0LS1wKO6Cj4gztKy 6b+0wcvSu8/Co6y1q8rHsqLDu9PQt6LP1tfUtqjS5bnYvPzWtbXD0dXJq6OsztK+2cD9Ii0tLaG1 IrXIo6yyorfHvs3Su7aoysfV4rj2udi8/NfWoaOho6GjCj4gCj4gX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBEb26SdCBq dXN0IHNlYXJjaC4gRmluZC4gQ2hlY2sgb3V0IHRoZSBuZXcgTVNOIFNlYXJjaCEKPiBodHRwOi8v c2VhcmNoLm1zbi5jbGljay11cmwuY29tL2dvL29ubTAwMjAwNjM2YXZlL2RpcmVjdC8wMS8KPiAK PiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IHB5dGhv bi1jaGluZXNlIGxpc3QKPiBweXRob24tY2hpbmVzZUBsaXN0cy5weXRob24uY24KPiBodHRwOi8v cHl0aG9uLmNuL21haWxtYW4vbGlzdGluZm8vcHl0aG9uLWNoaW5lc2UKPiAKCgotLSAKSSBsaWtl IHB5dGhvbiEgCk15IERvbmV3cyBCbG9nOiBodHRwOi8vd3d3LmRvbmV3cy5uZXQvbGltb2RvdQpN eSBTaW5hIEJsb2c6IGh0dHA6Ly9ibG9nLnNpbmEuY29tLmNuL2Jsb2cvMTE0ODYwODkxNApOZXcg R29vZ2xlIE1haWxsaXN0OiBodHRwOi8vZ3JvdXBzLWJldGEuZ29vZ2xlLmNvbS9ncm91cC9weXRo b24tY24K
2005年04月19日 星期二 17:38
ÇëÎÊNewEditÊÇʲô£¿ ÓÐûÓÐÒ»¸öÀý×Ó×Ô¶¨ÒåÒ»¸ö¹Ø¼ü×Ö£¬²¢É趨ÆäÑÕÉ«£¿ лл >From: limodou <limodou at gmail.com> >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] Çë½Ì¸÷λһ ¸öText¼ÓÑÕÉ«µÄÎÊÌâ >Date: Tue, 19 Apr 2005 17:28:40 +0800 > >Èç¹ûʹÓÃStyledTextCtrl¾ÍÒª×ÐϸÑо¿ÎĵµÁË£¬ËµÆðÀ´±È½Ï¸´ÔÓ¡£ NewEdit ÖÐ >ÓÐʵÏÖ£¬Ðí¶à»ùÓÚwxPythonµÄ±à¼Æ÷¶¼ÓÐʵÏÖ¡£ > >ÔÚ05-4-19£¬kanchy kang<zzhikang at hotmail.com> дµÀ£º > > >ÎҲ鿴ÁËһϣ¬µ«ÊDz¢Ã»Óз¢ÏÖ×Ô¶¨Òå¹Ø¼üÖµµÃÑÕÉ«£¬ÎÒ¾ÙÀý"---¡µ"µÈ£¬²¢·Ç¾ÍÒ»¶¨ÊÇÕâ¸ö¹Ø¼ü×Ö¡£¡£¡£ > > > > _________________________________________________________________ > > Dont just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2005年04月19日 星期二 17:43
这种事情一般都应该是在内存中进行操作,全部画完颜色了再一次显示出来,不应该是边找边画的,那样的确会慢。
2005年04月19日 星期二 17:47
TmV3RWRpdCDKx87SseC1xNK7uPYgUHl0aG9uILHgvK3G96Gjy/zT0NPvt6i438HBuabE3KOstau2 vMrH0tHWqrXE0+/R1KOsyOejunB5dGhvbiwgY6Osw7vT0NPDtb3X1Lao0uW437bIo6y/ycTcsci9 z7i01NOhowoK1NowNS00LTE5o6xrYW5jaHkga2FuZzx6emhpa2FuZ0Bob3RtYWlsLmNvbT4g0LS1 wKO6Cj4gCj4gx+vOyk5ld0VkaXTKx8qyw7Sjvwo+INPQw7vT0NK7uPbA/dfT19S2qNLl0ru49rnY vPzX1qOssqLJ6LaoxuTR1cmro78KPiDQu9C7Cj4gCj4gPkZyb206IGxpbW9kb3UgPGxpbW9kb3VA Z21haWwuY29tPgo+ID5SZXBseS1UbzogbGltb2RvdSA8bGltb2RvdUBnbWFpbC5jb20+LCBweXRo b24tY2hpbmVzZUBsaXN0cy5weXRob24uY24KPiA+VG86IHB5dGhvbi1jaGluZXNlQGxpc3RzLnB5 dGhvbi5jbgo+ID5TdWJqZWN0OiBSZTogW3B5dGhvbi1jaGluZXNlXSDH673MuPfOu9K7ILj2VGV4 dLzT0dXJq7XEzsrM4go+ID5EYXRlOiBUdWUsIDE5IEFwciAyMDA1IDE3OjI4OjQwICswODAwCj4g Pgo+ID7I57n7yrnTw1N0eWxlZFRleHRDdHJsvs3SqtfQz7jR0L6/zsS1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S5n b29nbGUuY29tL2dyb3VwL3B5dGhvbi1jbgo+ID5fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fXwo+ID5weXRob24tY2hpbmVzZSBsaXN0Cj4gPnB5dGhvbi1jaGlu ZXNlQGxpc3RzLnB5dGhvbi5jbgo+ID5odHRwOi8vcHl0aG9uLmNuL21haWxtYW4vbGlzdGluZm8v cHl0aG9uLWNoaW5lc2UKPiAKPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLQo+IEJlc3QgcmVnYXJkcywKPiBrYW5nenoKPiAKPiBtYWlsdG86enpoaWthbmdA aG90bWFpbC5jb20KPiBUZWwgOiAwMjEtNjU0MDc3NTQKPiBNUDogMTM5MTY5MjgwODQKPiAKPiBf X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXwo+IEV4cHJlc3MgeW91cnNlbGYgaW5zdGFudGx5IHdpdGggTVNOIE1lc3NlbmdlciEg RG93bmxvYWQgdG9kYXkgLSBpdCdzIEZSRUUhCj4gaHR0cDovL21lc3Nlbmdlci5tc24uY2xpY2st dXJsLmNvbS9nby9vbm0wMDIwMDQ3MWF2ZS9kaXJlY3QvMDEvCj4gCj4gCgoKLS0gCkkgbGlrZSBw eXRob24hIApNeSBEb25ld3MgQmxvZzogaHR0cDovL3d3dy5kb25ld3MubmV0L2xpbW9kb3UKTXkg U2luYSBCbG9nOiBodHRwOi8vYmxvZy5zaW5hLmNvbS5jbi9ibG9nLzExNDg2MDg5MTQKTmV3IEdv b2dsZSBNYWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5jb20vZ3JvdXAvcHl0aG9u LWNuCg==
2005年04月20日 星期三 10:29
ÎÒÓÐÒ»¸ö³ÌÐò£¬Ëü´´½¨Ò»¸öÏß³ÌÀ´µ÷ÓÃÒ»¸öÈÎÎñ£¬ ¸ÃÈÎÎñÖУ¬ÓÐÒ»¸ö·ÃÎÊÇý¶¯µÄº¯Êý£¬ ±ÈÈçÖ´ÐÐÒ»¸ö·ÃÎÊÇý¶¯µÄ²Ù×÷£¬ A = Func(....)//Õâ¸öº¯Êý²»Äܲð½â½øÈ¥ ÏÖÔÚÓпÉÄÜÕâ¸ö·ÃÎʲÙ×÷ËÀµôÁË£¨Ã»Óзµ»Ø£©£¬Ï߳̾ÍÒ»Ö±µÈ´ýÔÚÄĶù£¬ ÎÒÐèÒª£¬É趨һ¸öʱ¼ä£¬±ÈÈç10Ã룬³¬¹ýÁ˾ÍÇ¿ÐÐÖÕÖ¹³ÌÐò£¬¡£ »òÕߣ¬¸É´à£¬´´½¨Ò»¸ö°´Å¥£¬ÔÚÐèҪʱ½áÊø¸ÃÔËÐÐỊ̈߳¬ ÇëÎÊÓз½·¨ÊµÏÖÂ𣿠>From: limodou <limodou at gmail.com> >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] Çë½Ì¸÷λһ ¸öText¼ÓÑÕÉ«µÄÎÊÌâ >Date: Tue, 19 Apr 2005 17:28:40 +0800 > >Èç¹ûʹÓÃStyledTextCtrl¾ÍÒª×ÐϸÑо¿ÎĵµÁË£¬ËµÆðÀ´±È½Ï¸´ÔÓ¡£ NewEdit ÖÐ >ÓÐʵÏÖ£¬Ðí¶à»ùÓÚwxPythonµÄ±à¼Æ÷¶¼ÓÐʵÏÖ¡£ > >ÔÚ05-4-19£¬kanchy kang<zzhikang at hotmail.com> дµÀ£º > > >ÎҲ鿴ÁËһϣ¬µ«ÊDz¢Ã»Óз¢ÏÖ×Ô¶¨Òå¹Ø¼üÖµµÃÑÕÉ«£¬ÎÒ¾ÙÀý"---¡µ"µÈ£¬²¢·Ç¾ÍÒ»¶¨ÊÇÕâ¸ö¹Ø¼ü×Ö¡£¡£¡£ > > > > _________________________________________________________________ > > Dont just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2005年04月20日 星期三 12:53
1Npjc2Ru0tTHsMzWwtu5/dXiuPbOyszio6zE47/J0tTIpdXS0rvV0qGjudjT2iB0aW1lb3V0tcTK tc/WoaMKCtTaMDUtNC0yMKOsa2FuY2h5IGthbmc8enpoaWthbmdAaG90bWFpbC5jb20+INC0tcCj ugo+IM7S09DSu7j2s8zQ8qOsy/y0tL2o0ru49s/fs8zAtLX308PSu7j2yM7O8aOsCj4guMPIzs7x 1tCjrNPQ0ru49rfDzsrH/bavtcS6r8r9o6wKPiCxyMjn1rTQ0NK7uPa3w87Kx/22r7XEstnX96Os Cj4gQSA9IEZ1bmMoLi4uLikvL9XiuPa6r8r9srvE3LLwveK9+MilCj4gz9bU2tPQv8nE3NXiuPa3 w87KstnX98vAtfTBy6Oow7vT0Le1u9ijqaOsz9+zzL7N0rvWsbXItP3U2sTEtvmjrAo+IM7S0OjS qqOsyei2qNK7uPbKsbzko6yxyMjnMTDD66Oss6y5/cHLvs3Hv9DQ1tXWubPM0PKjrKGjCj4gu/LV 36OsuMm04KOstLS9qNK7uPawtMWlo6zU2tDo0qrKsb3hyvi4w9TL0NDP37PMo6wKPiAKPiDH687K 09C3vbeoyrXP1sLwo78KPiAKPiA+RnJvbTogbGltb2RvdSA8bGltb2RvdUBnbWFpbC5jb20+Cj4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19fX19fX19fX19fX19fXwo+IHB5dGhvbi1jaGluZXNlIGxpc3QKPiBweXRob24tY2hpbmVz ZUBsaXN0cy5weXRob24uY24KPiBodHRwOi8vcHl0aG9uLmNuL21haWxtYW4vbGlzdGluZm8vcHl0 aG9uLWNoaW5lc2UKPiAKCgotLSAKSSBsaWtlIHB5dGhvbiEgCk15IERvbmV3cyBCbG9nOiBodHRw Oi8vd3d3LmRvbmV3cy5uZXQvbGltb2RvdQpNeSBTaW5hIEJsb2c6IGh0dHA6Ly9ibG9nLnNpbmEu Y29tLmNuL2Jsb2cvMTE0ODYwODkxNApOZXcgR29vZ2xlIE1haWxsaXN0OiBodHRwOi8vZ3JvdXBz LWJldGEuZ29vZ2xlLmNvbS9ncm91cC9weXRob24tY24K
2005年04月21日 星期四 10:07
csdnÉÏÎÒ²éÁËһϣ¬ºÃÏóûÓÐÕÒµ½£¬ÔÚÆäËüÂÛ̳ÉÏ£¬ËƺõÓиötimeout´¦Àí£¬µ«ÊÇÊÇÔÚunixƽ̨ÉÏ ¶øÎÒÏÖÔÚÊÇwindowsƽ̨¡£ ÁíÍ⣬¾ÍÊDz»ÖªµÀÔõÑùÈ÷ÃÎÊÇý¶¯µÄAPI timeout ³öÀ´¡£¡£¡£ >From: limodou <limodou at gmail.com> >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] ÓÐûÓÐºÃµÄ ·½·¨Ç¿ÖƽáÊøÒ»¸ö?̣߳?>Date: Wed, >20 Apr 2005 12:53:45 +0800 > >ÔÚcsdnÒÔÇ°ÌÖÂÛ¹ýÕâ¸öÎÊÌ⣬Äã¿ÉÒÔÈ¥ÕÒÒ»ÕÒ¡£¹ØÓÚ timeoutµÄʵÏÖ¡£ > >ÔÚ05-4-20£¬kanchy kang<zzhikang at hotmail.com> дµÀ£º > > ÎÒÓÐÒ»¸ö³ÌÐò£¬Ëü´´½¨Ò»¸öÏß³ÌÀ´µ÷ÓÃÒ»¸öÈÎÎñ£¬ > > ¸ÃÈÎÎñÖУ¬ÓÐÒ»¸ö·ÃÎÊÇý¶¯µÄº¯Êý£¬ > > ±ÈÈçÖ´ÐÐÒ»¸ö·ÃÎÊÇý¶¯µÄ²Ù×÷£¬ > > A = Func(....)//Õâ¸öº¯Êý²»Äܲð½â½øÈ¥ > > ÏÖÔÚÓпÉÄÜÕâ¸ö·ÃÎʲÙ×÷ËÀµôÁË£¨Ã»Óзµ»Ø£©£¬Ï߳̾ÍÒ»Ö±µÈ´ýÔÚÄĶù£¬ > > ÎÒÐèÒª£¬É趨һ¸öʱ¼ä£¬±ÈÈç10Ã룬³¬¹ýÁ˾ÍÇ¿ÐÐÖÕÖ¹³ÌÐò£¬¡£ > > »òÕߣ¬¸É´à£¬´´½¨Ò»¸ö°´Å¥£¬ÔÚÐèҪʱ½áÊø¸ÃÔËÐÐỊ̈߳¬ > > > > ÇëÎÊÓз½·¨ÊµÏÖÂ𣿠> > > > >From: limodou <limodou at gmail.com> > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > >To: python-chinese at lists.python.cn > > >Subject: Re: [python-chinese] Çë½Ì¸÷λһ ¸öText¼ÓÑÕÉ«µÄÎÊÌâ > > >Date: Tue, 19 Apr 2005 17:28:40 +0800 > > > > > >Èç¹ûʹÓÃStyledTextCtrl¾ÍÒª×ÐϸÑо¿ÎĵµÁË£¬ËµÆðÀ´±È½Ï¸´ÔÓ¡£ NewEdit ÖÐ > > >ÓÐʵÏÖ£¬Ðí¶à»ùÓÚwxPythonµÄ±à¼Æ÷¶¼ÓÐʵÏÖ¡£ > > > > > >ÔÚ05-4-19£¬kanchy kang<zzhikang at hotmail.com> дµÀ£º > > > > > > > >ÎҲ鿴ÁËһϣ¬µ«ÊDz¢Ã»Óз¢ÏÖ×Ô¶¨Òå¹Ø¼üÖµµÃÑÕÉ«£¬ÎÒ¾ÙÀý"---¡µ"µÈ£¬²¢·Ç¾ÍÒ»¶¨ÊÇÕâ¸ö¹Ø¼ü×Ö¡£¡£¡£ > > > > > > > > _________________________________________________________________ > > > > Dont just search. Find. Check out the new MSN Search! > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > _______________________________________________ > > > > python-chinese list > > > > python-chinese at lists.python.cn > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > >-- > > >I like python! > > >My Donews Blog: http://www.donews.net/limodou > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > >_______________________________________________ > > >python-chinese list > > >python-chinese at lists.python.cn > > >http://python.cn/mailman/listinfo/python-chinese > > > > ----------------------------------------------- > > Best regards, > > kangzz > > > > mailto:zzhikang at hotmail.com > > Tel : 021-65407754 > > MP: 13916928084 > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today - it's >FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
2005年04月21日 星期四 11:50
API不让你timeout出来,你就没有办法timeout出来…… 你可以试着另起一个进程包含此API操作,然后时间到了就kill process。 On 4/21/05, kanchy kang <zzhikang at hotmail.com> wrote: > > csdn上我查了一下,好象没有找到,在其它论坛上,似乎有个timeout处理,但是是在unix平台上 > 而我现在是windows平台。 > 另外,就是不知道怎样让访问驱动的API timeout 出来。。。 > > >From: limodou <limodou at gmail.com> > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > >To: python-chinese at lists.python.cn > >Subject: Re: [python-chinese] 有没有好的 方法强制结束一个?叱蹋?>Date: Wed, > >20 Apr 2005 12:53:45 +0800 > > > >在csdn以前讨论过这个问题,你可以去找一找。关于 timeout的实现。 > > > >在05-4-20,kanchy kang<zzhikang at hotmail.com> 写道: > > > 我有一个程序,它创建一个线程来调用一个任务, > > > 该任务中,有一个访问驱动的函数, > > > 比如执行一个访问驱动的操作, > > > A = Func(....)//这个函数不能拆解进去 > > > 现在有可能这个访问操作死掉了(没有返回),线程就一直等待在哪儿, > > > 我需要,设定一个时间,比如10秒,超过了就强行终止程序,。 > > > 或者,干脆,创建一个按钮,在需要时结束该运行线程, > > > > > > 请问有方法实现吗? > > > > > > >From: limodou <limodou at gmail.com> > > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > > >To: python-chinese at lists.python.cn > > > >Subject: Re: [python-chinese] 请教各位一 个Text加颜色的问题 > > > >Date: Tue, 19 Apr 2005 17:28:40 +0800 > > > > > > > >如果使用StyledTextCtrl就要仔细研究文档了,说起来比较复杂。 NewEdit 中 > > > >有实现,许多基于wxPython的编辑器都有实现。 > > > > > > > >在05-4-19,kanchy kang<zzhikang at hotmail.com> 写道: > > > > > > > > > > >我查看了一下,但是并没有发现自定义关键值得颜色,我举例"---〉"等,并非就一定是这个关键字。。。 > > > > > > > > > > _________________________________________________________________ > > > > > Don抰 just search. Find. Check out the new MSN Search! > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > _______________________________________________ > > > > > python-chinese list > > > > > python-chinese at lists.python.cn > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > >-- > > > >I like python! > > > >My Donews Blog: http://www.donews.net/limodou > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > >_______________________________________________ > > > >python-chinese list > > > >python-chinese at lists.python.cn > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > ----------------------------------------------- > > > Best regards, > > > kangzz > > > > > > mailto:zzhikang at hotmail.com > > > Tel : 021-65407754 > > > MP: 13916928084 > > > > > > _________________________________________________________________ > > > Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > _______________________________________________ > > > python-chinese list > > > python-chinese at lists.python.cn > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > >-- > >I like python! > >My Donews Blog: http://www.donews.net/limodou > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > >New Google Maillist: http://groups-beta.google.com/group/python-cn > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese > > ----------------------------------------------- > Best regards, > kangzz > > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 > > _________________________________________________________________ > Is your PC infected? Get a FREE online computer virus scan from McAfee� > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > -- Qiangning Hong Get Firefox! < http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050421/b7d93c03/attachment.htm
2005年04月21日 星期四 15:31
看这个贴子: http://community.csdn.net/Expert/TopicView3.asp?id=3688365 在05-4-21,Qiangning Hong<hongqn at gmail.com> 写道: > API不让你timeout出来,你就没有办法timeout出来…… > 你可以试着另起一个进程包含此API操作,然后时间到了就kill process。 > > > On 4/21/05, kanchy kang <zzhikang at hotmail.com> wrote: > > > > csdn上我查了一下,好象没有找到,在其它论坛上,似乎有个timeout处理,但是是在unix平台上 > > 而我现在是windows平台。 > > 另外,就是不知道怎样让访问驱动的API timeout 出来。。。 > > > > >From: limodou <limodou at gmail.com> > > >Reply-To: limodou < limodou at gmail.com>, python-chinese at lists.python.cn > > >To: python-chinese at lists.python.cn > > >Subject: Re: [python-chinese] 有没有好的 方法强制结束一个?叱蹋?>Date: Wed, > > >20 Apr 2005 12:53:45 +0800 > > > > > >在csdn以前讨论过这个问题,你可以去找一找。关于 timeout的实现。 > > > > > >在05-4-20,kanchy kang< zzhikang at hotmail.com> 写道: > > > > 我有一个程序,它创建一个线程来调用一个任务, > > > > 该任务中,有一个访问驱动的函数, > > > > 比如执行一个访问驱动的操作, > > > > A = Func(....)//这个函数不能拆解进去 > > > > 现在有可能这个访问操作死掉了(没有返回),线程就一直等待在哪儿, > > > > 我需要,设定一个时间,比如10秒,超过了就强行终止程序,。 > > > > 或者,干脆,创建一个按钮,在需要时结束该运行线程, > > > > > > > > 请问有方法实现吗? > > > > > > > > >From: limodou <limodou at gmail.com> > > > > >Reply-To: limodou < limodou at gmail.com>, > python-chinese at lists.python.cn > > > > >To: python-chinese at lists.python.cn > > > > >Subject: Re: [python-chinese] 请教各位一 个Text加颜色的问题 > > > > >Date: Tue, 19 Apr 2005 17:28:40 +0800 > > > > > > > > > >如果使用StyledTextCtrl就要仔细研究文档了,说起来比较复杂。 NewEdit 中 > > > > >有实现,许多基于wxPython的编辑器都有实现。 > > > > > > > > > >在05-4-19,kanchy kang<zzhikang at hotmail.com> 写道: > > > > > > > > > > > > > >我查看了一下,但是并没有发现自定义关键值得颜色,我举例"---〉"等,并非就一定是这个关键字。。。 > > > > > > > > > > > > > _________________________________________________________________ > > > > > > Don抰 just search. Find. Check out the new MSN Search! > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > _______________________________________________ > > > > > > python-chinese list > > > > > > python-chinese at lists.python.cn > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > >-- > > > > >I like python! > > > > >My Donews Blog: http://www.donews.net/limodou > > > > >My Sina Blog: > http://blog.sina.com.cn/blog/1148608914 > > > > >New Google Maillist: > http://groups-beta.google.com/group/python-cn > > > > >_______________________________________________ > > > > >python-chinese list > > > > >python-chinese at lists.python.cn > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > ----------------------------------------------- > > > > Best regards, > > > > kangzz > > > > > > > > mailto:zzhikang at hotmail.com > > > > Tel : 021-65407754 > > > > MP: 13916928084 > > > > > > > > > _________________________________________________________________ > > > > Express yourself instantly with MSN Messenger! Download today - it's > > >FREE! > > > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > > > _______________________________________________ > > > > python-chinese list > > > > python-chinese at lists.python.cn > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > >-- > > >I like python! > > >My Donews Blog: http://www.donews.net/limodou > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > >New Google Maillist: > http://groups-beta.google.com/group/python-cn > > >_______________________________________________ > > >python-chinese list > > >python-chinese at lists.python.cn > > >http://python.cn/mailman/listinfo/python-chinese > > > > ----------------------------------------------- > > Best regards, > > kangzz > > > > mailto: zzhikang at hotmail.com > > Tel : 021-65407754 > > MP: 13916928084 > > > > > _________________________________________________________________ > > Is your PC infected? Get a FREE online computer virus scan from McAfee� > > Security. > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > > -- > Qiangning Hong > Get Firefox! < > http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- I like python! My Donews Blog: http://www.donews.net/limodou My Sina Blog: http://blog.sina.com.cn/blog/1148608914 New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年04月21日 星期四 16:59
(晕,刚刚没发到list上来,只发给limodou了,重发一遍。亏我今天刚刚还告诉别人发信前要检查一下To或CC…… //blush) 拜读了一下,没有缩进真是让人很头疼。用vmware的win2k +ie也不行。 shhgs说: > 如果你对线程比较熟悉,这个问题应该是一点就通的,如果不熟悉,那就比较麻烦了。Python的文档根本帮不了你,那是给已经很熟悉线程的人准备的。不过不管是哪种语言,线程基本上大同小异,你可以找本书看看。 > > 这里关键就是把真正调用程序的线程设成daemon的,然后当主线程,也就是控制时间同时又调用函数的那个线程sleep足时间退出之后,daemon线程自然就中止了。 > 其实用setDaemon不能从根本上解决timeout的问题,我觉得是shhgs本人没有仔细看python的文档。 python的文档上说:The entire Python program exits when no active non-daemon threads are left. 意思是说python进程在所有非daemon线程结束后退出。daemon线程的中止是由于python进程的结束,而非调用其的线程(父线程)结束。在python主线程退出之前,daemon线程还是在一直跑着的。 我把shhgs的例子稍微改了一下,可以看得更明白些。在function里增加了输出,可以看到线程是否在运行;把两次测试颠倒一下次序,先测试超时的,再测试不超时的。 import threading, time import sys TimeoutError = "" def function(args = [], kwargs = {}) : z = 1 if len(args) != 0 : n = args[0] else : n = 10 indicator = kwargs.get('indicator', '.') while z < n : z += 1 time.sleep(0.5) sys.stdout.write(indicator) sys.stdout.flush() return z class FuncWrapper(object) : def __init__(self, func, args, kwargs) : self.func = func self.args = args self.kwargs = kwargs self.hasReturn = False def execute(self) : self.result = self.func(self.args, self.kwargs) self.hasReturn = True class Timeout(threading.Thread) : def __init__(self, timeout, func) : threading.Thread.__init__(self) self.timeout = timeout self.func = func self.subThread = threading.Thread(target = self.func.execute) self.subThread.setDaemon(True) def run(self) : self.subThread.start() time.sleep(self.timeout) if not self.func.hasReturn : raise "TimeoutError" if __name__ == "__main__" : funcobj = FuncWrapper(function, [1000,], {}) try : t = Timeout(5, funcobj) t.run() print funcobj.result except : print "Not completed in given time!" funcobj = FuncWrapper(function, [5, ], {'indicator': '*'}) try : t = Timeout(5, funcobj) t.run() print funcobj.result except : print "Not completed in given time!" 运行结果如下: hongqn at gentoo tmp $ python test.py ..........Not completed in given time! .*.*.*.*......5 可以看出,虽然第一次测试已经输出超时信息,但这个function还是在继续运行的(用"."表示)。 倒是xyzxyz1111的提议靠些谱,启一个定时器,到时间通过PyThreadState_SetAsyncExc给工作线程发一个exception。 Ruby的线程机制是在语言基础上实现的,Python的线程是在操作系统上层包装的。但不管是哪一个,都不可能强行中断C调用,至少也要等到调用返回才 能进入语言层次。因此对于贴主询问的驱动API调用超时问题,python线程恐怕无能为力,而要从操作系统考虑,用杀死进程或杀死操作系统线程(不是 python线程)的方法来实现。杀死进程相对容易实现一些,而在python中通过OS API直接操作线程,还请有经验的人来讲讲。 On 4/21/05, limodou <limodou at gmail.com> wrote: > > 看这个贴子: > > http://community.csdn.net/Expert/TopicView3.asp?id=3688365 > > 在05-4-21,Qiangning Hong<hongqn at gmail.com> 写道: > > API不让你timeout出来,你就没有办法timeout出来…… > > 你可以试着另起一个进程包含此API操作,然后时间到了就kill process。 > > > > > > On 4/21/05, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > csdn上我查了一下,好象没有找到,在其它论坛上,似乎有个timeout处理,但是是在unix平台上 > > > 而我现在是windows平台。 > > > 另外,就是不知道怎样让访问驱动的API timeout 出来。。。 > > > > > > >From: limodou <limodou at gmail.com> > > > >Reply-To: limodou < limodou at gmail.com>, > python-chinese at lists.python.cn > > > >To: python-chinese at lists.python.cn > > > >Subject: Re: [python-chinese] 有没有好的 方法强制结束一个?叱蹋?>Date: Wed, > > > >20 Apr 2005 12:53:45 +0800 > > > > > > > >在csdn以前讨论过这个问题,你可以去找一找。关于 timeout的实现。 > > > > > > > >在05-4-20,kanchy kang< zzhikang at hotmail.com> 写道: > > > > > 我有一个程序,它创建一个线程来调用一个任务, > > > > > 该任务中,有一个访问驱动的函数, > > > > > 比如执行一个访问驱动的操作, > > > > > A = Func(....)//这个函数不能拆解进去 > > > > > 现在有可能这个访问操作死掉了(没有返回),线程就一直等待在哪儿, > > > > > 我需要,设定一个时间,比如10秒,超过了就强行终止程序,。 > > > > > 或者,干脆,创建一个按钮,在需要时结束该运行线程, > > > > > > > > > > 请问有方法实现吗? > > > > > > > > > > >From: limodou <limodou at gmail.com> > > > > > >Reply-To: limodou < limodou at gmail.com>, > > python-chinese at lists.python.cn > > > > > >To: python-chinese at lists.python.cn > > > > > >Subject: Re: [python-chinese] 请教各位一 个Text加颜色的问题 > > > > > >Date: Tue, 19 Apr 2005 17:28:40 +0800 > > > > > > > > > > > >如果使用StyledTextCtrl就要仔细研究文档了,说起来比较复杂。 NewEdit 中 > > > > > >有实现,许多基于wxPython的编辑器都有实现。 > > > > > > > > > > > >在05-4-19,kanchy kang<zzhikang at hotmail.com> 写道: > > > > > > > > > > > > > > > > >我查看了一下,但是并没有发现自定义关键值得颜色,我举例"---〉"等,并非就一定是这个关键字。。。 > > > > > > > > > > > > > > > > _________________________________________________________________ > > > > > > > Don抰 just search. Find. Check out the new MSN Search! > > > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > _______________________________________________ > > > > > > > python-chinese list > > > > > > > python-chinese at lists.python.cn > > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > > >I like python! > > > > > >My Donews Blog: http://www.donews.net/limodou > > > > > >My Sina Blog: > > http://blog.sina.com.cn/blog/1148608914 > > > > > >New Google Maillist: > > http://groups-beta.google.com/group/python-cn > > > > > >_______________________________________________ > > > > > >python-chinese list > > > > > >python-chinese at lists.python.cn > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > ----------------------------------------------- > > > > > Best regards, > > > > > kangzz > > > > > > > > > > mailto:zzhikang at hotmail.com > > > > > Tel : 021-65407754 > > > > > MP: 13916928084 > > > > > > > > > > > > _________________________________________________________________ > > > > > Express yourself instantly with MSN Messenger! Download today - > it's > > > >FREE! > > > > > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > > > > > _______________________________________________ > > > > > python-chinese list > > > > > python-chinese at lists.python.cn > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > >-- > > > >I like python! > > > >My Donews Blog: http://www.donews.net/limodou > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > >New Google Maillist: > > http://groups-beta.google.com/group/python-cn > > > >_______________________________________________ > > > >python-chinese list > > > >python-chinese at lists.python.cn > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > ----------------------------------------------- > > > Best regards, > > > kangzz > > > > > > mailto: zzhikang at hotmail.com > > > Tel : 021-65407754 > > > MP: 13916928084 > > > > > > > > _________________________________________________________________ > > > Is your PC infected? Get a FREE online computer virus scan from > McAfee� > > > Security. > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > > _______________________________________________ > > > python-chinese list > > > python-chinese at lists.python.cn > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > -- > > Qiangning Hong > > Get Firefox! < > > http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > -- > I like python! > My Donews Blog: http://www.donews.net/limodou > My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > New Google Maillist: http://groups-beta.google.com/group/python-cn > -- Qiangning Hong Get Firefox! < http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050421/c75e8961/attachment-0001.htm
Zeuux © 2025
京ICP备05028076号