peterbrittain / asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Apache License 2.0
3.64k stars 238 forks source link

Effect class is imported wrong in samples/maps.py #306

Closed tomlin7 closed 3 years ago

tomlin7 commented 3 years ago

Describe the bug Effect class is imported wrong in samples/maps.py

Traceback (most recent call last):
  File "maps.py", line 16, in <module>
    from asciimatics.widgets import Effect, Button, Text, Layout, Frame, Divider, PopUpDialog
ImportError: cannot import name 'Effect' from 'asciimatics.widgets' (C:\path\to\python\test\lib\site-> > packages\asciimatics\widgets\__init__.py)

To Reproduce

Expected behavior Maps should be fetched and displayed as ASCII.

Screenshots

image

System details:

peterbrittain commented 3 years ago

Been a while since I've run this sample.... Can't believe I was importing Effect from widgets! :-)

Yeah - that needs fixing.

peterbrittain commented 3 years ago

No fixed. Thanks