From: Zbigniew Diaczyszyn on 24 Apr 2010 09:37 I didn't find an option for the tab width while using the tkcon's edit function and a standard spacing of 8 characters is too much. My quick and dirty solution: I added to the copy of tkcon the following line in the procedure edit for a tab length of 2: -tabs "[expr {2 * [font measure $::tkcon::OPT(font) 0]}] left" -tabstyle wordprocessor The patch in diff format: --- opt/ActiveTcl-8.5/bin/tkcon +++ home/dia/Programme/tkcon2 @@ -3822,7 +3822,9 @@ -foreground $::tkcon::COLOR(stdin) \ -background $::tkcon::COLOR(bg) \ -insertbackground $::tkcon::COLOR(cursor) \ - -font $::tkcon::OPT(font) -borderwidth 1 -highlightthickness 0 + -font $::tkcon::OPT(font) -borderwidth 1 -highlightthickness 0 \ + -tabs "[expr {2 * [font measure $::tkcon::OPT(font) 0]}] left" -tabstyle wordprocessor + catch { # 8.4+ stuff $w.text configure -undo 1 I put a ticket in the Sourceforge Tracker for Feature Requests, too
From: Jeff Hobbs on 26 Apr 2010 12:30 Hi Zbigniew, On Apr 24, 6:37 am, Zbigniew Diaczyszyn <z....(a)gmx.de> wrote: > I didn't find an option for the tab width while using the tkcon's edit > function and a standard spacing of 8 characters is too much. > > My quick and dirty solution: > > I added to the copy of tkcon the following line in the procedure edit > for a tab length of 2: > > -tabs "[expr {2 * [font measure $::tkcon::OPT(font) 0]}] left" -tabstyle > wordprocessor > > The patch in diff format: ... > I put a ticket in the Sourceforge Tracker for Feature Requests, too Thanks for making the feature request. I'll look at it and see if it can be added to the set of options (probably something more flexible would be necessary). Of course the default tab size is 8, which is why tkcon is using that. Jeff
|
Pages: 1 Prev: wikit on Mac OS 10.5.8 Next: How to exec a complicated command? |