Tcl/Tk 1 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 3, 2002.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
*** CONFIDENTIAL *** © Toshiba Corporation 2008 Confidential Wallboards.
1 Outline 13.1Introduction 13.2A Simple Program: Printing a Line of Text in a Web Page 13.3Another JavaScript Program: Adding Integers 13.4Memory Concepts.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Text Box controls are used when users are required to type some input (during program execution), or output is displayed on the form (known as the user-
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
School of Computing Science CMT1000 Ed Currie © Middlesex University Lecture 4: 1 CMT1000: Introduction to Programming Ed Currie Lecture 5a: Input and.
Tcl and Tk CSE 470 Fall 1999 Revised by Prasad. Objective To use Tcl Tk to develop GUI and prototype of the project.
Tcl/Tk 2 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 5, 2002.
JavaScript, Third Edition
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
CHAPTER SIX Loop Structures.
HTML Links and Anchors.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Java Programming, 3e Concepts and Techniques Chapter 2 - Part 2 Creating a Java Application and Applet.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
RM2D Let’s write our FIRST basic SPIN program!. The Labs that follow in this Module are designed to teach the following; Turn an LED on – assigning I/O.
 What are the different types of loops? ◦ Do….While  Performs statements within loop while a condition is true ◦ Do….Until  Performs statements within.
Tcl/Tk package in R Yichen Qin
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
TCL/Tk Based Environment for Mixed-Signal Circuit Design System Description Software Architecture Examples Future Directions Summary.
Advanced BioPSE NCRR SCIRun GUI Guidelines J. Davison de St. Germain Chief Software Engineer SCI Institute December 2003 J. Davison de St.
Adobe InDesign CS5 – Illustrated Unit E: Using Master Pages Adobe InDesign CS5 – Illustrated Unit E: Using Master Pages.
Advanced EPICS Training, Dirk Zimoch 2008 Channel Access in Tcl/Tk.
Active-HDL Interfaces Debugging C Code Course 10.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering –Intro to the Robotics –Introducing the IC –Discuss.
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
1 Chapter 12: Form Builder Objects and Flexible Code.
Installing the Server Software The first step in creating a MagicInfo Pro digital signage system is to install and configure the MagicInfo Pro Server.
Advanced BioPSE NCRR How to Install and Configure J. Davison de St. Germain Chief Software Engineer SCI Institute December 2003 J. Davison.
1 CSE1340 Class 4. 2 Objectives Write a simple computer program in Java Use Swing components to build the GUI Use proper naming conventions for classes.
How the Session Works Outline Practical on arrival Talk 1 Reflect on practical Clarify concepts Practical exercises at your own pace Talk 2: Further concepts.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
JavaScript, Fourth Edition Chapter 4 Manipulating the Browser Object Model.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Tkinter Basics. Initial Stuff To get the package: from tkinter import * To make a window, give it a title and operate it: windowVar = Tk() windowVar.title(“your.
9-Nov-97Tri-Ada '971 TASH An Alternative to the Windows API TRI-Ada ‘97 Terry J. Westley
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
April 27, 2006 The New GANGA GUI 26th LHCb Software Week C L Tan
Windows XP Lab 2 Organizing Your Work Competencies.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
CIS 205—Web Design & Development Flash Chapter 3 Appendix on Using Buttons.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
How to add Word-Art to a Word Document Purpose: To learn how to add WordArt to a Word Document.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Tcl/Tk Part 2.
SIX-NET Documentation SIX-NET Documentation (SCL) (SCL)
Digital Game Design ACST 3710 Your First Unity Program 1.
Tk Widgets in Javascript
Topics Graphical User Interfaces Using the tkinter Module
TCL/TK Tool Command Language/Tool Kit.
Tkinter GUIs Computer Science and Software Engineering
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
How to Run a Java Program
1. Open Visual Studio 2008.
Presentation transcript:

Tcl/Tk 1 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 3, 2002

2 Outline Install Tcl/Tk Run some demos Create some simple widgets

3 Install Tcl/Tk 1.Follow the instructions on the handout to copy and install Tcl/Tk 2.Run some demo programs: Start/Programs/ActiveState ActiveTcl / Demos/Tk 3.Check out the documentation ActiveTcl html/index.html Right click on Package Documentation to Open in New Window

4 start.tcl 1.Follow the instructions on the handout to copy start.tcl 2.Double-click start.tcl 3.Close start.tcl 4.Open start.tcl with WordPad (or Notepad)

5 Variables in Tcl Use set for assignment set foo 123 set tw.top Use $ for reference set bar $foo toplevel $tw

6 Widgets in Tk Widget names follow a hierarchy. top 2 b1b2b3b4.top.2.b4

7 frame and pack Use frame to create a logical group of widgets Use pack to display a widget frame $tw.2 pack $tw.2

8 button The button command creates a button button $tw.2.b1 Attributes may be specified when creating the widget or later with configure : button $tw.2.b1 -text "7" -command "Digit 7" or $tw.2.b1 configure -text "7" -command "Digit 7"

9 foreach foreach takes 3 arguments: a loop variable a list of items to assign to the loop variable a block of code The block of code is executed once for each item in the list

10 foreach example foreach col { } { pack $tw.$row.b$col } is the same as: pack $tw.$row.b1 pack $tw.$row.b2 pack $tw.$row.b3 pack $tw.$row.b4

11 proc proc foo {bar} { global baz set baz $bar } proc Digit {arg} { DisplayMe $arg } The global variable baz needs to be declared inside foo

12 Finishing the lab 1.Add more buttons 2.Add a label widget for a display 3.Change DisplayMe to update the label you just created