Skip to content

Instantly share code, notes, and snippets.

View ChocolateCircus445's full-sized avatar

ChocolateCircus445

View GitHub Profile
@mp035
mp035 / tk_scroll_demo.py
Last active March 2, 2025 09:02
A simple scrollable frame class for tkinter, including example usage.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import tkinter as tk
import platform
# ************************
# Scrollable Frame Class
# ************************
@moogzy
moogzy / dateofeaster.py
Created January 11, 2017 06:28
Calculate date of easter for years 1900 - 2099
#!/usr/bin/python
def calcEasterDate(year):
"""
Use easter date algorithm to calculate the day of
easter for a given year.
If the year given is in a special range(special_years)
then subtract 7 from the final date.