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

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心