Skip to content

Instantly share code, notes, and snippets.

View williamcanin's full-sized avatar
🐍
Simple is better than complex.

William C. Canin williamcanin

🐍
Simple is better than complex.
View GitHub Profile
>>> loadkeys br-abnt2
>>> timedatectl set-timezone America/Sao_Paulo
>>> hwclock --systohc
>>> cfdisk /dev/sda
##### IMPORTANT #####
# Use partition GPT #
#####################
/boot - EFI System - 500M (sda1)
@williamcanin
williamcanin / example_progressbar_tkinter.py
Last active October 1, 2022 04:53
Python Tkinter Progressbar Thread - List file from a given directory, print and show the process in a progressbar.
"""
Author: William C. Canin
Description: List file from a given directory, print and show the process in a Progressbar. Using Thread.
"""
from concurrent.futures import ThreadPoolExecutor
from tkinter import Tk, Button, W, messagebox
from tkinter.ttk import Progressbar
from threading import Thread
from os import walk