These two things are separate. In the official website to the next 两个
, or compile a long time, how only one tcl
of it?
Use vs2017x86自带的命令行快捷方式
Open Directory. Compiler can not otherwise tcl
then there are points buildall.vc.bat
, compiled a few here,
then compiled tk
.'Re looking first tcl
of table of Contents:
if "%INSTALLDIR%" == "" set INSTALLDIR=G:\tcl8.6.10
if "%TCLDIR%" == "" set TCLDIR=..\..\tcl8.6.10
Changed, at win
another point in the directory build....bat
, do not toss. And came out a few.
The tcl与tk的8.6.10
following library
are copied into the current directory.
import tkd.tkdapplication; // Import Tkd.
class Application : TkdApplication // Extend TkdApplication.
{
private void exitCommand(CommandArgs args) // Create a callback.
{
this.exit(); // Exit the application.
}
override protected void initInterface() // Initialise user interface.
{
auto frame = new Frame(2, ReliefStyle.groove) // Create a frame.
.pack(10); // Place the frame.
auto label = new Label(frame, "Hello World!") // Create a label.
.pack(10); // Place the label.
auto exitButton = new Button(frame, "Exit") // Create a button.
.setCommand(&this.exitCommand) // Use the callback.
.pack(10); // Place the button.
}
}
void main(string[] args)
{
auto app = new Application(); // Create the application.
app.run(); // Run the application.
}
dub.sdl
Contents of the file:
name "tk"
dependency "tkd" version="1.1.13"
sourceFiles "b.d"
targetType "executable"
Command dub2(即dub复制到ldc2目录的bin下)
, dub
the link in question.