Commit f739b4e7 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Example script with progress bar

parent b5307d41
"""Simple example to test building the bindings"""
import time
from pycrystfel.bindings import progress_bar
for i in range(100):
progress_bar(i, 100, "Testing")
time.sleep(0.1)
from .crystfel cimport *
from . cimport crystfel
def my_progress_bar(val, total, text):
progress_bar(val, total, text)
def progress_bar(val, total, text):
crystfel.progress_bar(val, total, text.encode())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment