GUI programming: Create a Calculator in Python

提供方
Coursera Project Network
在此指导项目中,您将:

Develop a Calculator app from scratch

Build the Graphical User Interface using Tkinter

Clock1 hour and 30 mins
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

By the end of this guided project, you’ll create a fully functioning Calculator application using python’s popular library Tkinter. You’ll be able to create a Graphical User Interface (GUI) in Python from scratch. Throughout the first 3 tasks you’ll learn how to create and customize the application window, you’ll learn how to create widgets such as buttons and entry boxes, you’ll also learn how to modify the widgets and change their color, size and orientation and finally you’ll learn how to manage the layout of the widgets and how to place them in the window using three different methods. And in the last 3 tasks, you’ll use what you learned to build the graphical user interface of the calculator and get your calculator ready to use. Out of all the GUI methods in Python, Tkinter is the most commonly used method. Python with Tkinter is the fastest and easiest way to create GUI applications. Tkinter widgets can be used to construct buttons, menus, data fields, etc. in a Python application. Once created, these graphical elements can be associated with or interact with features, functionality, methods, data or even other widgets. This guided project is for intermediate programmers who already have general knowledge of Python basics and want to test out their knowledge with a real application and looking forward to developing a software in less than 1 hour. This project can be your portal into software development. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • Software Development
  • Python Programming
  • Tkinter
  • GUI programming

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Create the application window

  2. Create buttons and entry boxes

  3. Manage the layout of the window

  4. Build the calculator interface

  5. Add functionality to the buttons

  6. Handle the exception of dividing by zero

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心