CS 580 Client-Server Programming Spring Semester, 2006 Doc 24 Some Ruby GUI 2 Apr 27, 2006 Copyright ©, All rights reserved. 2006 SDSU & Roger Whitney,

Slides:



Advertisements
Similar presentations
G5BUID - Java Swing What is Swing? A part of The Java Foundation Classes Swing Look and feel Accessibility Java 2D (Java 2 onwards) Drag and Drop.
Advertisements

Components and Containers
Rotating the Slices of a Pie Chart Rotating the Slices of a Pie Chart, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
Click your mouse to continue. Using the Style Checker The light bulb icon on the screen tells you that PowerPoint has a style suggestion for you to consider.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 25 Rails Transactions, Sessions, Filters Nov 29, 2005 Copyright ©, All rights reserved SDSU.
Java Tutorial – Building GUIs Java with Added Swing Daniel Bryant
Tcl/Tk 1 CS 414, Software Engineering I Mark Ardis Rose-Hulman Institute December 3, 2002.
19-Jun-15 Ruby GUI Toolkits. Available GUI toolkits The Tk GUI toolkit is a part of the Ruby distribution Tk is badly documented, does not support native.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 21 Rails Intro Nov 10, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 23 Rails Model Example Nov 17, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 24 Rails Database Nov 22, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 20 Sending Apr 13, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
Spring 2010ACS-3913 Ron McFadyen1 Command The command pattern encapsulates a request or unit of work into an object. An invoker will ask a concrete command.
Saving a Word Document as a Web Page
CS 635 Advanced Object-Oriented Design & Programming Spring Semester, 2006 Doc 2 Terms & Testing Jan 24, 2006 Copyright ©, All rights reserved SDSU.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 22 Rails Basic Action Pack & Active Record Nov 15, 2005 Copyright ©, All rights reserved SDSU.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 21 Some GUI Apr 13, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
Discovering Ruby. Welcome to Barcamp Ireland!. I’m going to talk through my early days with ruby. I’m trying to build a ruby applications so what I know.
ProCol~ A jEdit Plugin for Remote Project Collaboration Justin Dieters Spring 2004 CS470 Final Presentation.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
Intro to GUIs (Graphical User Interfaces) Section 2.5Intro. to GUIs: a GUI Greeter Section 3.7Graphical/Internet Java: Einstein's Equation.
® Microsoft Office 2010 Excel Tutorial 2: Formatting a Workbook.
Applets and Frames CS 21a: Introduction to Computing I First Semester,
עקרונות תכנות מונחה עצמים תרגול 4 - GUI. Outline  Introduction to GUI  Swing  Basic components  Event handling.
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.
BI-SW Training day Outline What is the EDT? Why should I care about it? How do I treat GUI objects properly? SwingWorker and its advantages.
Dale Roberts GUI Programming using Java - Introduction Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer.
OV Copyright © 2007 Element K Content LLC. All rights reserved. Microsoft Office Outlook Page Contacts Page Calendar Page.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 20 Graphical User Interface (GUI)
CS 580 Client-Server Programming Spring Semester, 2006 Doc 16 Some Parsing Mar 30, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
Dialog Boxes – Day 1 Built-in Dialog Boxes Input Box Message Box Custom Dialog Boxes – User Forms.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 19 Ruby Regexp, Expression, Exceptions, Modules Nov 8, 2005 Copyright ©, All rights reserved
A remote control robot with webcam. Responsibilities User Interface Communicate with server Webcam Display Server Web Server Collaborators Work: Harkins.
PERL TK. 4.Use an IDE 3. Use the documentation! 2. Experiment. 1.Learn the basics.
1 Java Swing - Lecture 2 Components and Containment Boriana Koleva
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. Chapter 9 GUI Programming Using Tkinter 1.
Applets and Frames. Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved L14: GUI Slide 2 Applets Usually.
Applets Yong Choi School of Business CSU, Bakersfield.
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.
Software Design 5.1 From Using to Programming GUIs l Extend model of "keep it simple" in code to GUI  Bells and whistles ok, but easy to use and hide.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
OV Copyright © 2007 Element K Content LLC. All rights reserved. Exploring the Word Environment  Explore the User Interface  Work with the Ribbon.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 26 Rails Miscellaneous Dec 1, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
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.
SE-1020 Dr. Mark L. Hornick 1 Graphical User Interfaces.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Word 2010 Sorting Text In this lesson you'll learn how to sort text. Sort means to arrange text in Alphabetical order, or to arrange numbers in either.
COMPSA Exam Prep Session by Paul Allison On: April 8th from 1:30-3:00 Location TBA Winter 2016CISC101 - Prof. McLeod1.
® Microsoft Access 2010 Tutorial 8 Managing and Securing a Database.
CIS 270—Application Development II Chapter 11—GUI Components: Part I.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
S15-1 ADM , Section 15, August 2005 Copyright  2005 MSC.Software Corporation SECTION 15 DIALOG BOX BUILDER.
Innovation Intelligence ® Feb Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. GUI design Controls Toplevel.
A Quick Java Swing Tutorial
An Interactive Tutorial for SPSS 10.0 for Windows©
Topics Graphical User Interfaces Using the tkinter Module
Graphical User Interfaces (GUIs)
Bob's.ppt Graphics by Bob EXIT Panic Button Bob's.ppt Graphics by Bob
Example Program DemoLowLevelEvents.java DemoHighLevelEvents.java
Security Managers and Permissions
Ruby GUI Toolkits 21-Sep-18.
Install DoD CA Certificate Instructions for IE
Tkinter Python User Interface
Setting Up Your Personal BIT115 Workspace
doc.: IEEE <doc#>
Tkinter User Input Form
Tips to Fix the Processing Message while Opening Outlook | Microsoft Outlook Support Phone Number
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

CS 580 Client-Server Programming Spring Semester, 2006 Doc 24 Some Ruby GUI 2 Apr 27, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA USA. OpenContent ( license defines the copyright on this document.

2 Creating a Dialog require 'tk' class Dialog def initialize = { 'padx' => 10, 'pady' => 10 } doFoo = proc {showDialog} root = TkRoot.new { title "Simple" } root.minsize(100,100) root.geometry("150x100") TkButton.new(root) {text 'Do It' command doFoo TkButton.new(root) { text 'Exit' command {root.destroy} pack end def showDialog popup = TkToplevel.new {|w| title("Sample Dialog") geometry("200x ") } hide = proc {popup.withdraw} TkButton.new(popup) { text 'close' command hide pack( ) } end Dialog.new Tk.mainloop

3 Built-in Dialog require 'tk' class BuiltinDialog def foo options = ['Good', 'Bad', 'Perhaps'] popup = TkDialog.new( { 'title' => "Surpise", 'message' => "Select one of the\n following options", 'buttons' => options }) selected = popup.value TkDialog.new( { 'title' => "Result", 'message' => ("You selected\n" + options[selected]), 'buttons' => ['Ok'] }) end def initialize pading = { 'padx' => 10, 'pady' => 10 } doFoo = proc {foo} root = TkRoot.new { title "Simple" } TkButton.new(root) {text 'Show It' command doFoo; pack pading} TkButton.new(root) { text 'Exit' command {root.destroy} pack pading} end BuiltinDialog.new Tk.mainloop

4 Some Ruby-Tk Examples The examples require some tweaking

5 Java AWT & Threads AWT is thread safe

6 Java Swing is not Thread Safe

7 SwingUtilities.invokeLater(Runnable doRun) SwingUtilities.invokeAndWait(Runnable doRun)

8 Java Swing & threads - Some references Threads and Swing Using a Swing Worker Thread The Last Word in Swing Threads Java TCP Sockets and Swing Tutorial