зеркало из https://github.com/github/ruby.git
125 строки
4.2 KiB
Plaintext
125 строки
4.2 KiB
Plaintext
|
(tof)
|
|||
|
MANUAL.euc
|
|||
|
Sep. 19, 1997 Y. Shigehiro
|
|||
|
|
|||
|
<EFBFBD>ʲ<EFBFBD>, <20><>tcl/tk<74>פȤ<D7A4><C8A4><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>, tclsh <20><> wish <20><><EFBFBD>¸<EFBFBD><C2B8><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>, <20><><EFBFBD>̤Ǥ<CCA4><C7A4><EFBFBD>
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> tcl/tk <20><><EFBFBD>ؤ<EFBFBD><D8A4>ޤ<EFBFBD>. <20><>tcltk <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD>, <20><>tcltklib <20>饤<EFBFBD>֥<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>פȤ<EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>ܥѥå<D1A5><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴ޤޤ<DEA4><DEA4><EFBFBD> ruby <20>ѤΥ饤<CEA5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؤ<EFBFBD><D8A4>ޤ<EFBFBD>.
|
|||
|
|
|||
|
<< tcltk <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD> >>
|
|||
|
|
|||
|
tcl/tk <20><> C <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4>뤿<EFBFBD><EBA4BF><EFBFBD>ι<EFBFBD>(<28><>?)<29><><EFBFBD>।<EFBFBD><EFBFBD><F3A5BFA1>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commands
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>̿<EFBFBD><EFBFBD><EFBFBD><EFBFBD> tcltk <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD>Ǥ<EFBFBD>
|
|||
|
info.e("commands")
|
|||
|
<EFBFBD>ȵ<EFBFBD><EFBFBD>Ҥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD>. <20>ޤ<EFBFBD>, <20><>.<2E>פȤ<D7A4><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD> (wish <20>¹Ի<C2B9><D4BB>˼<EFBFBD>ưŪ<C6B0><C5AA><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롼<EFBFBD>ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD>) <20><><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD> ruby <20>Υ<EFBFBD><CEA5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD> root <20>Ȥ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD>̾<EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|||
|
. configure -height 300 -width 300
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD> tcl/tk <20><>̿<EFBFBD><CCBF><EFBFBD><EFBFBD>
|
|||
|
root.e("configure -height 300 -width 300")
|
|||
|
<EFBFBD>ȵ<EFBFBD><EFBFBD>Ҥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD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EFBFBD><C9A4>б<EFBFBD><D0B1><EFBFBD><EFBFBD>륪<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>.
|
|||
|
# <20><><EFBFBD>ޥ<EFBFBD><DEA5>ɤ<EFBFBD><C9A4>б<EFBFBD><D0B1><EFBFBD><EFBFBD>륪<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>ä<EFBFBD> Hash <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD>.
|
|||
|
c = ip.commands()
|
|||
|
# <20>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><DEA5>ɤ<EFBFBD><C9A4>б<EFBFBD><D0B1><EFBFBD><EFBFBD>륪<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>̤<EFBFBD><CCA4>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
bind, button, info, wm = c.indexes("bind", "button", "info", "wm")
|
|||
|
|
|||
|
4. ɬ<>פʽ<D7A4><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD>.
|
|||
|
<20>ܤ<EFBFBD><DCA4><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD><D7A5>ȤΤ<C8A4><CEA4><EFBFBD>.
|
|||
|
|
|||
|
5. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>٥<EFBFBD><D9A5>ȥ롼<C8A5>פ<EFBFBD><D7A4><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
TclTk.mainloop()
|
|||
|
|
|||
|
(( <20>ʲ<EFBFBD>, <20>⥸<EFBFBD>塼<EFBFBD><E5A1BC>, <20><><EFBFBD>饹<EFBFBD><E9A5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͽ<EFBFBD><CDBD>.))
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<< tcltklib <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD> >>
|
|||
|
|
|||
|
tcl/tk <20><> C <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4>뤿<EFBFBD><EBA4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>।<EFBFBD><EFBFBD><F3A5BFA1>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F3B6A1A4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD>.
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѥ<EFBFBD><EFBFBD><EFBFBD>/<2F>¹Ԥˤ<D4A4>, tcl/tk <20><> C <20>饤<EFBFBD>֥<EFBFBD><D6A5>꤬ɬ<EAA4AC>פǤ<D7A4>.
|
|||
|
|
|||
|
[<5B><><EFBFBD><EFBFBD>]
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Υ饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFB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BD><EFBFBD> TclTkLib
|
|||
|
tcl/tk <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƤӽФ<D3BD><D0A4><EFBFBD>åɤ<F2BDB8A4>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD>Ǥ<EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|||
|
tcl/tk <20><><EFBFBD>ץ<D7A5>ط<EFBFBD><D8B7>Υ<CEA5>åɤϥ<C9A4><CFA5>饹 TclTkIp <20>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD>ޤ<EFBFBD>.
|
|||
|
|
|||
|
<20>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD>å<EFBFBD> mainloop()
|
|||
|
Tk_MainLoop <20><><EFBFBD>¹Ԥ<C2B9><D4A4>ޤ<EFBFBD>. <20><><EFBFBD>Ƥ<EFBFBD> tk <20>Υ<EFBFBD><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɥ<EFBFBD><C9A5><EFBFBD>̵<EFBFBD><CCB5><EFBFBD>ʤ<EFBFBD><CAA4>Ƚ<EFBFBD>λ
|
|||
|
<20><><EFBFBD>ޤ<EFBFBD>(<28>㤨<EFBFBD><E3A4A8>, tcl/tk <20>ǽȤ<F1A4AFA4><C8A4><EFBFBD><EFBFBD><EFBFBD> "destroy ." <20><EFBFBD><F2A4B7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>).
|
|||
|
<20><><EFBFBD><EFBFBD>: ̵<><CCB5>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: nil
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>饹 TclTkIp
|
|||
|
<20><><EFBFBD><EFBFBD><F3A5B9A5><EFBFBD> tcl/tk <20>Υ<EFBFBD><CEA5>ץ<D7A5><EAA5BF><EFBFBD>б<EFBFBD><D0B1><EFBFBD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BD>. <20><><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD> ruby <20>μ¹Է<C2B9><D4B7>̤Ǥ<CCA4>.
|
|||
|
ruby <20>μ¹Է<C2B9><D4B7>̤<EFBFBD> nil <20><> String <20>Ǥʤ<C7A4><CAA4><EFBFBD><EFBFBD>Фʤ<D0A4><CAA4>ޤ<EFBFBD><DEA4><EFBFBD>.
|
|||
|
|
|||
|
<20><><EFBFBD>饹<EFBFBD><EFBFBD>å<EFBFBD> new()
|
|||
|
TclTkIp <20><><EFBFBD>饹<EFBFBD>Υ<EFBFBD><CEA5><EFBFBD><F3A5B9A5><EFBFBD><F3A5B9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD>: ̵<><CCB5>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (TclTkIp): <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><ECA4BF><EFBFBD><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<20><EFBFBD>å<EFBFBD> _eval(script)
|
|||
|
<20><><EFBFBD>ץ<D7A5><EAA5BF> script <20><>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD>(Tcl_Eval <20><><EFBFBD>¹Ԥ<C2B9><D4A4>ޤ<EFBFBD>). <20><><EFBFBD><EFBFBD>
|
|||
|
<20>Τ褦<CEA4><E8A4A6>, ruby <20><><EFBFBD>ޥ<EFBFBD><DEA5>ɤˤ<C9A4><CBA4><EFBFBD> script <20>⤫<EFBFBD><E2A4AB> ruby <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ץȤ<D7A5><C8A4><EFBFBD>
|
|||
|
<20>ԤǤ<D4A4><C7A4>ޤ<EFBFBD>.
|
|||
|
<20><><EFBFBD><EFBFBD>: script (String) - <20><><EFBFBD>ץ<D7A5><EAA5BF>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD>륹<EFBFBD><EBA5B9><EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (String): ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ((Tcl_Interp *)->result)
|
|||
|
|
|||
|
<20><EFBFBD>å<EFBFBD> _return_value()
|
|||
|
ľ<><C4BE><EFBFBD><EFBFBD> Tcl_Eval <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4>֤<EFBFBD><D6A4>ޤ<EFBFBD>. 0(TCL_OK) <20><><EFBFBD><EFBFBD><EFBFBD>ェλ<EFBDAA>Ǥ<EFBFBD>.
|
|||
|
<20><><EFBFBD><EFBFBD>: ̵<><CCB5>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Fixnum): ľ<><C4BE><EFBFBD><EFBFBD> Tcl_Eval() <20><><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
|
|||
|
(eof)
|