Question:
Why can’t I see the top park of my tkinter window?
Repl link/Link to where the bug appears:
https://replit.com/@StaticInternet/FinancePST?v=1
Screenshots, links, or other helpful context:
code snippet
# Import Required Library
from tkinter import *
from tkcalendar import Calendar
from datetime import date as dt
# Create Object
root = Tk()
# Set geometry
root.geometry("640x480")
root.title("FinancePST - Hrileena Paul")
# Add Calendar
cal = Calendar(root, selectmode = 'day')
cal.pack(pady = 20)
def grad_date():
date.config(text = "Selected Date is: " + cal.get_date())
# Add Button and Label
Button(root, text = "Get Date",
command = grad_date).pack(pady = 20)
date = Label(root, text = "")
date.pack(pady = 20)
# Change the label text
def show():
label.config( text = clicked.get() )
# Dropdown menu options
options = [
"Groceries",
"Mortgage",
"Car Loan",
"Gas Bills",
"Travel and Lesiure",
"Education"
]
# datatype of menu text
clicked = StringVar()
# initial menu text
clicked.set( "Select Expense" )
# Create Dropdown menu
drop = OptionMenu( root , clicked , *options )
drop.pack(side=TOP)
# Create button, it will change label text
# button = Button( root , text = "click Me" , command = show ).pack()
# Create Label
# label = Label( root , text = " " )
# label.pack()
# Execute Tkinter
root.mainloop()