Python论坛  - 讨论区

标题:[python-chinese] 【分享】用PYTHON写了个博客备份的东

2007年04月13日 星期五 10:15

sam liu fla.sam在gmail.com
星期五 四月 13 10:15:06 HKT 2007

发现打包成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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月13日 星期五 14:59

junyi sun ccnusjy在gmail.com
星期五 四月 13 14:59:12 HKT 2007

¸Õ²ÅÊÔÁËһϣ¬ÓÃ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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月13日 星期五 16:22

Jack Change joyanlj在gmail.com
星期五 四月 13 16:22:21 HKT 2007

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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月13日 星期五 19:44

junyi sun ccnusjy在gmail.com
星期五 四月 13 19:44:20 HKT 2007

ÖªµÀÔõôµ÷ÁËÆäʵ²»ÄÑ£¬ÌùÒ»¸ö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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月14日 星期六 12:40

pt42 pt4200在gmail.com
星期六 四月 14 12:40:17 HKT 2007

ÓÃ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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号