Hello! Can you give me an example of Button widget in Kivy language? I can creat the button but don't know how to use it's callback. I mean how can i set a command for the Button in Kivy?

Member Avatar
Member Avatar
+0 forum 10

hi, i have managed to several different kivy apps on and i want them to run on different pcs but using a central server which wont be hosted online but within a connection. How can i go about this

Member Avatar
Member Avatar
+0 forum 1

have a code that loads an image online with the AsyncImage module in kivy. i wrote the code in python3 which runs well on the pc but doesnt work on a packaged apk. i think this is because i packaged it using python2.7 buildozer. thanks an image showing the error in logcat this is the code. class Gallery(Screen,GridLayout): scroller = ObjectProperty(None) grid = ObjectProperty(None) def __init__ (self,**kwargs): super(Gallery, self).__init__(**kwargs) if len(self.ids.grid.children) == 0: for i in range(13): src = "http://placehold.it/480x270.png&text=slide-%d&.png" % i image = MyTile(source=src, allow_stretch=True) self.ids.grid.add_widget(image)

Member Avatar
Member Avatar
+0 forum 4

i am trying to build an app that implements a double tap feature to open another screen, the UI includes a textinput. but with this implementation the textinput doesnt respond. def change(self): self.manager.current = 'screen2' def on_touch(self,touch): if touch.is_double_tap(self): self.change()

Member Avatar
+0 forum 0

Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def build(self): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days days = str(days) self.label_days = Label(text=days + " days") hour_string = str(delta).split(', ')[1] hours = hour_string.split(':')[0] self.label_hours = Label(text=hours + " hours") minuts = hour_string.split(':')[1] self.label_minuts = Label(text=minuts + " minuts") seconds = hour_string.split(':')[2] self.label_seconds = Label(text=seconds + " seconds") b = BoxLayout(orientation="vertical") b.add_widget(self.label_days) b.add_widget(self.label_hours) b.add_widget(self.label_minuts) b.add_widget(self.label_seconds) return b if __name__ == "__main__": CountdownApp().run() I want …

Member Avatar
Member Avatar
+0 forum 5

I want to exchange line 18 text with line 23 lable text, but here line 18 doesn't work in my code? Any idea?! from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label def timer(): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days hour_string = str(delta).split(', ')[1] hours = hour_string.split(':')[0] minuts = hour_string.split(':')[1] seconds = hour_string.split(':')[2] seconds_1 = hour_string.split(':')[2].split('.')[0] #print ("%s days" % days) #print ("%s hours" % hours) #print ("%s minuts" % minuts) #print ("%s seconds" % seconds) self.l_days.text = days class CountdownApp(App): def build(self): b = BoxLayout() l_days = Label(text = …

Member Avatar
Member Avatar
+0 forum 6

Hello. I have copied these 2 files of code from a website. main.py: from kivy.app import App from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.clock import Clock from kivy.properties import StringProperty import datetime class Counter_Timer(BoxLayout): def update(self, dt): delta = datetime.datetime(2015, 9, 13, 3, 5) - datetime.datetime.now() self.days = delta.days hour_string = str(delta).split(',')[1] self.hours = hours_string.split(':')[0] self.minuts = hours_string.split(':')[1] self.seconds = hours_string.split(':')[2].split('.')[0] return days, hours, minuts, seconds class Counter(App): def build(self): counter = Counter_Timer Clock.schedule_interval(counter.update, 1.0) days = StringProperty() hours = StringProperty() minutes = StringProperty() seconds = StringProperty() return if __name__ == "__main__": Counter().run() There was written: "Let's …

Member Avatar
Member Avatar
+0 forum 1

Hi, me again :) Look at this error please: File "./kivycal-1", line 103, in number_two self.check() TypeError: check() takes exactly 2 arguments (1 given) The error is pointing to here: def number_two(self, event): global numbers numbers.append(2) print numbers self.check() This is a part of a class in a .py file. I'm coding in python and kivy in that file. And here is the check function: def check(self): global numbers if len(numbers) == 3: ckeck_to_answer() Well, i can't understand what's the exact problem, what should i do?

Member Avatar
Member Avatar
+0 forum 6

I'm going to learn kivy programming language. Could you introduce some good tutorials to me please? Except the kivy.org. And also i'm looking for a good Kivy forum.

Member Avatar
Member Avatar
+0 forum 1

Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on a kivy tutorial video. Fist file is "main.py": from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout from kivy.uix.textinput import TextInput from kivy.uix.boxlayout import BoxLayout class ScatterTextWidget(BoxLayout): pass class TutorialApp(App): def build(self): return ScatterTextWidget() if __name__ == "__main__": TutorialApp().run() And the second one is "Tutorial.kv": <ScatterTextWidget>: orientation: "vertical" TextInput: id: my_textinput font_size: 120 size_hint_y: None; height: 200 text: "Hello World!" FloatLayout: Scatter: Label: …

Member Avatar
Member Avatar
+0 forum 3

Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need to watch more tutorial videos and i'm not able to do that right now. Can you introduce a better and more easier framework to me? Thank you ;)

Member Avatar
Member Avatar
+0 forum 6

The End.