# hello.tcl pack [button .b -text "こんにちは" -command exit] |
TclAppを起動し、Fileタブを開いて白いBrowseボタンでtclファイルを登録します。
登録したhello.tclを選択して、SetMainボタンを押します。
次に、Wrappingタブを開いてOutput filewを指定します。
ModifireのCompile .tcl filesにチェックを入れます。
このチェックを入れないと日本語表示が化けてしまいます。
次に、Runタブを開いてWrapボタンを押します。 これで、hello.kitファイルが出来ます。
出来たhello.kitファイルは、ActiveTclのwish.exeまたはTcl Dev Kitのbase-tk-win32-ix86.exeで実行できます。
# init.tcl set appdir [file join $starkit::topdir lib/application/hello] file copy $appdir/shiftjis.enc [info nameofexec]/lib/tcl8.4/encoding/ encoding system shiftjis source [file join $appdir hello.tcl] |
# hello.tcl pack [button .b -text "こんにちは" -command exit] |
TclAppを起動し、Fileタブを開いて白いBrowseボタンでtclファイルを登録します。
shiftjisのencoding(shiftjis.enc)を登録します。
登録したinit.tclを選択して、SetMainボタンを押します。
次に、Wrappingタブを開いてInput fileとOutput fileを指定します。
ModifireのCompile .tcl filesにチェックを入れます。
このチェックを入れないと日本語表示が化けてしまいます。
次に、Runタブを開いてWrapボタンを押します。 これで、hello.exeファイルが出来ます。
出来たhello.exeファイルは、単独で実行可能です。
※このダイアログは縦のスクロールバーの制御が変です。
if {[clock seconds] > 1046703600} { puts stderr "| This application has been generated with an evaluation license of the" puts stderr "| Tcl Dev Kit 'TclApp' utility. The evaluation license has expired now." puts stderr "| Please contact the author of this application for a non-expiring" puts stderr "| version of the program: Satoshi Imai <...>." exit return } |