Changes between Version 1 and Version 2 of helloworld
- Timestamp:
- Sep 26, 2006, 7:05:18 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
helloworld
v1 v2 8 8 Then we 'withdraw' the main window (which would be otherwise still visible) from the screen by issuing the !TkWm command with 'withdraw' as an argument.[[BR]] 9 9 After this, we just call the !TkMessageBox function to display our important message. We don't need an event loop because we will just return after the call. Refer to your [http://www.tcl.tk/man/tcl8.0/ Tcl/Tk manual] for further information about the [http://www.tcl.tk/man/tcl8.0/TkCmd/messageBox.htm tk_messageBox] function.[[BR]] 10 At the end, we need to unload FORTRAN/TK by calling the !TkUnload function. We output an error message again if TkUnload returns a positive value.[[BR]]10 At the end, we need to unload FORTRAN/TK by calling the !TkUnload function. We output an error message again if !TkUnload returns a positive value.[[BR]] 11 11 This is a listing of this simple program: 12 12