moses-palmer/pystray

No self-contained example on the documentation

adamlwgriffiths opened this issue · 1 comments

The main page of the documentation features some code snippets, but none are self contained.

After reading for a while it became clear that the 3 snippets at the top are really one snippet with text thrown in-between.
image

But the snippets themselves do not form a single cohesive example.
Specifically, create_image has undefined variables: width, height, color1.

def create_image():
    # Generate an image and draw a pattern
    image = Image.new('RGB', (width, height), color1)

Could you please provide a single basic example as a point of reference.

Thank you for your comment.

Yes, I agree that a single cohesive example would simplify getting started. I have updated the documentation on the master branch.