GUI programming: Create a Calculator in Python

von
Coursera Project Network
In diesem angeleitetes Projekt werden Sie:

Develop a Calculator app from scratch

Build the Graphical User Interface using Tkinter

Clock1 hour and 30 mins
IntermediateMittel
CloudKein Download erforderlich
VideoVideo auf geteiltem Bildschirm
Comment DotsEnglisch
LaptopNur Desktop

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.

Kompetenzen, die Sie erwerben werden

  • Software Development
  • Python Programming
  • Tkinter
  • GUI programming

Schritt für Schritt lernen

In einem Video, das auf einer Hälfte Ihres Arbeitsbereichs abgespielt wird, führt Sie Ihr Dozent durch diese Schritte:

  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

Ablauf angeleiteter Projekte

Ihr Arbeitsbereich ist ein Cloud-Desktop direkt in Ihrem Browser, kein Download erforderlich

Ihr Dozent leitet Sie in einem Video mit geteiltem Bildschirm Schritt für Schritt an.

Häufig gestellte Fragen

Häufig gestellte Fragen

Haben Sie weitere Fragen? Besuchen Sie das Learner Help Center.