Skip to content

Instantly share code, notes, and snippets.

import Tkinter as tk
import ttk
class App(tk.Tk):
def __init__(self):
# Note that now the App object itself is the tkinter root object
tk.Tk.__init__(self)
self.title("actual progress bar")
import Tkinter as tk
class App:
def __init__(self):
self.root = tk.Tk()
self.root.title("progress bar")
self.bar1 = " "
self.bar2 = " "
self.bar3 = " "
self.bar4 = " "
import cv2
from pathlib import Path
from PIL import Image
FILE = Path("test/vid_1_short.mp4")
"""
To try this, place it in the folder of surgtoolloc2022-category-1 or 2 and run the script.
Note to compare frames 0 to 60 and 1 to 61. They are identical !!!
(You can either check the video frame images that are written or the mean values of the images.)