텍스트 위젯 라인 넘버 및 Wrap 이미지 보여주기
아래의 스크립트는 텍스트 위젯에 라인넘버 기능을 넣고, wrap 된 라인에 wrap이미지를 보여주는 스크립트입니다. 간단한 텍스트 편집기를 만들고자 하시는 분들께 도움이 되리라 생각이 듭니다.package require Tk 8.5image create bitmap wrap_bit -foreground #aac -data { #define wrap_width 8 #define wrap_height 8 static unsigned char wrap_bits[] = { 0x02, 0x02, 0x02, 0x22, 0x62, 0xfc, 0x60, 0x20 };}proc main {} { text .text \ -wrap word \ -borderwidth 0 \ ..