Skip to content

Instantly share code, notes, and snippets.

View limafresh's full-sized avatar
:octocat:

Maksim limafresh

:octocat:
View GitHub Profile
@limafresh
limafresh / RoundedButton.py
Created May 28, 2025 08:27
Tkinter rounded button. An unofficial modern button for Tkinter that supports rounding.
"""
Author: limafresh <https://github.com/limafresh>
License: CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
"""
from tkinter import Canvas
class RoundedButton(Canvas):
def __init__(
@limafresh
limafresh / snake.tcl
Last active July 8, 2025 11:06
Customizable (background, snake and food color) Snake game on Tcl/Tk
#!/usr/bin/env tclsh
# Author: limafresh <https://github.com/limafresh>
# License: CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
package require Tk
proc move_snake {} {
global snake snake_direction food score level snake_size width height game_over snake_color bg_color
@limafresh
limafresh / break-reminder.tcl
Created May 28, 2025 07:40
A simple Tcl/Tk program that will help you follow the 20-20-20 rule and protect your eyesight
#!/usr/bin/env tclsh
# Author: limafresh <https://github.com/limafresh>
# License: CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
package require Tk
proc update_timer {} {
global is_timer_running remaining_time number_of_twenty
if {$is_timer_running} {
@limafresh
limafresh / qr-scanner.py
Created March 31, 2025 07:16
Tkinter GUI QR code scanner using pyzbar library and supporting loading codes from image and pasting from clipboard
"""
Author: limafresh <https://github.com/limafresh>
License: CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
"""
import tkinter as tk
from tkinter import filedialog, ttk
from PIL import Image, ImageTk, ImageGrab
from pyzbar.pyzbar import decode