Make more free RAM available on widgets
Not importing all UIKit classes saves a LOT of memory
@@ -16,8 +16,6 @@ While the UI is not interactive, UI elements can open the script in foreground t
from __future__ import annotations
from pyto import __Class__
-from UIKit import UIDevice
-from UIKit import UIFont as __UIFont__
from typing import Union, List
from urllib.request import urlopen
from time import sleep
@@ -37,6 +35,10 @@ except ValueError:
return None
+UIDevice = ObjCClass("UIDevice")
+__UIFont__ = ObjCClass("UIFont")
+
+
try:
from PIL import Image as PIL_Image
except ModuleNotFoundError:
@@ -70,6 +72,9 @@ See :data:`~widgets.WidgetComponent.link`, :meth:`~widgets.WidgetLayout.add_row`
"""
__PyWidget__ = __Class__("PyWidget")
+
+__PyWidget__.breakpoint("74")
+
__widget_id__ = None
__shown_view__ = False
__PyColor__ = __Class__("PyColor")
