Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Help: "?expression?"

瀏覽次數:30 次
跳到第一則未讀訊息

adilseb...@gmail.com

未讀,
2017年10月28日 下午3:10:102017/10/28
收件者:
Hy
Please what is the meaning of question marks in this exemple: "?options?", which I found in Tk documentation?
Thanks

Christian Gollwitzer

未讀,
2017年10月28日 下午3:38:352017/10/28
收件者:
Am 28.10.17 um 21:10 schrieb adilseb...@gmail.com:
> Please what is the meaning of question marks in this exemple: "?options?", which I found in Tk documentation?

It means that this argument is optional. For example:

puts ?-nonewline? string

means you can call it as

puts "Hello"

or

puts -nonewline "Hello"



If you see questions marks and an ellipse ?x y? ... it means that x and
y can be repeated arbitrarily often (e.g. "canvas coords" )

Christian

adilseb...@gmail.com

未讀,
2017年10月28日 下午4:22:322017/10/28
收件者:
Thank you of your help, now thing is clear😊, but what do you mean by "ellipse" in your exemple?😅

adilseb...@gmail.com

未讀,
2017年10月28日 下午4:25:352017/10/28
收件者:
If possible can you give somme links that point to your explanation?

Robert Heller

未讀,
2017年10月28日 下午4:28:132017/10/28
收件者:
It means the item is optional.

text pathName ?options?

means:

text .w
OR
text .w -height 40
OR
text .w -height 40 -width 24 -foreground pink -relief raised

Are all legal statements.
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
hel...@deepsoft.com -- Webhosting Services

adilseb...@gmail.com

未讀,
2017年10月28日 下午4:35:162017/10/28
收件者:
Thank you I am very grateful for your help because I use Tk toolkit with python(Tkinter) but I need sometime to read tcl/tk which is new for me

adilseb...@gmail.com

未讀,
2017年10月28日 下午4:39:002017/10/28
收件者:
You mean by "ellipse" the 3 points, know I understand😅
訊息已遭刪除

Ricardo kozmate.net

未讀,
2017年10月29日 清晨6:51:422017/10/29
收件者:
Em 28/10/17 21:22, adilseb...@gmail.com escreveu:
> what do you mean by "ellipse"

He should have said "ellipsis" (three dots: "..." or "…"), not "ellipse"
(a geometric figure). Tricky :-)

By the way, in some other post I think you confused "know" with "now".
Also tricky.

--
{ricardo from kozmate.net}

Ricardo kozmate.net

未讀,
2017年10月29日 清晨6:59:282017/10/29
收件者:
Em 28/10/17 21:25, adilseb...@gmail.com escreveu:
> If possible can you give somme links that point to your explanation?
>

Documentation for the documentation. Interestingly, seems like there is
none. I couldn't find, in a quick search. Maybe it is at some hidden corner?

The best related suggestion I can come up with is for you to read the
"Tcl/Tk 8.5 tutorial" as it explains the functionality using and
explaining the documentation. So you will get to understand the
documentation language without even noticing you were learning it. And
it is a very nice entry level explanation of TCL. It was my first real
read about it. It misses some features from later versions - most
notoriously the {*} I guess - but you'll catch up with that easy enough
later on.
Linked at <http://www.tcl.tk/man/>.
Direct link <http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html>

--
{ricardo from kozmate.net}
0 則新訊息