From 933f63d146a2a312a53155c26d779abfcf3d18c6 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Wed, 4 Oct 2017 00:33:23 +0200 Subject: [PATCH] Display images after capture --- film.png | Bin 12263 -> 9413 bytes film.svg | 420 ++++++++++++++++++++++++++++---------------------- photoboite.py | 10 ++ 3 files changed, 245 insertions(+), 185 deletions(-) diff --git a/film.png b/film.png index 681ff88d6ffa5d23e3023170fca8b7d781f86570..78a102fcdd62438c2e3fc3fa82140a7cc00173ca 100644 GIT binary patch literal 9413 zcmc(F2{@E{-~WwMP6;VXvK6Q3h&d=jVN@g`N%m!mBzt2WyH+x`B2!U>Hp|GqQ(2>| zMfS|t$v&7dX5QaDou}9NpL3q)f4$GUbX{F#mfL;bzu#y5-gnNP(c;{?dn*J%oZ6=} z&Os2{9tdLj`txS+iWU17GWh2wkK@|se+GX7e!dh2e%^BRl$i$van-{ zJvB`|4c#t#`doCkgM55^WF1_cJZvvswUc#ow@;W+*$qK^AZ?9f=dp?3`hD{s+XW)# z2Gu0l5^o-e@z}G|AX(h5ed|_(OSk<5e`58@3MUtu_~HG$v_%}B@@L+c&3a~@ZjCRT zOjp`o7lJ=_>GjXrbH|e-wjQ6m#1(TbW;ii%h0bHVcP3+XdVOZBzj`dMGcUgB{)%sK zix7P^sHM3~Uq(DU`GCh*bEGt(IAu}}g0AHFE{@iA+b3C(cZp(M=HvsJ-;6<06Tqsqg=RF}U<5Xz~O z*g@YhBUP|yR;Po4%-mTXs`$EF2KIZ&DJgwvl(wog&?VDT6skpO4YTmc=ZiC>VfBtGw!W# z+3V%%MJ>p?AjoqIrNsIii!!l6!gi(KN5Ayg3+0hdh8dzPP>AeaRF}@Ld$Rrer|v1v zYE)c32|)|vx11mP)upk@drf{y`*_qq0>K^`8Ch^)2L$!#8KkXm=3pLhVs=))r+nvO z_qxMQo%zgnKc*XH+@qJ%EL%*}?qBH6wKIx_Aob1e=tbU`9V+BchB@BfdeZA5D7ls& zVQoqNSwx@Zz}t8k3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G39gW3h8IA{q`R|Nq?6B diff --git a/film.svg b/film.svg index 83c82a6..dc52f01 100644 --- a/film.svg +++ b/film.svg @@ -29,8 +29,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.7" - inkscape:cx="158.44232" - inkscape:cy="306.45609" + inkscape:cx="-27.035262" + inkscape:cy="235.80716" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" @@ -39,7 +39,9 @@ inkscape:window-height="1041" inkscape:window-x="1680" inkscape:window-y="18" - inkscape:window-maximized="0" /> + inkscape:window-maximized="0" + showguides="true" + inkscape:guide-bbox="true" /> @@ -59,192 +61,240 @@ transform="translate(0,-169.99998)"> + style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:13.44665909;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:13.44665909;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="rect905" + width="168.80417" + height="107.36983" + x="21.609423" + y="291.26645" + ry="3.1763959" /> + + + + + + + + + + + + + + + diff --git a/photoboite.py b/photoboite.py index b5fe37c..8c7918a 100755 --- a/photoboite.py +++ b/photoboite.py @@ -46,6 +46,7 @@ except: def take(self, name): print('Take picture! ' + name) + return self.img def draw_on(self, screen): screen.blit(self.img, self.rect) @@ -102,6 +103,8 @@ class CaptureButton(Button): self.font = pygame.font.Font(None, 80) + self.photo_film = pygame.image.load('film.png').convert_alpha() + def draw_on(self, screen): if self.enabled: super(CaptureButton, self).draw_on(screen) @@ -140,6 +143,13 @@ class CaptureButton(Button): capture.take(self.photoboite.camera) pygame.time.wait(1000) + + for photo in capture.photos: + self.photoboite.screen.blit(self.photo_film, (0, 0)) + pygame.display.flip() + pygame.time.wait(1000) + self.photoboite.event() + pygame.event.set_allowed((pygame.MOUSEBUTTONDOWN, pygame.MOUSEBUTTONUP)) self.capture_mode = False self.enabled = True