Skip to content

Commit

Permalink
Merge pull request #795 from annalisa-b/master
Browse files Browse the repository at this point in the history
Some samples bugs fixed
  • Loading branch information
scotty007 committed Aug 2, 2017
2 parents 2ef1c53 + 518a60b commit 43d200e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/samples/pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from libavg import app, avg
from PIL import Image

# Demonstrates interoperability with pillow (https://pillow.readthedocs.org/index.html)
# Demonstrates interoperability with pillow (https://pillow.readthedocs.io)

class MyMainDiv(app.MainDiv):
def onInit(self):
Expand All @@ -16,7 +16,7 @@ def onInit(self):
b,g,r,a = image.split()
image = Image.merge("RGBA", (r,g,b,a))

image.save("foo.jpg")
image.save("foo.png")

destbmp = avg.Bitmap((64,64), avg.B8G8R8A8, "")
destbmp.setPixels(image.tobytes())
Expand Down
2 changes: 1 addition & 1 deletion src/samples/videochooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def chooseVideo(self, event, videoNode):

def removeBigVideo(self):
oldVideoNode = self.bigVideoNode
avg.fadeOut(oldVideoNode, self.__duration, lambda: oldVideoNode.unlink(True))
avg.Anim.fadeOut(oldVideoNode, self.__duration, lambda: oldVideoNode.unlink(True))

def getTotalWidth(self):
return (self.__thumbWidth+20)*len(self.videoNodes)
Expand Down

0 comments on commit 43d200e

Please sign in to comment.