2006年12月24日 星期日 22:56
ллlimodou´óÏÀ On 12/22/06, limodou <limodou在gmail.com> wrote: > > On 12/22/06, ray zhenlin <ray1.cn在gmail.com> wrote: > > ÎÒÔÚwinÉÏÊÇÕâÑùʵÏֵģ¬ÓÐЧ¹û > > > > import win32event > > import win32api > > import winerror > > > > # ÅжÏÊÇ·ñÓÐʵÀýÔËÐУ¬ÓУ¬Í˳ö > > mutex = None > > mutex = win32event.CreateMutex(None, 1, title) > > if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS: > > dlg= wx.MessageDialog(None, title + "ÕýÔÚÔËÐÐÖÐ...",'¾¯¸æ',wx.OK | > > wx.ICON_ERROR ) > > dlg.ShowModal() > > dlg.Destroy() > > return > > > > лл´ó¼Ò¸øµÄ½¨Òé > > > ¿´µ½ÄãʹÓÃwx£¬ÆäʵwxÓÐÒ»¸öwx.SingleInstanceCheckerµÄ·½·¨¿ÉÒÔʹÓà > > -- > I like python! > UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad > My Blog: http://www.donews.net/limodou > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20061224/4b6c1c22/attachment.htm
Zeuux © 2025
京ICP备05028076号