You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gabriele L. <gab...@gm...> - 2010-04-28 18:32:48
|
Hi! I just want to apologize that I haven't responded to your help. Now I'm subscribed to the list... ( before I was only the administrator so I haven't received the mail in my inbox) |
From: M.B. <spo...@tb...> - 2009-11-07 13:16:08
|
sorry for this, but now i have full backtrace. *** glibc detected *** python: free(): invalid next size (fast): 0x084880d8 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6b6c1)[0xb74bc6c1] /lib/libc.so.6(+0x6cf18)[0xb74bdf18] /lib/libc.so.6(cfree+0x6d)[0xb74c0f8d] /usr/lib/libpython2.6.so.1.0(PyMem_Free+0x1d)[0xb7611e7d] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(+0x23e57)[0xb61e6e57] /usr/lib/libpython2.6.so.1.0(PyCFunction_Call+0x128)[0xb7610dc8] /usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x43f7)[0xb76687a7] /usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x5966)[0xb7669d16] /usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x5966)[0xb7669d16] /usr/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0xb766a541] /usr/lib/libpython2.6.so.1.0(+0x4f037)[0xb75ff037] /usr/lib/libpython2.6.so.1.0(PyObject_Call+0x5c)[0xb75d6e8c] /usr/lib/libpython2.6.so.1.0(+0x39ee9)[0xb75e9ee9] /usr/lib/libpython2.6.so.1.0(PyObject_Call+0x5c)[0xb75d6e8c] /usr/lib/libpython2.6.so.1.0(PyEval_CallObjectWithKeywords+0x54)[0xb7663784] /usr/lib/libpython2.6.so.1.0(PyObject_CallObject+0x2c)[0xb75d78dc] /usr/lib/python2.6/site-packages/gtk-2.0/gobject/_gobject.so(+0x16d0e)[0xb6fd1d0e] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0xb7115462] /usr/lib/libgobject-2.0.so.0(+0x1d7a8)[0xb71297a8] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd)[0xb712ab1d] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb712af96] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(+0x2581e)[0xb61e881e] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(scintilla_marshal_VOID__INT_POINTER+0x8f)[0xb62db12f] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0xb7115462] /usr/lib/libgobject-2.0.so.0(+0x1d7a8)[0xb71297a8] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd)[0xb712ab1d] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb712af96] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN12ScintillaGTK12NotifyParentE14SCNotification+0x79)[0xb61f2a09] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN6Editor10NotifyCharEi+0x54)[0xb6213f04] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN6Editor7NewLineEv+0xfa)[0xb622781a] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN6Editor10KeyCommandEj+0x910)[0xb622d7b0] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN13ScintillaBase10KeyCommandEj+0x65)[0xb62cb905] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN6Editor7WndProcEjml+0x606)[0xb6228486] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN13ScintillaBase7WndProcEjml+0x124)[0xb62cb094] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN12ScintillaGTK7WndProcEjml+0xb6)[0xb61f5e56] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN6Editor7KeyDownEibbbPb+0xa6)[0xb6221606] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN12ScintillaGTK7KeyThisEP12_GdkEventKey+0xa4)[0xb61f1294] /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so(_ZN12ScintillaGTK8KeyPressEP10_GtkWidgetP12_GdkEventKey+0x27)[0xb61f1637] /usr/lib/libgtk-x11-2.0.so.0(+0x133024)[0xb6b42024] /usr/lib/libgobject-2.0.so.0(+0x7ae9)[0xb7113ae9] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0xd8)[0xb7115388] /usr/lib/libgobject-2.0.so.0(+0x1d49b)[0xb712949b] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x648)[0xb712a9a8] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb712af96] /usr/lib/libgtk-x11-2.0.so.0(+0x24e4ce)[0xb6c5d4ce] /usr/lib/libgtk-x11-2.0.so.0(gtk_window_propagate_key_event+0x11a)[0xb6c71f3a] /usr/lib/libgtk-x11-2.0.so.0(+0x2661cc)[0xb6c751cc] /usr/lib/libgtk-x11-2.0.so.0(+0x133024)[0xb6b42024] /usr/lib/libgobject-2.0.so.0(+0x7ae9)[0xb7113ae9] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0xb7115462] /usr/lib/libgobject-2.0.so.0(+0x1d49b)[0xb712949b] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x648)[0xb712a9a8] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb712af96] /usr/lib/libgtk-x11-2.0.so.0(+0x24e4ce)[0xb6c5d4ce] /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x19b)[0xb6b3a8ab] /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x219)[0xb6b3ba69] /usr/lib/libgdk-x11-2.0.so.0(+0x52a1a)[0xb69cfa1a] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f8)[0xb7087328] /usr/lib/libglib-2.0.so.0(+0x39ba0)[0xb708aba0] /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1bf)[0xb708b00f] /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb6b3bfd9] /usr/lib/python2.6/site-packages/gtk-2.0/gtk/_gtk.so(+0x1560f8)[0xb6f250f8] /usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x48e8)[0xb7668c98] ======= Memory map: ======== 08048000-08049000 r-xp 00000000 08:03 62976 /usr/bin/python2.6 08049000-0804a000 rwxp 00000000 08:03 62976 /usr/bin/python2.6 08262000-08806000 rwxp 00000000 00:00 0 [heap] b5500000-b5521000 rwxp 00000000 00:00 0 b5521000-b5600000 ---p 00000000 00:00 0 b566f000-b56be000 r-xp 00000000 08:03 111886 /usr/share/fonts/TTF/DejaVuSansMono.ttf b56be000-b570f000 r-xp 00000000 08:03 111875 /usr/share/fonts/TTF/DejaVuSerif.ttf b570f000-b5710000 r-xp 00000000 08:03 147353 /usr/lib/gconv/ISO8859-1.so b5710000-b5711000 r-xp 00001000 08:03 147353 /usr/lib/gconv/ISO8859-1.so b5711000-b5712000 rwxp 00002000 08:03 147353 /usr/lib/gconv/ISO8859-1.so b5712000-b5772000 rwxs 00000000 00:08 8454169 /SYSV00000000 (deleted) b5772000-b5791000 r-xp 00000000 08:03 105393 /usr/share/fonts/TTF/comic.ttf b5791000-b57a1000 r-xs 00000000 08:03 31230 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2 b57a1000-b57a6000 r-xs 00000000 08:03 105420 /var/cache/fontconfig/a98d8961fa319a64d3cfd8640c79e62d-x86.cache-2 b57a6000-b57ac000 r-xs 00000000 08:03 111898 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2 b57ac000-b57c5000 r-xs 00000000 08:03 111897 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86.cache-2 b57c5000-b5805000 r-xs 00000000 08:03 31227 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2 b5805000-b5845000 r-xs 00000000 08:03 31226 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2 b5845000-b585d000 r-xs 00000000 08:03 2048 /usr/share/mime/mime.cache b585d000-b5868000 r-xp 00000000 08:03 312 /lib/libudev.so.0.5.0 b5868000-b5869000 rwxp 0000b000 08:03 312 /lib/libudev.so.0.5.0 b5869000-b58a0000 r-xp 00000000 08:03 7724 /usr/lib/libdbus-1.so.3.4.0 b58a0000-b58a1000 r-xp 00036000 08:03 7724 /usr/lib/libdbus-1.so.3.4.0 b58a1000-b58a2000 rwxp 00037000 08:03 7724 /usr/lib/libdbus-1.so.3.4.0 b58a2000-b58b5000 r-xp 00000000 08:03 100617 /usr/lib/libgvfscommon.so.0.0.0 b58b5000-b58b6000 rwxp 00012000 08:03 100617 /usr/lib/libgvfscommon.so.0.0.0 b58b6000-b58d9000 r-xp 00000000 08:03 100641 /usr/lib/gio/modules/libgvfsdbus.so b58d9000-b58da000 rwxp 00022000 08:03 100641 /usr/lib/gio/modules/libgvfsdbus.so b58da000-b5a59000 r-xp 00000000 08:03 31204 /usr/share/icons/hicolor/icon-theme.cache b5a59000-b6099000 r-xp 00000000 08:03 85443 /usr/share/icons/gnome/icon-theme.cache b6099000-b60b6000 r-xp 00000000 08:03 6179 /usr/lib/libgcc_s.so.1 b60b6000-b60b7000 rwxp 0001c000 08:03 6179 /usr/lib/libgcc_s.so.1 b60b7000-b619f000 r-xp 00000000 08:03 6186 /usr/lib/libstdc++.so.6.0.13 b619f000-b61a0000 ---p 000e8000 08:03 6186 /usr/lib/libstdc++.so.6.0.13 b61a0000-b61a4000 r-xp 000e8000 08:03 6186 /usr/lib/libstdc++.so.6.0.13 b61a4000-b61a5000 rwxp 000ec000 08:03 6186 /usr/lib/libstdc++.so.6.0.13 b61a5000-b61ac000 rwxp 00000000 00:00 0 b61b2000-b61c2000 r-xp 00000000 08:03 100640 /usr/lib/gio/modules/libgioremote-volume-monitor.so b61c2000-b61c3000 rwxp 00010000 08:03 100640 /usr/lib/gio/modules/libgioremote-volume-monitor.so b61c3000-b62f5000 r-xp 00000000 08:03 150795 /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so b62f5000-b62f8000 rwxp 00132000 08:03 150795 /usr/lib/python2.6/site-packages/gtkscintilla/gtkscintilla.so b62f8000-b62f9000 rwxp 00000000 00:00 0 b62f9000-b631b000 r-xp 00000000 08:03 2462 /usr/share/locale/cs/LC_MESSAGES/libc.mo b631b000-b6322000 r-xp 00000000 08:03 35273 /usr/lib/libltdl.so.7.2.0 b6322000-b6323000 rwxp 00007000 08:03 35273 /usr/lib/libltdl.so.7.2.0 b6323000-b632f000 r-xp 00000000 08:03 28334 /usr/lib/libtdb.so.1.1.3 b632f000-b6330000 rwxp 0000b000 08:03 28334 /usr/lib/libtdb.so.1.1.3 b6330000-b6357000 r-xp 00000000 08:03 62536 /usr/lib/libvorbis.so.0.4.3 b6357000-b6358000 rwxp 00027000 08:03 62536 /usr/lib/libvorbis.so.0.4.3 b6358000-b6366000 r-xp 00000000 08:03 77029 /usr/lib/libcanberra.so.0.2.1 b6366000-b6367000 rwxp 0000d000 08:03 77029 /usr/lib/libcanberra.so.0.2.1 b6367000-b636b000 r-xp 00000000 08:03 102596 /usr/share/fonts/local/ter-x12n.pcf.gz b636b000-b6376000 r-xp 00000000 08:03 32759 /usr/share/locale/cs/LC_MESSAGES/glib20.mo b6376000-b637d000 r-xp 00000000 08:03 58695 /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so b637d000-b637e000 rwxp 00007000 08:03 58695 /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so b637e000-b63a5000 r-xp 00000000 08:03 58271 /usr/share/locale/cs/LC_MESSAGES/gtk20-properties.mo b63a5000-b63af000 r-xp 00000000 08:03 2214 /lib/libnss_files-2.11.so b63af000-b63b0000 r-xp 00009000 08:03 2214 /lib/libnss_files-2.11.so b63b0000-b63b1000 rwxp 0000a000 08:03 2214 /lib/libnss_files-2.11.so b63b1000-b63b6000 r-xp 00000000 08:03 62418 /usr/lib/libogg.so.0.6.0 b63b6000-b63b7000 rwxp 00004000 08:03 62418 /usr/lib/libogg.so.0.6.0 b63b7000-b63be000 r-xp 00000000 08:03 62538 /usr/lib/libvorbisfile.so.3.3.2 b63be000-b63bf000 rwxp 00006000 08:03 62538 /usr/lib/libvorbisfile.so.3.3.2 b63bf000-b63c2000 r-xp 00000000 08:03 77023 /usr/lib/libcanberra-gtk.so.0.1.4 b63c2000-b63c3000 rwxp 00003000 08:03 77023 /usr/lib/libcanberra-gtk.so.0.1.4 b63c3000-b63c7000 r-xp 00000000 08:03 77041 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so b63c7000-b63c8000 rwxp 00004000 08:03 77041 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so b63c8000-b63db000 r-xp 00000000 08:03 58272 /usr/share/locale/cs/LC_MESSAGES/gtk20.mo b63db000-b63de000 r-xp 00000000 08:03 68540 /usr/lib/python2.6/site-packages/gtk-2.0/pangocairo.so b63de000-b63df000 rwxp 00002000 08:03 68540 /usr/lib/python2.6/site-packages/gtk-2.0/pangocairo.so b63df000-b6412000 r-xp 00000000 08:03 68539 /usr/lib/python2.6/site-packages/gtk-2.0/atk.so b6412000-b6416000 rwxp 00032000 08:03 68539 /usr/lib/python2.6/site-packages/gtk-2.0/atk.so b6416000-b6477000 rwxp 00000000 00:00 0 b6477000-b6492000 r-xp 00000000 08:03 68538 /usr/lib/python2.6/site-packages/gtk-2.0/pango.so b6492000-b6496000 rwxp 0001a000 08:03 68538 /usr/lib/python2.6/site-packages/gtk-2.0/pango.so b6496000-b649a000 r-xp 00000000 08:03 67972 /usr/lib/python2.6/site-packages/gtk-2.0/gio/unix.so b649a000-b649b000 rwxp 00003000 08:03 67972 /usr/lib/python2.6/site-packages/gtk-2.0/gio/unix.so b649b000-b64cb000 r-xp 00000000 08:03 67976 /usr/lib/python2.6/site-packages/gtk-2.0/gio/_gio.so b64cb000-b64d1000 rwxp 0002f000 08:03 67976 /usr/lib/python2.6/site-packages/gtk-2.0/gio/_gio.so b64d1000-b64d5000 r-xp 00000000 08:03 30238 /usr/lib/libXdmcp.so.6.0.0 b64d5000-b64d6000 rwxp 00003000 08:03 30238 /usr/lib/libXdmcp.so.6.0.0 b64d6000-b64d8000 r-xp 00000000 08:03 30259 /usr/lib/libXau.so.6.0.0 b64d8000-b64d9000 rwxp 00001000 08:03 30259 /usr/lib/libXau.so.6.0.0 b64d9000-b64fd000 r-xp 00000000 08:03 7652 /usr/lib/libexpat.so.1.5.2 b64fd000-b64ff000 rwxp 00023000 08:03 7652 /usr/lib/libexpat.so.1.5.2 b64ff000-b6512000 r-xp 00000000 08:03 5989 /usr/lib/libz.so.1.2.3.3 b6512000-b6513000 rwxp 00012000 08:03 5989 /usr/lib/libz.so.1.2.3.3 b6513000-b652b000 r-xp 00000000 08:03 30338 /usr/lib/libxcb.so.1.1.0 b652b000-b652c000 rwxp 00017000 08:03 30338 /usr/lib/libxcb.so.1.1.0 b652c000-b6532000 r-xp 00000000 08:03 30356 /usr/lib/libxcb-render.so.0.0.0 b6532000-b6533000 rwxp 00005000 08:03 30356 /usr/lib/libxcb-render.so.0.0.0 b6533000-b6536000 r-xp 00000000 08:03 54352 /usr/lib/libxcb-render-util.so.0.0.0 b6536000-b6537000 rwxp 00002000 08:03 54352 /usr/lib/libxcb-render-util.so.0.0.0 b6537000-b658e000 r-xp 00000000 08:03 51620 /usr/lib/libpixman-1.so.0.16.2 b658e000-b6590000 rwxp 00057000 08:03 51620 /usr/lib/libpixman-1.so.0.16.2 b6590000-b65a0000 r-xp 00000000 08:03 2212 /lib/libresolv-2.11.so b65a0000-b65a1000 r-xp 00010000 08:03 2212 /lib/libresolv-2.11.so b65a1000-b65a2000 rwxp 00011000 08:03 2212 /lib/libresolv-2.11.so b65a2000-b65a4000 rwxp 00000000 00:00 0 b65a4000-b65c9000 r-xp 00000000 08:03 53375 /usr/lib/libpng12.so.0.39.0 b65c9000-b65ca000 rwxp 00024000 08:03 53375 /usr/lib/libpng12.so.0.39.0 b65ca000-b65ce000 r-xp 00000000 08:03 30459 /usr/lib/libXfixes.so.3.1.0 b65ce000-b65cf000 rwxp 00003000 08:03 30459 /usr/lib/libXfixes.so.3.1.0 b65cf000-b65d1000 r-xp 00000000 08:03 30466 /usr/lib/libXdamage.so.1.1.0 b65d1000-b65d2000 rwxp 00001000 08:03 30466 /usr/lib/libXdamage.so.1.1.0 b65d2000-b65d4000 r-xp 00000000 08:03 34784 /usr/lib/libXcomposite.so.1.0.0 b65d4000-b65d5000 rwxp 00001000 08:03 34784 /usr/lib/libXcomposite.so.1.0.0 b65d5000-b66eb000 r-xp 00000000 08:03 2575 /usr/lib/libX11.so.6.3.0 b66eb000-b66ef000 rwxp 00115000 08:03 2575 /usr/lib/libX11.so.6.3.0 b66ef000-b66f7000 r-xp 00000000 08:03 53349 /usr/lib/libXcursor.so.1.0.2 b66f7000-b66f8000 rwxp 00007000 08:03 53349 /usr/lib/libXcursor.so.1.0.2 b66f8000-b66fe000 r-xp 00000000 08:03 52270 /usr/lib/libXrandr.so.2.2.0 b66fe000-b66ff000 rwxp 00006000 08:03 52270 /usr/lib/libXrandr.so.2.2.0 b66ff000-b670b000 r-xp 00000000 08:03 34821 /usr/lib/libXi.so.6.1.0 b670b000-b670c000 rwxp 0000b000 08:03 34821 /usr/lib/libXi.so.6.1.0 b670c000-b670e000 r-xp 00000000 08:03 34823 /usr/lib/libXinerama.so.1.0.0 b670e000-b670f000 rwxp 00001000 08:03 34823 /usr/lib/libXinerama.so.1.0.0 b670f000-b6717000 r-xp 00000000 08:03 34806 /usr/lib/libXrender.so.1.3.0 b6717000-b6718000 rwxp 00007000 08:03 34806 /usr/lib/libXrender.so.1.3.0 b6718000-b6725000 r-xp 00000000 08:03 30422 /usr/lib/libXext.so.6.4.0 b6725000-b6726000 rwxp 0000d000 08:03 30422 /usr/lib/libXext.so.6.4.0 b6726000-b6728000 r-xp 00000000 08:03 32973 /usr/lib/libgmodule-2.0.so.0.2200.2 b6728000-b6729000 rwxp 00002000 08:03 32973 /usr/lib/libgmodule-2.0.so.0.2200.2 b6729000-b6753000 r-xp 00000000 08:03 40872 /usr/lib/libfontconfig.so.1.3.0 b6753000-b6754000 rwxp 0002a000 08:03 40872 /usr/lib/libfontconfig.so.1.3.0 b6754000-b67d4000 r-xp 00000000 08:03 6336 /usr/lib/libfreetype.so.6.3.22 b67d4000-b67d8000 rwxp 0007f000 08:03 6336 /usr/lib/libfreetype.so.6.3.22 b67d8000-b6816000 r-xp 00000000 08:03 55255 /usr/lib/libpango-1.0.so.0.2600.0 b6816000-b6818000 rwxp 0003e000 08:03 55255 /usr/lib/libpango-1.0.so.0.2600.0 b6818000-b6889000 r-xp 00000000 08:03 55065 /usr/lib/libcairo.so.2.10800.8 b6889000-b688b000 rwxp 00071000 08:03 55065 /usr/lib/libcairo.so.2.10800.8 b688b000-b6894000 r-xp 00000000 08:03 55260 /usr/lib/libpangocairo-1.0.so.0.2600.0 b6894000-b6895000 rwxp 00008000 08:03 55260 /usr/lib/libpangocairo-1.0.so.0.2600.0 b6895000-b68ae000 r-xp 00000000 08:03 58638 /usr/lib/libgdk_pixbuf-2.0.so.0.1800.3 b68ae000-b68af000 rwxp 00019000 08:03 58638 /usr/lib/libgdk_pixbuf-2.0.so.0.1800.3Neúspěšně ukončen (SIGABRT) [spooky@localhost PyEd]$ |
From: M.B. <spo...@tb...> - 2009-11-07 07:36:13
|
hi, some news. my program falling with glibc error. *** glibc detected *** /usr/bin/python: free(): invalid next size (fast): 0x09841a20 *** |
From: M.B. <spo...@tb...> - 2009-11-07 07:35:08
|
hi all, i'm trying write autoindent in my editor for python. when i type something like 'class neco:' or 'def some():' in first line, program stop responding :(. but without ':' char working. sometines working with ':' too. :) please help me with this. what is in my source is bad ? thanks PS: sry for my english. here is my small source: #!/usr/bin/python # -*- coding: utf-8 -*- import re import gtk import gtkscintilla from gtkscintilla.constants import * class Source(gtkscintilla.Scintilla): def __init__(self): gtkscintilla.Scintilla.__init__(self) self.set_size_request(300, 300) # definice stylu pro zobrazovani self.set_style(32, font='!Terminus', size=8) self.set_style(33, font='!Terminus', size=8) self.set_lexer('python') self.set_tab_width(4) self.set_property('fold', '1') self.connect('margin-click', self.onMarginClicked) self.connect('char-added', self.charAdded) self.set_marker(SC_MARKNUM_FOLDER, type=SC_MARK_PLUS) self.set_marker(SC_MARKNUM_FOLDEROPEN, type=SC_MARK_MINUS) self.set_marker(SC_MARKNUM_FOLDERSUB, type=SC_MARK_VLINE) self.set_marker(SC_MARKNUM_FOLDERTAIL, type=SC_MARK_LCORNERCURVE) self.set_marker(SC_MARKNUM_FOLDEREND, type = SC_MARK_EMPTY) self.set_marker(SC_MARKNUM_FOLDERMIDTAIL, type = SC_MARK_EMPTY) self.set_marker(SC_MARKNUM_FOLDEROPENMID, type = SC_MARK_EMPTY) self.set_fold_flags(16) # cara pod folderem self.set_indentation_guides(1) # ukazuj indentaci self.set_margin(0, sensitive=False, type=SC_MARGIN_NUMBER, width=40) self.set_margin(1, width=0) # pouziji pro debugger symboly self.set_margin(2, sensitive=True, type=SC_MARGIN_SYMBOL, mask=SC_MASK_FOLDERS, width=16) def onMarginClicked(self, w, mod, position, margin): line_number = self.line_from_position(position) if margin == 2: self.toggle_fold(line_number) def charAdded2(self, widget, char): # autoindent pokus if char == '\r' or char == '\n': cur_line = self.line_from_position(self.get_current_pos()) line_len = self.line_length(cur_line) prev_line = self.get_line(cur_line - 1) match = re.search('^[ \t]*(def|while|if|else|elseif|repeat|class)', prev_line) if (cur_line > 0) and (line_len <= 2): prev_line_len = self.line_length(cur_line - 1) #prev_line = self.get_line(cur_line - 1) for pos in range(0, prev_line_len): if prev_line[pos] == ' ' or prev_line[pos] == '\t': self.replace_sel(''.join(prev_line[pos])) else: break if match: self.replace_sel(''.join('\t')) def charAdded(self, *args): # autoindent pokus if args[1] == '\r' or args[1] == '\n': cur_line = self.line_from_position(self.get_current_pos()) prev_line = self.get_line(cur_line - 1) match = re.search('^[ \t]*(def|while|if|else|elseif|class)', prev_line) for pos in range(0, len(prev_line)): if prev_line[pos] == ' ' or prev_line[pos] == '\t': self.replace_sel(''.join(prev_line[pos])) else: break if match: self.replace_sel(''.join('\t')) class Editor: def __init__(self): wnd = gtk.Window() wnd.connect('destroy', self.quitApp) wnd.set_size_request(600, 400) wnd.set_title('PyEd by spooky.LN') wnd.add(Source()) wnd.show_all() def quitApp(self, *args): gtk.main_quit() if __name__ == '__main__': editor = Editor() gtk.main() |