Tcl/Tk package in R Yichen Qin

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming
Advertisements

Data Analysis using SPSS By Dr. Shaik Shaffi Ahamed Ph. D
Tk Widgets This material is best on several sources –Slides by Dr. Ernest J. Friedman-Hill –various Tcl/Tk books.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Tutorial 8: Developing an Excel Application
OVERVIEW OF OFFICE 2007 What You Need to Know to Get Started!
Microsoft Word Objectives: Word processing using Microsoft Word
COMP 6703 Project A GUI Interface to the Gene Microarray Data Analysis Program SigMotif. Student: Ye Luo (u ) Clients: Professor Susan Wilson and.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
1 GUI Elements in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Chapter 14: Event-Driven Programming with Graphical User Interfaces
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Access Tutorial 10 Automating Tasks with Macros
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Section 6.1 Explain the development of operating systems Differentiate between operating systems Section 6.2 Demonstrate knowledge of basic GUI components.
Computer Science 111 Fundamentals of Programming I User Interfaces Introduction to GUI programming.
Self Guided Tour for Query V8.4 Basic Features. 2 This Self Guided Tour is meant as a review only for Query V8.4 Basic Features and not as a substitute.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
An Introduction to Visual Basic
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
TCL/Tk Based Environment for Mixed-Signal Circuit Design System Description Software Architecture Examples Future Directions Summary.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Advanced BioPSE NCRR SCIRun GUI Guidelines J. Davison de St. Germain Chief Software Engineer SCI Institute December 2003 J. Davison de St.
3461A Readings from the Swing Tutorial. 3461A Overview  The follow is the Table of Contents from the trail “Creating a GUI with JFC/Swing” in the “The.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Advanced EPICS Training, Dirk Zimoch 2008 Channel Access in Tcl/Tk.
PYTHON GUI PROGRAMMING
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Python Programming Graphical User Interfaces Saad Bani Mohammad Department of Computer Science Al al-Bayt University 1 st 2011/2012.
Computing Science 1P Lecture 17: Friday 23 rd February Simon Gay Department of Computing Science University of Glasgow 2006/07.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Lecture 10: Toolkits: Intrinsics, Callbacks, Resources, Widget hierarchies, Geometry management Brad Myers Advanced User Interface Software 1© 2013.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
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.
Menu Creation Business Rules Menu System By George Tisdale (April 2005)
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Graphical Enablement In this presentation… –What is graphical enablement? –Introduction to newlook dialogs and tools used to graphical enable System i.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
9-Nov-97Tri-Ada '971 TASH An Alternative to the Windows API TRI-Ada ‘97 Terry J. Westley
Creating visual interfaces in python
As we upgrade from ImageNow 6.1 to ImageNow 6.3, there are some changes to the interface that the end-users will see. These slides cover changes to the.
1 Lecture 5: Interactive Tools: Prototypers (HyperCard, Director, Visual Basic), Interface Builders Brad Myers Advanced User Interface Software.
CMPF124 Personal Productivity with Information Technology Chapter 2 – Part 3 Introduction To Windows Operating Systems Windows Accessories CMPF 112 : COMPUTING.
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.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
RAPID: THE RAPID ADA PORTABLE INTERFACE DESIGNER Martin Carlisle Department of Computer Science US Air Force Academy.
Computers Are Your Future Tenth Edition Spotlight 5: Microsoft Office Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
Working in the Forms Developer Environment
Topics Graphical User Interfaces Using the tkinter Module
Lexical Reference Variables in Graphics and List Box in Forms
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
1. Introduction to Visual Basic
GUI Using Python.
Henning Schulzrinne Advanced Programming
This Week: Tkinter for GUI Interfaces Some examples
Tkinter GUIs Computer Science and Software Engineering
The Basic Usage and The Event Handling in Glade.
Topics Graphical User Interfaces Using the tkinter Module
Experience with the process automation at SORS
Chapter 15: GUI Applications & Event-Driven Programming
LING 408/508: Computational Techniques for Linguists
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

Tcl/Tk package in R Yichen Qin Department of Applied Mathematics and Statistics December 5, 2008

Today’s schedule Introduction to Tcl/Tk package in R. Basic concepts in Tcl/Tk package Some basic example Some fancy examples (if time permitted)

Introduction to Tcl/Tk package

What is Tcl? Tcl, or the "Tool Command Language", is a powerfully simple, open source-licensed programming language. Tcl provides basic language features such as variables, procedures, and control structures. It runs on almost any modern OS. But the key feature of Tcl is its extensibility.

What is Tk? Tk is a Tcl extension, written in C, designed to give the user a relatively high level interface to his or her windowing environment. GUI (Graphical user interface) extension

What is Tcl/Tk? Tcl/Tk is a combination of a scripting language and a toolkit for graphical user interfaces.

What is Tcl/Tk package in R? The Tcl/Tk package allows the use of the Tk graphical user interface elements from within R by embedding Tk commands into the R language, and replacing Tcl code with R function calls.

Who developed it? Peter Dalgaard developed this package. He is a professor at Department of Biostatistics, University of Copenhagen Most examples and materials in our class are from by him.

Language of Tcl/Tk package R function instead of Tcl language. Too many commands

Learning Method The best way to learn Tcl/Tk package is through examples. There are relatively limited material for this package, compare to other packages. The commands are so many that no textbook will cover them all. So learning while using is the best way.

Learning material http://www.sciviews.org/_rgui/tcltk/ http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ http://www.r-project.org/

Basic concepts in Tcl/Tk – R with some examples

A basic component: Widget A widget is a GUI (Graphical user interface) element. It can be: buttons, listboxes, text editing windows, sliders, text entry fields, labels, menus, and a canvas for drawing graphics.

Widget example R-prog1.R R-prog2.R R-prog7.R

Geometry managers A geometry manager controls the placement of widgets within a master widget. Tkplacer() --- hardly used Tkpack() --- places widgets in order around edges of cavity based on a order and a direction. Tkgrid() --- lays out widgets in rows and columns

Tkpacker() example R-prog12.R

Tkgrid() example R-prog8.R

Connect widgets with R We need a way to get data from widgets to and from R, and a way to make things happen in response to widget events. Tkconfigure() --- value-related Tkbind() --- action-related

tkconfigure() example R-prog14.R R-prog9.R

Tkbind() example R-prog10.R

Creat a menu Menus are created in several steps. First you setup the menu with tkmenu(), then you add items with tkadd(). There are so many possible options for a menu item that this is a more practicable approach. Add menu backwards Tkmenu() Tkadd()

Tkmenu() tkadd() example R-prog4.R

Some more examples

examples R-prog3.R R-prog6.R R-prog11.R

Some advance examples with Tcl/Tk and rpanel Rpanel is also a package that developed based on Tcl/Tk.

Advanced examples http://www.stats.gla.ac.uk/~adrian/rpanel/ R-prog15.R R-prog16.R R-prog17.R R-prog18.R R-prog19.R R-prog20.R

Thank you My contact information: Email: yqin@jhu.edu Office: Whitehead 211E