Skip to content

Instantly share code, notes, and snippets.

View bhaskar-nair2's full-sized avatar
🏠
Working from home

Bhaskar Nair bhaskar-nair2

🏠
Working from home
View GitHub Profile
@bhaskar-nair2
bhaskar-nair2 / scrframe.py
Created June 13, 2018 10:40
TKinter scrollable frame
from tkinter import * # from x import * is bad practice
from tkinter import ttk
# http://tkinter.unpythonic.net/wiki/VerticalScrolledFrame
class VerticalScrolledFrame(Frame):
"""A pure Tkinter scrollable frame that actually works!
* Use the 'interior' attribute to place widgets inside the scrollable frame
* Construct and pack/place/grid normally
* This frame only allows vertical scrolling
@bhaskar-nair2
bhaskar-nair2 / Application.py
Created June 12, 2018 11:18
tkinter application to run processes without getting blocked or hung
'''
The aim of this Gist is to give you a base application where you just need to add your own elements/processes and make it work.
'''
import tkinter as tk
from tkinter import ttk,messagebox
import threading
import time
#base GUI Class