moses-palmer / pystray

GNU General Public License v3.0
461 stars 57 forks source link

No self-contained example on the documentation #116

Closed adamlwgriffiths closed 2 years ago

adamlwgriffiths commented 2 years ago

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.

moses-palmer commented 2 years ago

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.