Remove debug output

This commit is contained in:
Thomas Farstrike
2025-11-17 19:15:47 +01:00
parent a7f640038b
commit ebf8a98262
2 changed files with 10 additions and 17 deletions
+7 -6
View File
@@ -32,7 +32,7 @@ class App:
self.installed_path = installed_path
self.icon_path = self._find_icon_path()
print(f"App constructor got icon_path: {self.icon_path}")
#print(f"App constructor got icon_path: {self.icon_path}")
if self.icon_path:
self.icon_data = self._load_icon_data(self.icon_path)
else:
@@ -43,21 +43,22 @@ class App:
return f"App({self.name}, version {self.version}, {self.category})"
def _load_icon_data(self, icon_path):
print(f"App _load_icon_data for {icon_path}")
#print(f"App _load_icon_data for {icon_path}")
try:
f = open(icon_path, 'rb')
return f.read()
except Exception as e:
print(f"open {icon_path} got error: {e}")
#print(f"open {icon_path} got error: {e}")
pass
def _check_icon_path(self, tocheck):
try:
print(f"checking {tocheck}")
#print(f"checking {tocheck}")
st = os.stat(tocheck)
print(f"_find_icon_path for {tocheck} found {st}")
#print(f"_find_icon_path for {tocheck} found {st}")
return tocheck
except Exception as e:
print(f"No app icon found in {tocheck}: {e}")
#print(f"No app icon found in {tocheck}: {e}")
return None
def _find_icon_path(self):
@@ -141,15 +141,7 @@ def find_closest_obj_in_direction(focus_group, current_focused, direction_degree
for objnr in range(focus_group.get_obj_count()):
obj = focus_group.get_obj_by_index(objnr)
process_object(obj)
# Result
if closest_obj:
print(f"Closest object in direction {direction_degrees}°:")
mpos.util.print_lvgl_widget(closest_obj)
else:
#print(f"No object found in direction {direction_degrees}°")
pass
return closest_obj
@@ -209,6 +201,6 @@ def move_focus_direction(angle):
return
o = find_closest_obj_in_direction(focus_group, current_focused, angle, False)
if o:
print("move_focus_direction: moving focus to:")
mpos.util.print_lvgl_widget(o)
#print("move_focus_direction: moving focus to:")
#mpos.util.print_lvgl_widget(o)
emulate_focus_obj(focus_group, o)