2007年04月13日 星期五 10:15
发现打包成exe后文件的大小很小,我自己写的基于wxpython的gui打包之后有7M多. 不知道 pt42 用的是什么gui库,或者使用了什么技术压缩呢 ? On 3/3/07, pt42 <pt4200 at gmail.com> wrote: > > 【分享】用PYTHON写了个博客备份的东东 > > 博客备份程序,目前支持的BSP如下: > > 百度空间,新浪博客,和讯博客,Donews博客,博客巴士,天涯博客 > > MSN空间,搜狐博客,QQ空间,Bokee博客,歪酷博客,网易博客 > > 下载地址:http://blog.chinaunix.net/upfile/070303162452.rar > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070413/ca931957/attachment.htm
2007年04月13日 星期五 14:59
¸Õ²ÅÊÔÁËһϣ¬ÓÃupxÃüÁîÐпÉÒÔ½«ÓÃwin32gui,win32con,win32uiÄ£¿é×öUIµÄpython³ÌÐòѹËõµ½1.5M×óÓÒ¡£ On 4/13/07, sam liu <fla.sam在gmail.com> wrote: > > ·¢ÏÖ´ò°ü³ÉexeºóÎļþµÄ´óСºÜС,ÎÒ×Ô¼ºÐ´µÄ»ùÓÚwxpythonµÄgui´ò°üÖ®ºóÓÐ7M¶à. > ²»ÖªµÀ pt42 ÓõÄÊÇʲôgui¿â,»òÕßʹÓÃÁËʲô¼¼ÊõѹËõÄØ ? > > > On 3/3/07, pt42 <pt4200在gmail.com> wrote: > > > ¡¾·ÖÏí¡¿ÓÃPYTHONдÁ˸ö²©¿Í±¸·ÝµÄ¶«¶« > > > > ²©¿Í±¸·Ý³ÌÐò£¬Ä¿Ç°Ö§³ÖµÄBSPÈçÏ£º > > > > °Ù¶È¿Õ¼ä£¬ÐÂÀ˲©¿Í£¬ºÍѶ²©¿Í£¬Donews²©¿Í£¬²©¿Í°ÍÊ¿£¬ÌìÑIJ©¿Í > > > > MSN¿Õ¼ä,ËѺü²©¿Í£¬QQ¿Õ¼ä£¬Bokee²©¿Í£¬Íá¿á²©¿Í£¬ÍøÒײ©¿Í > > > > ÏÂÔØµØÖ·£ºhttp://blog.chinaunix.net/upfile/070303162452.rar > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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/20070413/25a0ac69/attachment.html
2007年04月13日 星期五 16:22
source file~~~ ÔÚ07-4-13£¬sam liu <fla.sam在gmail.com> дµÀ£º > > ·¢ÏÖ´ò°ü³ÉexeºóÎļþµÄ´óСºÜС,ÎÒ×Ô¼ºÐ´µÄ»ùÓÚwxpythonµÄgui´ò°üÖ®ºóÓÐ7M¶à. > ²»ÖªµÀ pt42 ÓõÄÊÇʲôgui¿â,»òÕßʹÓÃÁËʲô¼¼ÊõѹËõÄØ ? > > > On 3/3/07, pt42 <pt4200在gmail.com> wrote: > > > > ¡¾·ÖÏí¡¿ÓÃPYTHONдÁ˸ö²©¿Í±¸·ÝµÄ¶«¶« > > > > ²©¿Í±¸·Ý³ÌÐò£¬Ä¿Ç°Ö§³ÖµÄBSPÈçÏ£º > > > > °Ù¶È¿Õ¼ä£¬ÐÂÀ˲©¿Í£¬ºÍѶ²©¿Í£¬Donews²©¿Í£¬²©¿Í°ÍÊ¿£¬ÌìÑIJ©¿Í > > > > MSN¿Õ¼ä,ËѺü²©¿Í£¬QQ¿Õ¼ä£¬Bokee²©¿Í£¬Íá¿á²©¿Í£¬ÍøÒײ©¿Í > > > > ÏÂÔØµØÖ·£ºhttp://blog.chinaunix.net/upfile/070303162452.rar > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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/20070413/d08fa4b9/attachment.html
2007年04月13日 星期五 19:44
ÖªµÀÔõôµ÷ÁËÆäʵ²»ÄÑ£¬ÌùÒ»¸öHelloWInµÄÀý×Ó£º
import win32gui, win32con
def wndProc(hwnd, msg, wParam, lParam):
if msg == win32con.WM_CREATE: print 'message: WM_CREATE'
if msg == win32con.WM_SIZE: print 'message: WM_SIZE'
if msg == win32con.WM_PAINT: print 'message: WM_PAINT'
if msg == win32con.WM_CLOSE: print 'message: WM_CLOSE'
if msg == win32con.WM_DESTROY:
print 'message: WM_DESTROY'
win32gui.PostQuitMessage(0)
return win32gui.DefWindowProc(hwnd, msg, wParam, lParam)
wndClsStruct = win32gui.WNDCLASS()
wndClsStruct.hbrBackground = win32con.COLOR_BTNFACE + 1
wndClsStruct.hCursor = win32gui.LoadCursor(0, win32con.IDC_ARROW)
wndClsStruct.hIcon = win32gui.LoadIcon(0, win32con.IDI_APPLICATION)
wndClsStruct.lpszClassName = "MySimpleWindow"
wndClsStruct.lpfnWndProc = wndProc
wndClassAtom = win32gui.RegisterClass(wndClsStruct)
hwnd = win32gui.CreateWindow(
wndClassAtom, 'Spark Test', win32con.WS_OVERLAPPEDWINDOW,
win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT,
win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT,
0,0, 0, None)
win32gui.ShowWindow(hwnd, win32con.SW_SHOWNORMAL)
win32gui.UpdateWindow(hwnd)
win32gui.PumpMessages()
Õâ¸ö³ÌÐòÏÈÓÃpy2exe±àÒ룬ÔÙÓÃupx¼Ó¿Ç£¬×îÖÕ´óСΪ1.5M
On 4/13/07, Jack Change <joyanlj在gmail.com> wrote:
>
> source file~~~
>
> ÔÚ07-4-13£¬sam liu <fla.sam在gmail.com> дµÀ£º
> >
> > ·¢ÏÖ´ò°ü³ÉexeºóÎļþµÄ´óСºÜС,ÎÒ×Ô¼ºÐ´µÄ»ùÓÚwxpythonµÄgui´ò°üÖ®ºóÓÐ7M¶à.
> > ²»ÖªµÀ pt42 ÓõÄÊÇʲôgui¿â,»òÕßʹÓÃÁËʲô¼¼ÊõѹËõÄØ ?
> >
> >
> > On 3/3/07, pt42 <pt4200在gmail.com> wrote:
> > >
> > > ¡¾·ÖÏí¡¿ÓÃPYTHONдÁ˸ö²©¿Í±¸·ÝµÄ¶«¶«
> > >
> > > ²©¿Í±¸·Ý³ÌÐò£¬Ä¿Ç°Ö§³ÖµÄBSPÈçÏ£º
> > >
> > > °Ù¶È¿Õ¼ä£¬ÐÂÀ˲©¿Í£¬ºÍѶ²©¿Í£¬Donews²©¿Í£¬²©¿Í°ÍÊ¿£¬ÌìÑIJ©¿Í
> > >
> > > MSN¿Õ¼ä,ËѺü²©¿Í£¬QQ¿Õ¼ä£¬Bokee²©¿Í£¬Íá¿á²©¿Í£¬ÍøÒײ©¿Í
> > >
> > > ÏÂÔØµØÖ·£ºhttp://blog.chinaunix.net/upfile/070303162452.rar
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070413/298db792/attachment.html
2007年04月14日 星期六 12:40
ÓÃWIN32 APIд½çÃæÍ´¿àµÄÒªËÀ£¬¿ÉÄÜÊÇÎÒ¶ÔAPI»¹ÊDz»ºÜÁ˽âµÄ¹ØÏµ£¬¾³£Ò»¸ö´íÎóÒªµ÷ºÃ¾Ã¡£ »¹ÊÇ×¼±¸ÓÃWXÁË£¬¼òµ¥µã¡£¡£¡£ ÔÚ07-4-13£¬junyi sun <ccnusjy在gmail.com> дµÀ£º > > ÖªµÀÔõôµ÷ÁËÆäʵ²»ÄÑ£¬ÌùÒ»¸öHelloWInµÄÀý×Ó£º > > import win32gui, win32con > > def wndProc(hwnd, msg, wParam, lParam): > if msg == win32con.WM_CREATE: print 'message: WM_CREATE' > if msg == win32con.WM_SIZE: print 'message: WM_SIZE' > if msg == win32con.WM_PAINT: print 'message: WM_PAINT' > if msg == win32con.WM_CLOSE: print 'message: WM_CLOSE' > if msg == win32con.WM_DESTROY: > print 'message: WM_DESTROY' > win32gui.PostQuitMessage(0) > return win32gui.DefWindowProc (hwnd, msg, wParam, lParam) > > wndClsStruct = win32gui.WNDCLASS() > wndClsStruct.hbrBackground = win32con.COLOR_BTNFACE + 1 > wndClsStruct.hCursor = win32gui.LoadCursor(0, win32con.IDC_ARROW) > wndClsStruct.hIcon = win32gui.LoadIcon(0, win32con.IDI_APPLICATION) > wndClsStruct.lpszClassName = "MySimpleWindow" > wndClsStruct.lpfnWndProc = wndProc > > wndClassAtom = win32gui.RegisterClass(wndClsStruct) > > hwnd = win32gui.CreateWindow( > wndClassAtom, 'Spark Test', win32con.WS_OVERLAPPEDWINDOW, > win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT, > win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT , > 0,0, 0, None) > > win32gui.ShowWindow(hwnd, win32con.SW_SHOWNORMAL) > win32gui.UpdateWindow(hwnd) > win32gui.PumpMessages() > Õâ¸ö³ÌÐòÏÈÓÃpy2exe±àÒ룬ÔÙÓÃupx¼Ó¿Ç£¬×îÖÕ´óСΪ1.5M > > > > On 4/13/07, Jack Change <joyanlj在gmail.com> wrote: > > > > source file~~~ > > > > ÔÚ07-4-13£¬sam liu <fla.sam在gmail.com> дµÀ£º > > > > > > ·¢ÏÖ´ò°ü³ÉexeºóÎļþµÄ´óСºÜС,ÎÒ×Ô¼ºÐ´µÄ»ùÓÚwxpythonµÄgui´ò°üÖ®ºóÓÐ7M¶à. > > > ²»ÖªµÀ pt42 ÓõÄÊÇʲôgui¿â,»òÕßʹÓÃÁËʲô¼¼ÊõѹËõÄØ ? > > > > > > > > > On 3/3/07, pt42 <pt4200在gmail.com> wrote: > > > > > > > > ¡¾·ÖÏí¡¿ÓÃPYTHONдÁ˸ö²©¿Í±¸·ÝµÄ¶«¶« > > > > > > > > ²©¿Í±¸·Ý³ÌÐò£¬Ä¿Ç°Ö§³ÖµÄBSPÈçÏ£º > > > > > > > > °Ù¶È¿Õ¼ä£¬ÐÂÀ˲©¿Í£¬ºÍѶ²©¿Í£¬Donews²©¿Í£¬²©¿Í°ÍÊ¿£¬ÌìÑIJ©¿Í > > > > > > > > MSN¿Õ¼ä,ËѺü²©¿Í£¬QQ¿Õ¼ä£¬Bokee²©¿Í£¬Íá¿á²©¿Í£¬ÍøÒײ©¿Í > > > > > > > > ÏÂÔØµØÖ·£ºhttp://blog.chinaunix.net/upfile/070303162452.rar > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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/20070414/c6ba85f9/attachment.html
Zeuux © 2025
京ICP备05028076号