Tkinter Python User Interface

Slides:



Advertisements
Similar presentations
Office of Program Development and Funding Electronic Grants Management System Tutorial #5: Creating a Property Report (Equipment Inventory and Receiving.
Advertisements

Topics in Python Blackjack & TKinter
Tk. Toolkit n Wish - windowing shell –touch fileName –chmod +x fileName –xedit fileName & –#!/usr/local/bin/wish n Widgets - eg Buttons, Labels, Frames.
Noadswood Science,  To know how to use Python to produce windows and colours along with specified co-ordinates Sunday, April 12, 2015.
How to maketh a Shakespearean fig generator in python
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
This presentation contains the following: -the availability and need menu options -the add option Mark Smith.
DDD tutorial A GDB Graphical User Interface. DDD Introduction If you find GDB difficult to use, try DDD DDD s GDB but with a Graphical User Interface.
Computer Science 111 Fundamentals of Programming I User Interfaces Introduction to GUI programming.
PULL-OUT MODULE User’s Guide. Step 1. To Add New DR click Add. PARTS 1. Header 2. Transactions 3. Menus To go to the TR click “TR No” button.
Getting started (For the absolute beginner: download and install python) Task 1: Creating 3 widgets: a label, text entry and a button (and ‘PACK’) Task.
18. Python - GUI Programming (Tkinter)
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
Tcl/Tk package in R Yichen Qin
The University of Texas – Pan American
Guide to Programming with Python Chapter Ten GUI Development: The Mad Lib Program.
 We are going to learn about programming in general…How to think logically and problem solve. The programming language we will use is Python. This is.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
PC204 Lecture 9 Conrad Huang Genentech Hall, N453A x
PYTHON GUI PROGRAMMING
Computer Science 112 Fundamentals of Programming II Command Buttons and Responding to Events.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 20 Graphical User Interface (GUI)
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.
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.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
Objects and Classes Procedural Programming A series of functions performing specific tasks Data items are passed from one function to another by arguments.
Programming into Slicer3. Sonia Pujol, Ph.D., Harvard Medical School National Alliance for Medical Image Computing ©
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Lesson 3 - The Entry Box.. Last week We produced a Tkinter window with a label and a button Now we are going to create a new program that creates a Button.
Creating visual interfaces in python
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
SUPPLIER MODULE User’s Guide. Step 1. Click Files Step 2. Click Supplier.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Guide to Programming with Python
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
DEPARTMENT MODULE User’s Guide. Step 1. Click Files Step 2. Click Department.
Fab25 User Training Cerium Labs LabCollector - LIMS Lynette Ballast.
Deliver Training Anywhere / Anytime Welcome to the Army Learning Management System (ALMS) 4 TRADOC Capabilities Manager (TCM DL) TADLP Training Coordinator.
An Interactive Tutorial for SPSS 10.0 for Windows©
Multimedia Summer Camp
Development Environment
Display Ratios The Student Union displays have ratios of 16:9
Topics Graphical User Interfaces Using the tkinter Module
Developer 2000 CSE 4504/6504 Lab.
Customizing the Quick Access Toolbar in Microsoft Office
Graphical User Interfaces (GUIs)
Creating a Workflow.
Address Book Example
My Final Project: Calorie Counter
CISC101 Reminders Grading of Quiz 4 underway.
GUI Using Python.
This Week: Tkinter for GUI Interfaces Some examples
Tkinter GUIs Computer Science and Software Engineering
Tonga Institute of Higher Education
Lesson Four: Building Custom Patient Lists
Save for Web and Devices in PS
Fundamentals of Programming I Windows, Labels, and Command Buttons
User Interface Tutorial
Computer Science 111 Fundamentals of Programming I User Interfaces
Topics Graphical User Interfaces Using the tkinter Module
Prepare a DD Form 1081-Return
Windows Installation Tutorial
Visual C# - GUI and controls - 1
Creating a simple query in the Design View
The University of Texas – Pan American
Input and Output Python3 Beginner #3.
Unit 1: Intro Lesson 4: Output.
CHAPTER FOUR VARIABLES AND CONSTANTS
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

Tkinter Python User Interface Leaving JES - return to Python IDLE In Python IDLE, type from tkinter import * # import Tkinter package myWin = Tk() # create a window … myWin.mainloop()

Widgets Label to display text or an image Button to execute a command Text to display text Checkbutton to select from options Radiobutton to select one of options Entry to enter text input Menu pull-down or popup menu

Simple example Save as xxx.py in C:\100 from tkinter import * def procOk(): print(“OK button is clicked”) def procCancel(): print (“Cancel button is clicked”) win = Tk() label = Label(win, text=“Hi!”) butOk = Button(win, text=“Ok”, fg=“red”, command=procOk) butCancel = Button(win, text=“Cancel”, bg=“yellow”, command=procCancel) label.pack() # place the label in window butOk.pack() # place the button in window butCancel.pack() win.mainloop() Save as xxx.py in C:\100 From the ‘Run’ menu, select ‘Run module.’

Lab_0415 Take a look at tutorial in http://www.python-course.eu/python_tkinter.php and add examples of the following widgets into your program Checkbutton to select from options Radiobutton to select one of options Entry to enter text input Menu pull-down or popup menu Do not use images (package is not available at your machine) Do NOT email to the grader