Version 32 of Tcl Minimal Escaping Style

Updated 2015-05-18 03:03:48 by pooryorick

How to post on this page

Please do not edit this part, it is meant as a guide!



This page runs the risk of being deleted and corrupted. Please be very careful when editing it. If you inadvertently delete it, immediately revert your edit using the History link on the left side of this page.

Do NOT attempt to restore it by copying and pasting the text from a previous revision, or all page formatting will be lost!

Please put new questions at the TOP of the page, below this section, so that as the page grows longer, new questions are seen first.

Also please put a section header on top of every question and put two stars in the beginning of the title and two stars in the end. This will make your question's section easily editable.

Once you have received a satisfactory answer, please cut your question and answer directly on an appropriate page of the wiki. If you cannot find an existing page, create a new one.

You might also simply want to put a hyperlink leading to a page of the wiki where your question is included like Didier has done on February 5th 2011. This will save you the trouble of cutting your question to an existing page afterwards.

Put your question below. Thanks!

Questions


new question

just edit and copy this section


Preferred Online-Interpreter

As Online-interpreter with Tcl-support, I know

What else are out there, what are their advantages / disadvantages, etc.?
Lua has its own Live demo , Tcl doesn't have such a thing ?
Any recommandations ?


Date for announcements on startpage of wiki

MiHa 2015-05-05: Why is there no date on news-items like "Tcl/Tk 8.6.4 Released" ?


Shikiria - 2015-04-28 02:18:52 - wm maxsize

I have made a little GUI and its max size is -800 -400.

wm maxsize . 800 400

Now when I maximize my little window it jumps to the top left hand corner. Is there a way for me to make it maximize on the spot?

With the window maximized and it's sitting on the top left hand corner, if I try to grab the title bar and move it to the center, the window immediately minimizes again.

Is there a way to prevent that?

Thanks for the help guys.

Warm regards Shikiria

arjen: The purpose of wm maxsize is to restrict the size of the window. From your description I read that you want it to fill the screen anyway. In that case, just drop wm maxsize, in which case Tcl/Tk calculates the size of the window itself. You can be quite lazy in that respect.


Wiki - Links to questions

MiHa 2015-04-27:

At the top of Ask, and it shall be given # 8, there is the statement

"Please add hyperlinks leading to your question at the top of this page".

Isn't that the job of "<<TOC>>" ?


Wiki - Section edit

MiHa 2015-04-25:

This wiki shows edit-links only for sections of level 1 (header enclosed in **). Can this be controlled somehow ? For example, in these "Ask"-pages, it would be nice to be able to only edit the section of a single question (that is, a level 2-section).

PYK 2015-05-17: This is one reason I keep the pages I've edited mostly flat, rarely going beyond the ** header level. Sometimes I think it's a good thing that it isn't easier to use multiple layers of headings, because it encourages keeping each page smaller and moving sections off into their own pages. In general, I think keeping each wiki page smaller and more dedicated to a particualr issue is good style.


String-to-integer / values from clock

MiHa 2015-03-15 : This problem came up when writing FuzzyClock, converting values from clock seconds to integer.

What is the preferred way to convert the string-values for hours, minutes or seconds to integers ?
There are several "obvious ways" to do it, such as

  • incr mm; incr mm -1;
  • set x [expr {$mm}]
  • format %u $mm
  • and more, see expr problems with int.
  • All those work "most of the time", but give a surprising error for some values, e.g. "08" and "09".

For FuzzyClock, I wrote a proc s2i, that just special-cases these values, but there should be some better way.


Image placement / TOC

MiHa 2015-03-14 : I think it would be nice to have a picture on the right side of a <<TOC>>, where the space is mostly unused. I tried that on the Graffiti-page, but it doesn't come out that way.

Using a table doesn't help in this case, because it appears that <<TOC>> only works when standing alone on a line. What are the options for placing images here on the wiki ?


Edit very first section of a page

MiHa 2015-03-14 : The **first section** gets number 0, so how can you edit the top section only, of a (possibly very long) page ?

AMG: When you originally make the page, start it with a **whatever** section header, saying "overview" or some such. It's not ideal, I know, but it's what we have right now.


LAM 2015-01-19 02:36:03

«Once you have received a satisfactory answer, please cut your question and answer directly on an appropriate page of the wiki. If you cannot find an existing page, create a new one.»

Sorry but i think is better avoid this kind of pages of miscellaneous. If the people cuts the questions after to receive answer, why these pages are full of questions ? (isn´t for lack of anwsers, sure).

BW 2015-01-20 02:36:03:

It is because we, ticklish world Tclers are not as disciplined as Ticklish Argentinian Tecklers! :-) We don't put the paragraph in the right spot when the paragraph is complete. If we did so, this page would serve its purpose: to be a temporary repository of questions and answers. Oh well!


Codefolding

MiR - 2015-02-25:

I'm working with jEdit mainly. Is there something like a codefolding sidekick for Tcl (as for other languages like php, where I can see the functions in the sidebar)? I've been searching for a time now and can't find any... thanks for your help, Michael

RLE 2015-02-25: I've heard it said that the Geany editor will display Tcl procs in the sidebar.