Skip to content

Commit 094125d

Browse files
author
dessant
committed
pass popup message as positional arg in camera example
1 parent 5b863c5 commit 094125d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/camera/basic/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@ def do_capture(self):
3131
ext = splitext(filepath)[-1].lower()
3232

3333
if(exists(filepath)):
34-
popup = MsgPopup(msg="Picture with this name already exists!")
34+
popup = MsgPopup("Picture with this name already exists!")
3535
popup.open()
3636
return False
3737

3838
try:
3939
camera.take_picture(filename=filepath,
4040
on_complete=self.camera_callback)
4141
except NotImplementedError:
42-
popup = MsgPopup(msg="This feature has not yet been implemented for\
43-
this platform.")
42+
popup = MsgPopup(
43+
"This feature has not yet been implemented for this platform.")
4444
popup.open()
4545

4646
def camera_callback(self, filepath):
4747
if(exists(filepath)):
48-
popup = MsgPopup(msg="Picture saved!")
48+
popup = MsgPopup("Picture saved!")
4949
popup.open()
5050
else:
51-
popup = MsgPopup(msg="Could not save your picture!")
51+
popup = MsgPopup("Could not save your picture!")
5252
popup.open()
5353

5454

0 commit comments

Comments
 (0)