This lesson contains 10 slides, with interactive quiz and text slides.
Items in this lesson
Creating a "Gui" with Python
For this lesson you need to have
1. Installed Python software
2. Installed Visual studio
3. Check with tutor to verify this
Slide 1 - Slide
This item has no instructions
Launch visual studio
This can be done from the search in the task bar or on the task bar itself.
Slide 2 - Slide
At this stage check with your teacher to ensure that you have done the following
Install - Pyhton
Install Visual studio
This is easy - search google download and then install. When installing Visual studio they may ask you for your account details which will be your "college email"
address.
Slide 3 - Slide
This item has no instructions
Create a New project called inspire
Create a new Project called inspire.
Slide 4 - Slide
This item has no instructions
Select Pyhton App
Select - Python Application
This informs visual studio that you would be using Python.
Select Python App
Slide 5 - Slide
This item has no instructions
Give the project a name
Enter the name of the project "Inspire"
The name "inspire"
Slide 6 - Slide
This item has no instructions
Enter the following into your Visual studio work space and run it
from tkinter import *
window = Tk()
window.title("Welcome to LikeGeeks app")
lbl = Label(window, text="Hello")
lbl.grid(column=0, row=0)
window.mainloop()
Slide 7 - Slide
From Tkinter import *
# This imports a Module into your program that can interact with your windows program.
windows= tk()
#This assigns a variable called "Windows " to us the tk(_) function- Creates a root.
window.title("Welcome to LikeGeeks app")
# this create another a tittle in the window
The result after running the Program
See the result after you run it.
See the title bar
Slide 8 - Slide
This item has no instructions
Enter the 3 things you have learnt about the Tkinter