Relative Content

Tag Archive for pythonkivymd

The label widget does not display the kivymd text

from kivy.clock import Clock from kivy.uix.boxlayout import BoxLayout from kivymd.app import MDApp from socket import * from kivymd.uix.label import MDLabel class TestApp(MDApp): def build(self): self.label1 = MDLabel(font_style=”H5″, pos_hint={‘center_x’: 0.5, ‘center_y’: 0.5}) Clock.schedule_interval(self.update_label_text, 1) return self.label1 def update_label_text(self, dt): client = socket( AF_INET, SOCK_STREAM ) client.connect((‘192.168.5.99’, 7000)) data = client.recv(1024) msg = data.decode(‘utf-8’) while True: data […]

Error: callback must be a callable Kivymd Clock

I am transferring data from the server to the label widget. I update the window every second so that new data from the server is visible in the window without restarting the window. Sorry, I’m new to working with kivymdenter image description here

How to remove a widget from a screen

I’m trying to make a screen with textinput a btn and a recycling view.
The btn add to the recycling view a card with the text of the textinput, each card has a trash-bin button to remove the card and the item from the list.