In Tk, we classify some of the variables as special variables and
they have a predefined usage/functionality. The list of special
variables is listed below.
Examples for using Tk special variables
Lets see the examples for special variables.TK VERSION
#!/usr/bin/wish puts $tk_versionWhen you run the program, you will get a similar output as shown below.
8.5
TK LIBRARY PATH
#!/usr/bin/wish puts $tk_libraryWhen you run the program, you will get a similar output as shown below.
/Library/Frameworks/Tk.framework/Versions/8.6/Resources/Scripts
TK PATCH LEVEL
#!/usr/bin/wish puts $tk_patchLevelWhen you run the program, you will get a similar output as shown below.
8.6.1
TK STRICTMOTIF
#!/usr/bin/wish puts $tk_strictMotifWhen you run the program, you will get a similar output as shown below.
0
No comments:
Post a Comment