




This module explains the ins and outs of creating a simple GUI using Python and tkinter.
Table of contents
Preface
This module is one in a collection of modules on Python designed for
teaching
ITSE 1359 Introduction to Scripting Languages: Python at Austin Community
College in Austin, TX.
This module is not intended to be a standalone tutorial. Instead, it is
intended to be an annotated guide to other freely available online resources onthe topic.
What you will learn
You will learn how to create a simple GUI using Python and
tkinter .
Viewing tip
I recommend that you open another copy of this module in a separate
browser window and use the following links to easily find and view the Figuresand Listings
while you are reading about them.
(Note to blind and visually impaired students: the Figures in this
module are bitmap images and are probably not accessible using anaudio screen reader or a braille display. The Listings are text and should be
accessible. Therefore, this module is only partially accessible to blindstudents.
Because the module is not accessible to blind students, material from
thismodule will not be used for assignments and will not be included on
tests. However, sighted students are strongly encouraged to study the materialfor their own education. Blind and visually impaired students are also
encouraged to learn as much from the module as they can.)

Figure 1 . Image of a tkinter test from the command line.

Figure 2 . Output from Feet to Meters converter program.

Figure 3 . Output from Listing 1.

Figure 4 . A sticky demonstration.
Listings
Tk and tkinter
What is a GUI ?
According to
Wikipedia ,
"In computing, a graphical user interface (GUI... sometimes
pronounced "gooey" ...) is a type of interface that allows users to interact withelectronic devices through graphical icons and visual indicators such as
secondary notation, as opposed to textbased interfaces, typed command labels ortext navigation. GUIs were introduced in reaction to the perceived steep
learning curve of commandline interfaces ... which require commands to be typed on the keyboard."
Questions & Answers
what is the coefficient of 4×
the operation * is x * y =x + y/ 1+(x × y) show if the operation is commutative if x × y is not equal to 1
An investment account was opened with an initial deposit of $9,600 and earns 7.4% interest, compounded continuously. How much will the account be worth after 15 years?
lim x to infinity e^1e^1/log(1+x)
given eccentricity and a point find the equiation
12, 17, 22.... 25th term
Akash
College algebra is really hard?
Absolutely, for me. My problems with math started in First grade...involving a nun Sister Anastasia, bad vision, talking & getting expelled from Catholic school. When it comes to math I just can't focus and all I can hear is our family silverware banging and clanging on the pink Formica table.
Carole
I'm 13 and I understand it great
AJ
I am 1 year old but I can do it! 1+1=2 proof very hard for me though.
Atone
Not really they are just easy concepts which can be understood if you have great basics. I am 14 I understood them easily.
Vedant
find the 15th term of the geometric sequince whose first is 18 and last term of 387
The given of f(x=x2. then what is the value of this f(3) 5f(x+1)
hmm well what is the answer
Abhi
If f(x) = x2
then, f(3) when 5f(x+1)
5((32)+1)
5(1+1)
5(2)
10
Augustine
how do they get the third part x = (32)5/4
make 5/4 into a mixed number, make that a decimal, and then multiply 32 by the decimal 5/4 turns out to be
AJ
can someone help me with some logarithmic and exponential equations.
sure. what is your question?
ninjadapaul
okay, so you have 6 raised to the power of 2. what is that part of your answer
ninjadapaul
I don't understand what the A with approx sign and the boxed x mean
ninjadapaul
it think it's written 20/(X6)^2
so it's 20 divided by X6 squared
Salomon
I'm not sure why it wrote it the other way
Salomon
ok. so take the square root of both sides, now you have plus or minus the square root of 20= x6
ninjadapaul
oops. ignore that.
ninjadapaul
so you not have an equal sign anywhere in the original equation?
ninjadapaul
is it a question of log
Abhi
I rally confuse this number And equations too I need exactly help
salma
But this is not salma it's Faiza live in lousvile Ky I garbage this so I am going collage with JCTC that the of the collage thank you my friends
salma
im all ears I need to learn
Sherica
right! what he said ⤴⤴⤴
Tamia
what is a good calculator for all algebra; would a Casio fx 260 work with all algebra equations? please name the cheapest, thanks.
Jeannette has $5 and $10 bills in her wallet. The number of fives is three more than six times the number of tens. Let t represent the number of tens. Write an expression for the number of fives.
What is the expressiin for seven less than four times the number of nickels
How do i figure this problem out.
how do you translate this in Algebraic Expressions
why surface tension is zero at critical temperature
Shanjida
I think if critical temperature denote high temperature then a liquid stats boils that time the water stats to evaporate so some moles of h2o to up and due to high temp the bonding break they have low density so it can be a reason
s.
Need to simplify the expresin. 3/7 (x+y)1/7 (x1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
Got questions? Join the online conversation and get instant answers!
Source:
OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.