Kivy runs on Linux, Windows, OS X, Android, iOS, and Raspberry Pi. You can run the same code on all supported platforms.
on_press: root.upd()
self.ids['fer'].text = ':<'
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
Builder.load_string("""
<Gex>:
orientation: 'vertical'
Button:
text: 'UwU'
on_press: root.upd()
Label:
id: fer
text: ' '
""")
class Gex(BoxLayout):
def upd(self):
self.ids['fer'].text = ':<'
class FakeApp(App):
def build(self):
return Gex()
FakeApp().run()
a = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя'
a = list(a)
b = a
print(id(a) == id(b)) # True, a и b - один и тот же list
b = a[:]
print(id(a) == id(b)) # False, теперь разные
for i in a:
b += [i.upper()]
print(b)