Skip to content

XinDaiki/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

BRIEF EXPLANATION

1-2 : Imports

image

Imports the tkinter library for creating the GUI (Graphical User Interface)
font module allows custom fonts (though not heavily used here)

4-20 : The def init (self)

image
This runs automatically when you create a calculator. It:

  • Creates the main window
  • Sets up variables to track the calculator's state
  • Calls helper methods to build the UI

Key variables:

  • self.expression = "" - stores the calculation being built (e.g., "5+3")
  • self.result_text - displays the current number
  • self.expression_text - shows the calculation history

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages