Skip to content

Instantly share code, notes, and snippets.

View sumqwerty's full-sized avatar
🎯
Focusing

Sumit Saini sumqwerty

🎯
Focusing
View GitHub Profile
@sumqwerty
sumqwerty / NCursesCamera.py
Created March 13, 2024 20:38
A command line application to open your webcam and display the content in the terminal.
#!/usr/bin/python3
import cv2
import curses
import sys
cap = ""
def start(stdscr):
global cap
try:
cap = cv2.VideoCapture(int(sys.argv[1]))
except:
@sumqwerty
sumqwerty / scrollFrame.py
Last active June 17, 2021 12:16
A simple to use class to make scrollable frame and windows with examples in tkinter, along with some extra options like frame label.
import tkinter as tk
from tkinter import ttk
# ##############################################################################
# RUN THIS FILE TO SEE A DEMO WINDOW WITH ALL TYPES OF SCROLLABLE FRAMES IN IT #
# ##############################################################################
# TO USE THIS CLASS IN YOUR CODE, IMPORT THIS FILE,
# from scrollFrame import *