Tcl/Tk Part 2.

Slides:



Advertisements
Similar presentations
An Introduction to GUI Development using R
Advertisements

2.7 Linear Programming.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 19P. 1Winter Quarter MATLAB: Script and.
Programming Using Tcl/Tk These slides are based upon u several Tcl/Tk text books u material byDr. Ernest J. Friedman-Hill.
Introduction To Computers and Programming Lecture 2: Your first program Professor: Evan Korth New York University.
Tcl/Tk 1 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 3, 2002.
Tcl and Tk CSE 470 Fall 1999 Revised by Prasad. Objective To use Tcl Tk to develop GUI and prototype of the project.
Writing Tcl Scripts Outline Goal Reading Syntax Data Types
Tcl/Tk 2 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 5, 2002.
Writing Methods. Create the method Methods, like functions, do something They contain the code that performs the job Methods have two parts.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
CS 1704 Introduction to Data Structures and Software Engineering.
SAD and Python with EPICS at IHEP,Beijing, Noboru Yamamoto KEK, JAPAN.
Innovation Intelligence ® 1 Chapter 1: Introduction to TCL.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
Eagle: Tcl Implementation in C# 15th Annual Tcl Conference Joe Mistachkin.
Introduction to Programming Workshop 1 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
Tcl/Tk package in R Yichen Qin
Introduction to Matlab & Data Analysis
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Advanced EPICS Training, Dirk Zimoch 2008 Channel Access in Tcl/Tk.
Arrays Module 6. Objectives Nature and purpose of an array Using arrays in Java programs Methods with array parameter Methods that return an array Array.
Active-HDL Interfaces Debugging C Code Course 10.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
1 The Evaluator. 2 Compiler vs. Interpreter Command Processing Unit The Computer Program in Low Level Machine Language Program in High Level Language.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
Chapter 2: Introduction to HyperMesh Process Auomation
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
TCL TK. Tcl/Tk C functions can become Tcl commands that are invoked interactively Tk = scriptable, portable user interface –Windows, X (Unix), MacOS,
Porting a large scale enterprise application from Tcl/Tk 8.4 to 8.5 Prashant Thakre, Tushar Gupta {prashant_thakre, Gaurav Bansal.
Innovation Intelligence ® 1 Chapter 4: Using TCL to Control the HyperMesh Session.
CSE 1341 Honors Note Set 2 1. Overview  Java vs. C++  Functions in C++  First Programming Packet  Development Environment 2.
Byoung-Jo CHOI Fall 2007 SW Project II Advanced Linux Programming.
First Programs Chapter 2 The Java language (compiler) on CD ROM Create a program using an editor Compile the program Run the program Integrated Development.
General Computer Science for Engineers CISC 106 Lecture 12 James Atlas Computer and Information Sciences 08/03/2009.
An Overview of Tcl/Tk Programming. Tcl/Tk Tcl (Tool Command Language) is used by over half a million developers worldwide and has become a critical component.
Extending MATLAB Write your own scripts and/or functions Scripts and functions are plain text files with extension.m (m-files) To execute commands contained.
ENG College of Engineering Engineering Education Innovation Center 1 Functions 1 in MATLAB Topics Covered: 1.Uses of Functions Organizational Tool.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
USING CONDITIONAL CODE AMIR KHANZADA. Conditional Statement  Conditional statements are the set of commands used to perform different actions based on.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
S15-1 ADM , Section 15, August 2005 Copyright  2005 MSC.Software Corporation SECTION 15 DIALOG BOX BUILDER.
An Introduction To Tcl Scripting John Ousterhout Sun Microsystems Laboratories Tcl/Tk Tutorial, Part II.
Perl & TCL Vijay Subramanian, Modified from : perl_basics_06.ppt.
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
An Interactive Tutorial for SPSS 10.0 for Windows©
Tk Widgets in Javascript
CIRC Winter Boot Camp 2017 Baowei Liu
& BuildingTcl & BuildingTclViewer Getting Started Guide
MATLAB: Script and Function Files
TCL/TK Tool Command Language/Tool Kit.
and Executing Programs
Tkinter GUIs Computer Science and Software Engineering
MATLAB: Script and Function Files
Writing Methods.
String Output ICS 111: Introduction to Computer Science I
Introduction to Ansible
Command Line Arguments
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
MATLAB: Script and Function Files
Unit 6 part 6 Test Javascript Test.
Scripts In Matlab.
Local variables and how to recognize them
Corresponds with Chapter 5
Evaluating an expression with one variable
Presentation transcript:

Tcl/Tk Part 2

Overview of Basic Tk Widgets widget name arguments = basic Tk syntax button calls tcl code when pushed checkbutton on/off (toggle) button entry text-entry widget frame frames widgets inside a box label displays text message listbox scrolled list radiobutton on/off button set; only one on scale analog value from min to max text text-entry widget

Overview of Tcl/Tk Syntax Command arg1 arg2 arg3 = execute the command with the given arguments “Text in quotes” = pass text in quotes as one arg; perform command and variable substitution {Text in braces} = pass text in braces as one arg; defer command and variable substitution $variable or ${variable} = substitute the value of the given variable [command arg] = execute command; substitute value for command between square brackets Command arg1 \ arg2 = extend command over one line command 1; command 2 = two commands on one line

Tcl/Tk Demos BWidget – widget library application Tktable – table application written in C BLT – graphs application These can be used to help build new applications and are all installed in the /usr/local directory of the machines sif and tyr. You can learn much from studying the code of these demos.

Running the Demos on sif and tyr BWidget /usr/local/BWidget/demo/demo.tcl Tktable (demos not in /usr/local) cd ~mitchell/Tktable2.8 demos/basic.tcl, demos/buttons.tcl BLT cd /usr/local/blt/lib/blt2.4/demos /usr/local/blt/bin/bltwish spline.tcl /usr/local/blt/bin/bltwish stripchart1.tcl