Webwisetcltk: a Safe-Tcl/Tk-Based Toolkit Enhanced for the World Wide Web

Total Page:16

File Type:pdf, Size:1020Kb

Webwisetcltk: a Safe-Tcl/Tk-Based Toolkit Enhanced for the World Wide Web The following paper was originally published in the Proceedings of the Sixth Annual Tcl/Tk Workshop San Diego, California, September 14–18, 1998 WebWiseTclTk: A Safe-Tcl/Tk-based Toolkit Enhanced for the World Wide Web Hemang Lavana and Franc Brglez North Carolina State University For more information about USENIX Association contact: 1. Phone: 510 528-8649 2. FAX: 510 548-5738 3. Email: [email protected] 4. WWW URL:http://www.usenix.org/ WebWiseTclTk: A Safe-Tcl/Tk-based To olkit Enhanced for the World Wide Web Hemang Lavana Franc Brglez CBL Collab orative Benchmarking Lab, Dept. of Computer Science, Box 7550 NC State University, Raleigh, NC 27695, USA http://www.cbl.ncsu.edu/ tion of multimedia content on the WWW. Tcl-plugin Abstract [7, 8] is an example of an elegant solution for em- The WebWiseTclTk toolkit is an enhancement of the b edding Tcl/Tk applications for ready access inside existing feature set of Safe-Tcl and Safe-Tk that does the Web browser. In addition, the Tcl-plugin sup- not compromise security. The toolkit re-de nes the p orts an excellent mechanism for security of client load mechanism in Tcl such functionality of the auto hosts using a padded cell approach [9]. The default that it works for packages located anywhere on the security p olicy prohibits Tcl applets tclets from World Wide Web. It also re-introduces several com- running other programs, accessing the le system, mands not available in Safe-Tk such as toplevel and creating toplevel windows including menus, and menu to provide a much richer feature set of Tk thereby giving the client hosts a high level of con - commands. The toolkit is written entirely in Safe- dence when executing tclets. However, such restric- Tcl/Tk and uses the home p olicy for running appli- tions limit the scop e of the Tcl applications executed cations as Tcl-plugins. inside a Web-browser. The toolkit supports 1 creation of new Web-based Our initial exp erience with Tcl/Tk, predating the Tcl applications with greatly enhanced functionality, phenomenal growth of WWW, was motivated by the and 2 migration of existing Tcl applications to the need to develop a user-friendly and versatile envi- Web by merely writing an encapsulation script. We ronment to supp ort user-recon guration of complex demonstrate the capabilities of the WebWiseTclTk work ows that execute heterogeneous programs and toolkit by readily creating an encapsulation script for data for the design of exp eriments in VLSI CAD. Web-based execution of the Tk Widget Demonstra- This environment, called REUBEN for reusable and tions, distributed with the core Tcl/Tk. recon gurable b enchmarking environment, was im- Keywords: plugins, Web browsers, security, script- plemented entirely in Tcl/Tk [1] and Expect [10]. In ing, encapsulation, GUI. essence, it provides the user with the ability to create directed dep endency graphs as work ows of data, 1 Intro duction program, decision, and work ow no des. Data and The last few years have seen an explosive growth programs can reside anywhere on the Internet, and of the usage of Tcl Tool Command Language execution of all no des can be scheduled automati- [1, 2, 3] and its p opularity can b e easily gauged by cally, regardless of the data-dep endent cycles in the the large numb er of p ostings in the Tcl newsgroup graph. In its nal form, the work ows in REUBEN can comp.lang.tcl. Scripting languages such as Tcl be multi-cast to several collab orating sites, recorded, are designed for `gluing' applications and encourage and played-back for re-execution. An example of rapid application development as compared to sys- REUBEN environment to supp ort a number of dis- tem programming languages, and hence are very im- tributed and heterogeneous tasks in a VLSI CAD p ortant for applications of the future [4]. The emer- work ow is illustrated in Figure 1. More details are gence of organizations such as the recently formed available in [11,12,13]. Scriptics [5] and the Tcl/Tk Consortium [6], fo cus- Migration of large applications, suchas REUBEN,to ing entirely on scripting to ols, applications and ser- the Web is not easy if highest level of con dence vices, is an example of this trend. in terms of security is desired. This is esp ecially The maturity and robustness of Tcl/Tk provides a true, b ecause toplevel windows and menus are es- new opp ortunity to supp ort creation and presenta- sential in such applications. One solution could b e This researchwas supp orted by contracts from the Semi- to use Jacl [14], an interpreter to run Tcl scripts in conductor Research Corp oration 94{DJ{553, SEMATECH a Java environment. Unfortunately, Jacl do es not 94{DJ{800, and DARPA/ARO P{3316{EL/DAAH04{94{ yet contain the entire feature set of Tcl, including G{2080 and DAAG55{97{1{0345. Fig. 1. REUBEN environment consisting of several windows. namespaces and Tk. The WebWiseTclTk to olkit pro- Menu widgets are also disabled in Safe-Tk. vides an easy solution for the migration of existing Tclets do not have access to standard input and Tcl applications to the Web. Minimal changes are standard output. required in the original application. Our approach The Tcl-plugin supp orts multiple security p olicies so uses an encapsulating script to call the main script that the tclets can p erform any of the functionality of the original application. describ ed ab ove. However, this requires every client This pap er is organized into the following sections: host to devise and customize their security p olicies 2 motivation; 3 WebWiseTclTk architecture; 4 for every application b efore accessing these as tclets. implementation of WebWiseTk; 5 implementation of WebWiseTcl; 6 user's guide; 7 programmer's It is desirable that the Tcl applications be easily guide; 8 software status and availability; and 9 translated into tclets and made readily available on conclusions. the World Wide Web: without requiring any ma jor changes in the ap- 2 Motivation plication co de, and without requiring any sophisticated security p ol- A large application, written in Tcl, typically con- sists of a short main script and a library of supp ort icy to run the tclet. scripts. Applications start up quickly by invoking Wehave develop ed the WebWiseTclTk to olkit as an the main script. As new features are accessed, the enhancement to the Tcl-plugin that makes use of the co de that implements them is loaded automatically, home policy only. The home policy is, by default, using the auto load mechanism available in Tcl. A enabled in the Tcl-plugin and hence applications us- complex environment suchas REUBEN, describ ed ear- ing WebWiseTclTk do not require the host clients to lier and illustrated in Figure 1, requires that a num- mo dify their existing security p olicies. b er of windows b e created during its runtime. The Tcl-plugin, based on Safe-Tcl, restricts running We decided to use the Tk widget demonstrations, such large applications inside a Web-browser. A few distributed with the core Tcl/Tk, as a test-b ench of these restrictions are listed b elow: for testing the WebWiseTclTk to olkit. We chose to translate these demos for the World Wide Web load scheme fails, unless the application Auto b ecause they cover most of the commands of the package is installed on the client host. Another alter- core Tcl/Tk that are otherwise unavailable in Safe- native is to merge all the scripts in the application Tcl/Tk. Figure 2 shows the result of p osting these into a single script which can be downloaded as a demos on the Web and executing them on a host tclet. clientasatclet using the Netscap e browser. We in- Applications are restricted to a single window vite users to try out this demo and send us comments since the command toplevel is not available in Safe- on its features and p erformance. Tk and new windows cannot b e created. Fig. 2. Tcl/Tk widget demos on the Web. 3 Architecture Figure 3a shows the general architecture that load mechanism. Sp ecial implements the auto cases of the generalized architecture are shown in The to olkit WebWiseTclTk consists of two parts: 1 Figures3b, c and d and describ ed b elow: WebWiseTcl which is an enhancement for Safe-Tcl 1. Typical client host, downloading a tclet from a and is useful for applications that do not require Web server, has only the Tcl-plugin installed for its display, and 2 WebWiseTk which is an enhancement Web-browser. The server site provides not only the for Safe-Tk for applications requiring display. The tclet scripts but also the WebWiseTclTk to olkit as to olkit itself consists of several smaller scripts and shown in Figure 3b. The client host downloads uses the mo di ed auto load mechanism designed for the main script for the tclet which requests to use WebWiseTclTk. WebWiseTclTk Toolkit CBL's Web Site Software Repository policy \ WebWiseTclTk Tcl Plugin Tclet Client Host Web Browser Web Server Incorporates Tclets policy home WebWiseTclTk Toolkit WebWiseTclTk Tclet Toolkit Scripts a Generalized architecture. Tcl Tcl Plugin Plugin Client Host Client Host Tclet Tclet Web Browser Web Browser Web Server Web Server Incorporates Tclets policy home Incorporates Tclets policy home WebWiseTclTk Toolkit Tclet WebWiseTclTk Scripts Tclet Toolkit Scripts b WebWiseTclTk to olkit on the Web server. c WebWiseTclTk to olkit on the client host. WebWiseTclTk Toolkit CBL's Web Site Software Repository Typical scenario of a tclet execution: Client host visits the Web server.
Recommended publications
  • Eagle: Tcl Implementation in C
    Eagle: Tcl Implementation in C# Joe Mistachkin <[email protected]> 1. Abstract Eagle [1], Extensible Adaptable Generalized Logic Engine, is an implementation of the Tcl [2] scripting language for the Microsoft Common Language Runtime (CLR) [3]. It is designed to be a universal scripting solution for any CLR based language, and is written completely in C# [4]. Su- perficially, it is similar to Jacl [5], but it was written from scratch based on the design and imple- mentation of Tcl 8.4 [6]. It provides most of the functionality of the Tcl 8.4 interpreter while bor- rowing selected features from Tcl 8.5 [7] and the upcoming Tcl 8.6 [8] in addition to adding en- tirely new features. This paper explains how Eagle adds value to both Tcl/Tk and CLR-based applications and how it differs from other “dynamic languages” hosted by the CLR and its cousin, the Microsoft Dy- namic Language Runtime (DLR) [9]. It then describes how to use, integrate with, and extend Ea- gle effectively. It also covers some important implementation details and the overall design phi- losophy behind them. 2. Introduction This paper presents Eagle, which is an open-source [10] implementation of Tcl for the Microsoft CLR written entirely in C#. The goal of this project was to create a dynamic scripting language that could be used to automate any host application running on the CLR. 3. Rationale and Motivation Tcl makes it relatively easy to script applications written in C [11] and/or C++ [12] and so can also script applications written in many other languages (e.g.
    [Show full text]
  • Preview Tcl-Tk Tutorial (PDF Version)
    Tcl/Tk About the Tutorial Tcl is a general purpose multi-paradigm system programming language. It is a scripting language that aims at providing the ability for applications to communicate with each other. On the other hand, Tk is a cross platform widget toolkit used for building GUI in many languages. This tutorial covers various topics ranging from the basics of the Tcl/ Tk to its scope in various applications. Audience This tutorial is designed for all those individuals who are looking for a starting point of learning Tcl/ Tk. Therefore, we cover all those topics that are required for a beginner and an advanced user. Prerequisites Before proceeding with this tutorial, it is advisable for you to understand the basic concepts of computer programming. This tutorial is self-contained and you will be able to learn various concepts of Tcl/Tk even if you are a beginner. You just need to have a basic understanding of working with a simple text editor and command line. Disclaimer & Copyright Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute, or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
    [Show full text]
  • Python and Epics: Channel Access Interface to Python
    Python and Epics: Channel Access Interface to Python Matthew Newville Consortium for Advanced Radiation Sciences University of Chicago October 12, 2010 http://cars9.uchicago.edu/software/python/pyepics3/ Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Python? The Standard Answers Clean Syntax Easy to learn, remember, and read High Level Language No pointers, dynamic memory, automatic memory Cross Platform code portable to Unix, Windows, Mac. Object Oriented full object model, name spaces. Also: procedural! Extensible with C, C++, Fortran, Java, .NET Many Libraries GUIs, Databases, Web, Image Processing, Array math Free Both senses of the word. No, really: completely free. Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Python? The Real Answer Scientists use Python. Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 All of these tools use the C implementation of Python. NOT Jython (Python in Java) or IronPython (Python in .NET): I am not talking about Jython. Why Do Scientists Use Python? Python is great. The tools are even better: numpy Fast arrays. matplotlib Excellent Plotting library scipy Numerical Algorithms (FFT, lapack, fitting, . ) f2py Wrapping Fortran for Python sage Symbolic math (ala Maple, Mathematica) GUI Choices Tk, wxWidgets, Qt, . Free Python is Free. All these tools are Free (BSD). Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Do Scientists Use Python? Python is great. The tools are even better: numpy Fast arrays. matplotlib Excellent Plotting library scipy Numerical Algorithms (FFT, lapack, fitting, . ) f2py Wrapping Fortran for Python sage Symbolic math (ala Maple, Mathematica) GUI Choices Tk, wxWidgets, Qt, .
    [Show full text]
  • RAND Suicide Prevention Program Evaluation TOOLKIT
    CHILDREN AND FAMILIES The RAND Corporation is a nonprofit institution that helps improve policy and EDUCATION AND THE ARTS decisionmaking through research and analysis. ENERGY AND ENVIRONMENT HEALTH AND HEALTH CARE This electronic document was made available from www.rand.org as a public service INFRASTRUCTURE AND of the RAND Corporation. TRANSPORTATION INTERNATIONAL AFFAIRS LAW AND BUSINESS Skip all front matter: Jump to Page 16 NATIONAL SECURITY POPULATION AND AGING PUBLIC SAFETY Support RAND SCIENCE AND TECHNOLOGY Purchase this document TERRORISM AND Browse Reports & Bookstore HOMELAND SECURITY Make a charitable contribution For More Information Visit RAND at www.rand.org Explore the RAND National Defense Research Institute View document details Limited Electronic Distribution Rights This document and trademark(s) contained herein are protected by law as indicated in a notice appearing later in this work. This electronic representation of RAND intellectual property is provided for non- commercial use only. Unauthorized posting of RAND electronic documents to a non-RAND website is prohibited. RAND electronic documents are protected under copyright law. Permission is required from RAND to reproduce, or reuse in another form, any of our research documents for commercial use. For information on reprint and linking permissions, please see RAND Permissions. This report is part of the RAND Corporation tool series. RAND tools may include models, databases, calculators, computer code, GIS mapping tools, practitioner guide- lines, web applications, and various toolkits. All RAND tools undergo rigorous peer review to ensure both high data standards and appropriate methodology in keeping with RAND’s commitment to quality and objectivity. RAND Suicide Prevention Program Evaluation TOOLKIT Joie D.
    [Show full text]
  • Multi-Platform User Interface Construction – a Challenge for Software Engineering-In-The-Small
    Multi-platform User Interface Construction – A Challenge for Software Engineering-in-the-Small Judith Bishop Department of Computer Science University of Pretoria Pretoria 0002 South Africa [email protected] ABSTRACT The popular view of software engineering focuses on managing 1. INTRODUCTION teams of people to produce large systems. This paper addresses a 1.1 Software engineering different angle of software engineering, that of development for Software engineering as a discipline is perceived as tackling re-use and portability. We consider how an essential part of computing in-the-large. It elevates tools and techniques from the most software products – the user interface – can be successfully level of a craft, to where they can be efficiently and reproducibly engineered so that it can be portable across multiple platforms harnessed for the successful completion of large projects. and on multiple devices. Our research has identified the structure of the problem domain, and we have filled in some of Thirty years ago in 1975, Fred Brooks introduced us to the the answers. We investigate promising solutions from the mythical man month of software development [Brooks 1975] model-driven frameworks of the 1990s, to modern XML-based and followed this with the “no silver bullet” paper, in which he specification notations (Views, XUL, XIML, XAML), multi- talked about software engineering as being a process of building platform toolkits (Qt and Gtk), and our new work, Mirrors software with “specifications, assembly of components, and which pioneers reflective libraries. The methodology on which scaffolding” [Brooks 1987]. Boehm, too, found in 1976 that Views and Mirrors is based enables existing GUI libraries to be software engineering was, encouragingly, concentrating on the transported to new operating systems.
    [Show full text]
  • FOSDEM 2006 – Saturday 25Th February (Part 1) 1/6
    FOSDEM 2006 – Saturday 25th February (part 1) 1/6 10:00 OpenGroupware ▼ Opening Talks Tutorials KDE openSUSE Embedded Mozilla Tcl/Tk 13:00 (Janson) (H2215/Ferrer) (H.1301) (H.1302) (H.1308) (H.1309) +GNUstep (H.2111) (AW1.105) 13:00 lunch break 13:00 Movitation, 13:00 Opening and GNUstep devtools: Goals and 13:15 13:15 introduction GORM, StepTalk Opportunities Axel Hecht Nicolas Roard Systems VoIP 13:30 DTrace S. Krause-Harder, SETR LiveCD 13:30 M. Loeffler (Janson) (Lameere) 13:45 Jon Haslam Hector Oron 13:45 Mozilla 14:00 14:00 Kubuntu openSUSE Build 14:00 Foundation CoreData Intro to Plan9 SER Service Intro 14:15 14:15 Jonathan 14:15 G. Markham Sašo Kiselkov Tcl/Tk Uriel M. Jan Janak A. Schroeter, 14:30 Pereira 14:30 Ridell C. Schumacher, Optimizing 14:30 Mozilla Clif Flynt A. Bauer 14:45 14:45 Linux kernel 14:45 Europe 15:00 15:00 Open SUSE Linux and apps 15:00 Tristan Nitot Web applicationsGUI for DTrace Asterisk M.Opdenacker 15:15 Jon Haslam Mark 15:15 Key Devroom Power Mngmt 15:15 SeaMonkey with SOPE ASIC 15:30 Spencer 15:30 Signing Timo Hoenig, Lock-free data 15:30 Project Marcus Mueller verification 15:45 15:45 Holger Macht exchange for 15:45 Robert Kaiser Karel Nijs Real-Time apps 16:00 16:00 SUSE Linux 16:00 Xen Speex Asterisk Marketing Peter Soetens Flock GNUstep on the Hecl: 10.2: 16:15 Ian Pratt J.-M. Valin 16:15 Mark KDE 16:15 Z. Braniecki Zaurus PDA scripting Quo vadis ? 16:30 16:30 Spencer Sebastian Alsa SoC layer16:30 Nicolaus Schaller for mobiles Kügler M.Loeffler,C.Thiel D.N.Welton 16:45 16:45 Liam Girdwood 16:45 Mozilla 17:00 Closing Talks (Janson) 17:00 17:00 Project BOF 17:15 17:15 17:15 FOSDEM Donators Return 17:30 17:30 17:45 17:45 17:30 FSF Europe Opening Talks (Janson) Hacker Rooms LPI Exam Sessions 10:00 FOSDEM Core Staff Welcome Speech Building H: H2213 Saturday 13:00-14:30 10:30 Keynote Building AW: AW1.117 (H2214) 15:00-16:30 Richard M.
    [Show full text]
  • Pygtk 2.0 Tutorial
    PyGTK 2.0 Tutorial John Finlay October 7, 2012 PyGTK 2.0 Tutorial by John Finlay Published March 2, 2006 ii Contents 1 Introduction 1 1.1 Exploring PyGTK . .2 2 Getting Started 5 2.1 Hello World in PyGTK . .7 2.2 Theory of Signals and Callbacks . .9 2.3 Events . 10 2.4 Stepping Through Hello World . 11 3 Moving On 15 3.1 More on Signal Handlers . 15 3.2 An Upgraded Hello World . 15 4 Packing Widgets 19 4.1 Theory of Packing Boxes . 19 4.2 Details of Boxes . 20 4.3 Packing Demonstration Program . 22 4.4 Packing Using Tables . 27 4.5 Table Packing Example . 28 5 Widget Overview 31 5.1 Widget Hierarchy . 31 5.2 Widgets Without Windows . 34 6 The Button Widget 35 6.1 Normal Buttons . 35 6.2 Toggle Buttons . 38 6.3 Check Buttons . 40 6.4 Radio Buttons . 42 7 Adjustments 45 7.1 Creating an Adjustment . 45 7.2 Using Adjustments the Easy Way . 45 7.3 Adjustment Internals . 46 8 Range Widgets 49 8.1 Scrollbar Widgets . 49 8.2 Scale Widgets . 49 8.2.1 Creating a Scale Widget . 49 8.2.2 Methods and Signals (well, methods, at least) . 50 8.3 Common Range Methods . 50 8.3.1 Setting the Update Policy . 50 8.3.2 Getting and Setting Adjustments . 51 8.4 Key and Mouse Bindings . 51 8.5 Range Widget Example . 51 9 Miscellaneous Widgets 57 9.1 Labels . 57 9.2 Arrows . 60 9.3 The Tooltips Object .
    [Show full text]
  • "ESF Load Sequencer Software Verification & Validation Rept."
    ' ESF LOAD SEQUENCER SOFTWARE VERIFICATION AND VALIDATION REPORT prepared by: SIMPACT ASSOCIATES'NC. 5520 Ruffin Road San Diego, CA 92123 September 9, 1982 ESF LOAD SEQUENCER SOFTWARE VERIFICATION AND VALIDATION REPORT TABLE OF CONTENTS Pacae ~ 1 OB JECTIVE ~ o ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ ~ ~ 1 2. STUDY PROCEDURE AND RESULTS SUMMARY ~ ~ ~ ~ ~ ~ ~ t 0 4 I ~ 0 ~ 2 3. SPECIFICATION REQUIREMENTS ~ ~ ~ ~ ~ 0 ~ ~ ~ ~ 0 t I ~ 4 4 SOFTWARE STRUCTURE ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 5 5. SYSTEM ~ ~ ~ ROUTINES ... .... ....... .... ~ ... ~ ... 7 6. UNDERVOLTAGE MONITORING ~ 0 ~ ~ ~ ~ ~ ~ ~ ~ 0 ~ ~ ~ 9 7. ESF BUS LOAD SEQUENCING o ~ ~ ~ ~ ~ ~ o ~ ~ ~ ~ e ~ 10 8. AUTOTESTING ............................... 12 9. PERFORMANCE/DESIGN DEMONSTRATION TEST RESULTS . 16 10. CONCLUSION ~ ....... ........ .. ~ .. ~ ~ .. .. ~ .; ~ . 17 APPENDIX A ~ ~ ~ ~ ~ ~ ~ ~ .. ... ... ~ ~ ... ~ ~ ~ ~ ~ .. ~ . ~ . ~ . ~ ~ .A-1 ESF LOAD SEQUENCER SOFTWARE VERIFICATION AND VALIDATION REPORT 1 OBJECTIVE The objective of the Software Verification and Validation Study is to verify that the software of the ESF Load Sequencer meets the requirements of the design specification, and that no sneak software paths (circuits) exist that would render the system inoperable. The ESF Load Sequencer is a module in the Balance of Plant (BOP) Engineered Safety Features Actuation System (ESFAS) supplied by General Atomic Company (GA) to the Palo Verde Nuclear Generating Station under Arizona Public Service Company Purchase Order 10407-13-JM-104 and Bechtel Power Corporation Speci fication 13-JM-104. This module controls loading of the station ESF bus and diesel generators under loss of power conditions or if an accident signal is present. The purpose of this report is to outline the methods used to perform this study and to detail the findings of the study. 2. STUDY PROCEDURE AND RESULTS SUMMARY The following steps were taken to per form the study: a ~ Review of Bechtel Specification (13-JM-104).
    [Show full text]
  • 13A04806 LINUX PROGRAMMING and SCRIPTING UNIT 4 TCL/ TK SCRIPTING:Tcl Fundamentals, String and Pattern Matching, Tcl Data Struct
    13A04806 LINUX PROGRAMMING AND SCRIPTING UNIT 4 TCL/ TK SCRIPTING:Tcl Fundamentals, String and Pattern Matching, Tcl Data Structures ,Control Flow Commands, Procedures and Scope , Evel, Working With UNIX, Reflection and Debugging, Script Libraries, Tk Fundamentals ,Tk by Examples, The Pack Geometry Manager, Binding Commands to X Events, Buttons and Menus, Simple Tk Widgets, Entry and Listbox Widgets Focus, Grabs and Dialogs 13A04806 LINUX PROGRAMMING AND SCRIPTING Tcl - Overview Tcl is shortened form of Tool Command Language. John Ousterhout of the University of California, Berkeley, designed it. It is a combination of a scripting language and its own interpreter that gets embedded to the application, we develop with it. Tcl was developed initially for Unix. It was then ported to Windows, DOS, OS/2, and Mac OSX. Tcl is much similar to other unix shell languages like Bourne Shell (Sh), the C Shell (csh), the Korn Shell (sh), and Perl. It aims at providing ability for programs to interact with other programs and also for acting as an embeddable interpreter. Even though, the original aim was to enable programs to interact, you can find full-fledged applications written in Tcl/Tk. Features of Tcl The features of Tcl are as follows − ∑ Reduced development time. ∑ Powerful and simple user interface kit with integration of TK. ∑ Write once, run anywhere. It runs on Windows, Mac OS X, and almost on every Unix platform. ∑ Quite easy to get started for experienced programmers; since, the language is so simple that they can learn Tcl in a few hours or days. ∑ You can easily extend existing applications with Tcl.
    [Show full text]
  • Proximal Junctional Kyphosis in Lenke 5 AIS Patients
    Zhou et al. BMC Musculoskeletal Disorders (2021) 22:185 https://doi.org/10.1186/s12891-021-04052-8 RESEARCH ARTICLE Open Access Proximal junctional kyphosis in Lenke 5 AIS patients: the important factor of pelvic incidence Quan Zhou†, Bowen Hu†, Xi Yang*, Yueming Song, Limin Liu, Linnan Wang, Lei Wang, Chunguang Zhou, Zhongjie Zhou, Peng Xiu and Liang Wang Abstract Background: The purpose of the study was to investigate whether pelvic incidence (PI) will affect the occurrence of PJK in Lenke 5 AIS patients after correction surgery and try to explore a better surgical scheme based on PI. Methods: Lenke 5C AIS patients that underwent correction surgery with a minimum of a 2-year follow-up were identified. Demographic and radiographic data were collected preoperatively, postoperatively, and at the final follow-up. The comparison between the PJK and the Non-PJK group was conducted and the subgroup analysis was performed based on the preoperative value of PI to investigate the potential mechanism of PJK. Clinical assessments were performed using the Scoliosis Research Society (SRS)-22 questionnaire. Results: The mean preoperative Cobb angle of the TL/L curve was 53.4°±8.6. At the final follow-up, the mean TL/L Cobb angle was drastically decreased to 7.3°±6.8 (P < 0.001). The incidence of PJK in Lenke 5 AIS was 18.6 %, 21.9 % (7/32) in the low PI group (PI < 45°) and 15.8 % (6/38) in the high PI group (PI ≥ 45°), and there was no statistical difference between the two groups (χ2 = 0.425, P = 0.514).
    [Show full text]
  • A Tcl/Tk Widget for Display of Medm Screens* R
    Proceedings of 2005 Particle Accelerator Conference, Knoxville, Tennessee A TCL/TK WIDGET FOR DISPLAY OF MEDM SCREENS* R. Soliday, ANL, Argonne, IL 60439, U.S.A. Abstract (ADL) file is passed to the widget, which in turn parses A new Tcl/Tk widget has been created to display the file using native Tcl code. Then the appropriate child MEDM screens inside a Tcl/Tk application. Tcl/Tk parses widgets are created to look and behave identically to how the MEDM input files and the appropriate widgets are they would have had MEDM been used to display the created and linked to the associated process variables. screen instead of OAG Tcl/Tk. Not every last feature of One advantage of this approach is that an X-Windows MEDM has been mimicked, but most of it has been, and emulator is not required to view and manipulate the additions can be made relatively quickly. While this MEDM screen under a Windows operating system. widget was not intended to replace well-tested code such Another benefit is that the MEDM screen can now be as MEDM, there is one important scenario where this tightly integrated into a scripting language to attach approach has a clear advantage. Unlike MEDM, no higher-level logic to various process variable installations of the Exceed X-server and X libraries [4] are manipulations. Further details and examples of the new required to display the screens on Windows computers widget will be discussed. using OAG Tcl/Tk. INTRODUCTION TCL CHANNEL ACCESS EXTENSION While preparing for a presentation at the Getting Bob Daly wrote the original version of the Tcl CA Started with EPICS (Experimental Physics and Industrial extension.
    [Show full text]
  • Panorama of GUI Toolkits on Haiku
    Panorama of GUI toolkits on Haiku From ncurses to Qt5 François Revol [email protected] Haiku ● Free Software rewrite of BeOS ● An Operating System for the desktop ● A lot of POSIX – But we don't claim to be Unix® ● Some more funny things – Typed & indexable xattrs Native GUI ● InterfaceKit – C++ API (similar to Qt) – BMessage objects ● Multithreaded – 1 message loop / window + 1 app main thread ● Few bindings – yab (yabasic port) Toolkit Pros/Cons ✔ More apps, less work ✗ Never completely ✔ More potential users native ✔ More devs? ✗ No Scripting support ✗ hey Foo get Frame ✔ It can be done right of View … ✗ Screen reader… ✗ Less incentive for native apps Toolkit usage in Debian GNU/Linux ● for t in $(debtags cat | tr ' ,' '\n\n' | grep uitoolkit:: | sort | uniq); do echo -en "$t\t"; debtags search $t | wc -l; ● done Whatever TODO uitoolkit::athena 92 means uitoolkit::fltk 25 uitoolkit::glut 23 ● uitoolkit::gnustep 41 Probably not the best uitoolkit::gtk 2024 metric anyway uitoolkit::motif 53 uitoolkit::ncurses 757 uitoolkit::qt 965 uitoolkit::sdl 488 uitoolkit::tk 135 uitoolkit::TODO 52 uitoolkit::wxwidgets 117 uitoolkit::xlib 254 ncurses █████ ● So what, it's a toolkit � ● Works not too bad hdialog ████▒ ● Native implementation of [x]dialog ● Some missing features ● Shanty is a similar app (Zenity clone) SDL 1.2 █████ ● Of course! SDL 2 █████ ● What Else?™ nativefiledialog █████ ● Native file selectors for Win32, GTK+3, OSX ● Ported during GCI 2014 ● For use with SDL/SDL2/… LibreOffice (VCL) █▒▒▒▒ ● Visual Class Libraries ● LibreOffice / OpenOffice's own GUI toolkit – Is it used anywhere else? IUP █▒▒▒▒ ● Multi-platform GUI toolkit – GTK+, Motif and Windows – “Bindings for C, Lua and LED – Uses native interface elements – Simplicity of its API” ● WIP port by Adrien Destugues (PulkoMandy) wxWidget ▒▒▒▒▒ ● Is this still in use? ● Oh, I need it for KiCAD! ● Port started long ago, nothing usable yet.
    [Show full text]