pyside / Examples

ATTENTION: This project is deprecated, please refer to PySide2
https://wiki.qt.io/PySide2
361 stars 214 forks source link

Update mandelbrot.py #10

Closed Lazik closed 11 years ago

Lazik commented 11 years ago

Fixed a float to int bug. Windows7, Python 3.3, PySide 1.1.2

Traceback (most recent call last): File "mandelbrot3.py", line 102, in run for y in range(-halfHeight, halfHeight): TypeError: 'float' object cannot be interpreted as an integer

Fix is to cast halfHeight as int