File tree Expand file tree Collapse file tree 5 files changed +12
-21
lines changed
apps/com.micropythonos.camera
builtin/apps/com.micropythonos.wifi/assets Expand file tree Collapse file tree 5 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 33"publisher" : " MicroPythonOS" ,
44"short_description" : " Camera with QR decoding" ,
55"long_description" : " Camera for both internal camera's and webcams, that includes QR decoding." ,
6- "icon_url" : " https://apps.micropythonos.com/apps/com.micropythonos.camera/icons/com.micropythonos.camera_0.1 .0_64x64.png" ,
7- "download_url" : " https://apps.micropythonos.com/apps/com.micropythonos.camera/mpks/com.micropythonos.camera_0.1 .0.mpk" ,
6+ "icon_url" : " https://apps.micropythonos.com/apps/com.micropythonos.camera/icons/com.micropythonos.camera_0.2 .0_64x64.png" ,
7+ "download_url" : " https://apps.micropythonos.com/apps/com.micropythonos.camera/mpks/com.micropythonos.camera_0.2 .0.mpk" ,
88"fullname" : " com.micropythonos.camera" ,
9- "version" : " 0.1 .0" ,
9+ "version" : " 0.2 .0" ,
1010"category" : " camera" ,
1111"activities" : [
1212 {
1313 "entrypoint" : " assets/camera_app.py" ,
14- "classname" : " CameraApp " ,
14+ "classname" : " CameraActivity " ,
1515 "intent_filters" : [
1616 {
1717 "action" : " main" ,
1818 "category" : " launcher"
1919 },
20- {
21- "action" : " scan_qr_code" ,
22- "category" : " default"
23- }
2420 ]
25- },
26- {
27- "entrypoint" : " assets/camera_app.py" ,
28- "classname" : " CameraSettingsActivity" ,
29- "intent_filters" : []
3021 }
3122 ]
3223}
Original file line number Diff line number Diff line change 11"""
2- Camera app wrapper that inherits from the mpos.ui.camera_app module.
2+ Camera app wrapper that imports from the mpos.ui.camera_activity module.
33"""
44
5- from mpos .ui .camera_app import CameraApp
5+ from mpos .ui .camera_activity import CameraActivity
66
7- __all__ = ['CameraApp ' ]
7+ __all__ = ['CameraActivity ' ]
Original file line number Diff line number Diff line change 88import mpos .apps
99from mpos .net .wifi_service import WifiService
1010
11- from mpos .ui .camera_app import CameraApp
11+ from mpos .ui .camera_activity import CameraActivity
1212
1313class WiFi (Activity ):
1414 """
@@ -341,7 +341,7 @@ def forget_cb(self, event):
341341 self .finish ()
342342 else :
343343 print ("Opening CameraApp" )
344- self .startActivityForResult (Intent (activity_class = CameraApp ).putExtra ("scanqr_intent" , True ), self .gotqr_result_callback )
344+ self .startActivityForResult (Intent (activity_class = CameraActivity ).putExtra ("scanqr_intent" , True ), self .gotqr_result_callback )
345345
346346 def gotqr_result_callback (self , result ):
347347 print (f"QR capture finished, result: { result } " )
Original file line number Diff line number Diff line change 1212
1313from .camera_settings import CameraSettingsActivity
1414
15- class CameraApp (Activity ):
15+ class CameraActivity (Activity ):
1616
1717 PACKAGE = "com.micropythonos.camera"
1818 CONFIGFILE = "config.json"
Original file line number Diff line number Diff line change 33import mpos
44from mpos .apps import Activity , Intent
55from mpos .ui .keyboard import MposKeyboard
6- from .camera_app import CameraApp
6+ from .camera_activity import CameraActivity
77
88"""
99SettingActivity is used to edit one setting.
@@ -181,7 +181,7 @@ def gotqr_result_callback(self, result):
181181
182182 def cambutton_cb (self , event ):
183183 print ("cambutton clicked!" )
184- self .startActivityForResult (Intent (activity_class = CameraApp ).putExtra ("scanqr_intent" , True ), self .gotqr_result_callback )
184+ self .startActivityForResult (Intent (activity_class = CameraActivity ).putExtra ("scanqr_intent" , True ), self .gotqr_result_callback )
185185
186186 def save_setting (self , setting ):
187187 ui = setting .get ("ui" )
You can’t perform that action at this time.
0 commit comments