Skip to content

Instantly share code, notes, and snippets.

@opshope
opshope / ProgressDialog.py
Created November 9, 2015 17:42 — forked from pudquick/ProgressDialog.py
This is python for a portable, self-contained class called "ProgressDialog" which allows you to create a Cocoa progress indicator dialog for OS X while you do things in a script. Enjoy.
class ProgressDialog(object):
def __init__(self, message, title, use_bar=True):
super(self.__class__, self).__init__()
self.message = message
self.title = title
self.use_bar = use_bar
self.queue = None
self.process = None
def display(self):
# [ begin black magic ]