kivy-language

How to make circular progress bar in kivy?

扶醉桌前 提交于 2019-12-18 04:25:11
问题 I thought to make one simple circular progress bar using kivy and python. I searched online documentation and GitHub repertoires, but not found single proper example explaining the concept of circular progress bar . Like the image attached below. I thought to develop. Please anyone help me in this issue. 回答1: New, better version This post has received much more attention than I expected, therefore I've decided to put a little bit of effort into creating an upgraded version of this widget. It

Kivy (Python) TabbedPanel - different (dynamic) sized tabs?

浪子不回头ぞ 提交于 2019-12-13 18:35:01
问题 Kivy seems to want to make all tabs the same size. What if I want to make one tab wider than others? Adjusting tab_width for a TabbedPanelItem seems to have no effect, and as such the longer text is getting cut off. Example modified slightly from Kivy TabbedPanel docs, where I changed the first tab's heading to "Long Text for a Tab": from kivy.app import App from kivy.uix.tabbedpanel import TabbedPanel from kivy.lang import Builder Builder.load_string(""" <Test>: #size_hint: .5, .5 pos_hint:

Python Kivy using Matplotlib for plotting real time graphs (size too small)

做~自己de王妃 提交于 2019-12-13 16:12:09
问题 I am trying to create a measurement visualization inside kivy using kivy garden matplotlib. The goal is to plot variables from a dictionary with their associated measurements. At the moment the code (see below) consists of 3 parts. After the import section I define constants that I use inside the code. The next part is a dictionary that I use to programmatically plot different variables with different settings (line color, line width, ect.). Beginning after the dictionary I define a method

kivy reference text of TextInput by StringProperty

雨燕双飞 提交于 2019-12-13 16:05:22
问题 I would like to get the text of my TextInput via a StringProperty, but it does not work. I get an empty string. In the second example, I am declaring the whole TextInput as an ObjectProperty and then it does work. What is wrong with my first example? How can a StringProperty be used to define the text inside a TextInput? First example does not print text of TextInput example1.py from kivy.app import App from kivy.base import Builder from kivy.properties import StringProperty from kivy.uix

Encountring an error with videos - Kivy on Windows 7

浪子不回头ぞ 提交于 2019-12-13 10:05:38
问题 I want to make an application with Kivy that can manipulate videos, my problem is that i can't play videos when i am using kivy, my operating system is Windows7. In the demo example given with Kivy, here is the result : in this youtube video (https://www.youtube.com/watch?v=8zSNzUAfohA), in minute 1h18min30sec the video is actually working The result i had before was this picture : I hope u guys know what is the problem source. Thank you for your time :) 回答1: Install kivy.deps.gstreamer if

Clock.schedule_once not updating the label, but update method is being called

橙三吉。 提交于 2019-12-13 04:17:20
问题 I have a label in which I need to update the text once I receive the text from server. Method is working, am getting the output and the function is also getting called, but the label text is not updating. My code : #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 21 00:34:58 2019 @author: driftking9987 """ from kivy.app import App from kivy.uix.togglebutton import ToggleButton from kivy.uix.widget import Widget from kivy.uix.boxlayout import BoxLayout import requests from

Problem with Kivy - Scrollview overlapping with Box Layout above it

对着背影说爱祢 提交于 2019-12-13 03:59:25
问题 I'm clicking the button in the fixed menu at the top even though there is a Button in the vertical Scrollview, it doesn't effect the fixed menu. I'm trying to click at the button in the fixed menu at the top but the actions are being sent to the horizontal Scrollview below. I'm new with kivy and even programming and I'm creating an app with Python 3.7, and Kivy(1.11.1) that kinda looks like Netflix's Page layout, in which there is a menu fixed at the top and below it there is a vertical

How to update StringProperty variable in Kivy

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:55:49
问题 I have a problem updating a screen in Kivy. I'm trying to make to make a login screen in Kivy, and I'd like to store all the information of the user in different variables so that an algorithm could parse them and give them a score, and assign them a place to go. Basically it is: filling info----> algorithm calculates ----> go to room x. My problem is that after the calculation, the "go to room" screen doesn't update, meaning that the name of the person and the room are the initial values.

A simple web page inside kivy app as a widget

巧了我就是萌 提交于 2019-12-12 10:56:29
问题 I want to have a web view in my kivy application that is running on ubuntu 64bit. I looked on the web, went through kivy's documentation and searched for answers on StackOverflow but I couldn't find anything that can do my job. A simple web page needs to be rendered inside kivy app as widget. Please help me out. 回答1: There isn't native support for this. Try checking out this and this. 来源: https://stackoverflow.com/questions/40378036/a-simple-web-page-inside-kivy-app-as-a-widget

switch screenmanager inside layout

北慕城南 提交于 2019-12-12 05:39:02
问题 I'm trying to make a ScreenManager inside a BoxLayout work, so I can have a fixed toolbox below everyScreen the Screen. I managed to show the first screen (thanks to this question), but, when I try to swicth to the other Screen, the app crashes saying that there's no other Screen. Actually, there really is no other Screen: both prints inside the ScreenManagement's init shows nothing. And I don't know why. Without the toolbar (only with the ScreeManager(ment) and the necessary tweaks in the