Releases: Luke-zhang-04/CanvasPlus
Releases · Luke-zhang-04/CanvasPlus
Readme Problems
- Fixed readme headers
- New release just for this -_-
Templates and Organization
- Reorganized classes into separate files
- Revamp README
- Added templates
- Checked code with Codacy and Code Climate
Compatibility with older Python versions
async def
can be excepted for older python versions
Passing build
- Build is now passing with Python 3.5, 3.6, 3.7, and 3.8
Async Transformations
Asynchronous transformations
4 new methods
- async_morph()
- asynchronously moves points of a shape to fit another set of points
- async_move()
- asynchronously moves a shape by x, y
- the equivalent of the move() method, but asynchronous
- async_resize()
- asynchronously resize a shape
- async_rotate()
- asynchronously rotate a shape
Added asyncio library, tracking PEP 3156, for those who cannot install the dependency
- asynchronously rotate a shape
Support for Python 3.0-3.4
- Type hints aren't available in Python 3.4 and below
- New file pythonBelow35.py is imported in the case of an import error
Transformations
Added three new transformations
- Resize
- Rotate
- Flip
Made the switch to MIT license, as GPL was too restrictive
Simple patches
Resize now resizes object instead of just returning new coordinates
Get_attributes, clone, and __iter__
Added new methods get_attributes, clone, and iter
- get_attributes: returns attributes of tag or id
- def get_attributes(self, tagOrId: Union[int, str]) -> Dict
- clone: clones and object
- def clone(self, tagOrId: Union[int, str], *args: List[int]) -> int
- iter: returns an iterable of all canvas items
- def iter(self) -> iter
Removal of Incompatible Widgets
Removal of incompatible widgets, such as menu, or toplevel.