kivy

Cant display speedometer on MainWindow (kivy)

北城余情 提交于 2021-02-11 13:33:32
问题 I am trying to display the speedometer in my MainWindow screen. Right now when i run the code, the speedometer works but it is not displayed on the MainWindow screen which i want rather it is just appearing on a normal screen. It is possible to combine class Gauge(Widget): and class MainWindow(Screen): together so that the speedometer will actually be displayed on the MainWindow? .py file import kivy kivy.require('1.6.0') from kivy.app import App from kivy.clock import Clock from kivy

KIVY: Carousel inside another carousel

元气小坏坏 提交于 2021-02-11 12:40:13
问题 I'm trying to have a carousel inside another carousel. It's KivyMD so I have MDTabs which is based off of carousel and I wish to put another one inside of that. I did it but the parent carousel (the MDTabs) grabs focus and when I try to swipe the child carousel the focus goes to the parent instead and it switches tabs instead of switching slides inside the carousel. If I wait for the scroll_timeout of the parent carousel I can swipe and switch slides but this is basically unusable for the end

Displaying something in kivy while a process is running background

╄→гoц情女王★ 提交于 2021-02-11 12:38:20
问题 I'm trying to generate a graph when i'm leaving my kivy app using matplotlib. The process time to generate these graphs is about 20 seconds and i would like to warn the user during this time. I tried to use a Kivy pop up, and it didn't work. I tried to add a label, but it doesn't seems to work either. That's why I really need help ! My code : def fermerBanc(self): list_argument_graph=[] list_argument_graph.append(passerelle.graph1.y_low_min) list_argument_graph.append(passerelle.graph1.y_low

Proper usage of metrics with Kivy(So GUI scales well across devices)

若如初见. 提交于 2021-02-11 08:42:01
问题 I am trying to get my game to look/scale well across different devices. I am attempting to introduce the dp and sp metrics into my apps as much as possible, but in this case I am refactoring a game to use these metrics for layout and widget sizing. Where before, my layouts were sized using size_hint in order to have everything get it's size relative to it's parent(the app itself is not given a size, nor is the window, but the root widget/layout has size_hint=(1, 1) ), I am now faced with

KivyMD How to change MDToolbar title size and font?

为君一笑 提交于 2021-02-11 06:48:23
问题 Im trying to learn KivyMD tools. So i created MDToolBar and it's title changes after some button clicks. Im trying to optimize it's text_size but can't do it.I already tried font_type:'H1' , font_size: '8sp' . Also i want to change it's font if its possible. Can anyone help me about that. Im sharing minimal code below: from kivy.lang import Builder from kivy.uix.screenmanager import Screen,ScreenManager kv = Builder.load_string(""" <SM>: P1: <P1>: BoxLayout: orientation: 'vertical' MDToolbar:

How to put multiple columns into a kivy RecycleView?

柔情痞子 提交于 2021-02-11 06:01:47
问题 I want to put the data of a (csv-)table into a kivy recycleview. I managed to insert multiple columns with one row, if i assign a fixed text to the Labels in the kv, but i can't get it to fill the labels with data from a dictionary list. This is the code so far, that i use to test the concept: from kivy.app import App from kivy.lang import Builder from kivy.uix.recycleview import RecycleView from kivy.uix.boxlayout import BoxLayout import csv items = [{'SP1': 'Artikelnummer', 'SP2': 'Name',

How to put multiple columns into a kivy RecycleView?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 06:01:35
问题 I want to put the data of a (csv-)table into a kivy recycleview. I managed to insert multiple columns with one row, if i assign a fixed text to the Labels in the kv, but i can't get it to fill the labels with data from a dictionary list. This is the code so far, that i use to test the concept: from kivy.app import App from kivy.lang import Builder from kivy.uix.recycleview import RecycleView from kivy.uix.boxlayout import BoxLayout import csv items = [{'SP1': 'Artikelnummer', 'SP2': 'Name',

Removing Kivy's Window border

怎甘沉沦 提交于 2021-02-11 02:00:26
问题 According to the kivy document, I can remove Window's border by Window.borderless = True (https://kivy.org/doc/stable/api-kivy.core.window.html) However, The problem is, it still shows the border when it starts up, then it gets removed in like 0.5 second. And it seems a bit weird to me Is it possible to remove the border at the very beginning? 回答1: The problem is caused by first reading the Config and probably configured to be border and then read your configuration, so the solution in that

Removing Kivy's Window border

雨燕双飞 提交于 2021-02-11 01:58:30
问题 According to the kivy document, I can remove Window's border by Window.borderless = True (https://kivy.org/doc/stable/api-kivy.core.window.html) However, The problem is, it still shows the border when it starts up, then it gets removed in like 0.5 second. And it seems a bit weird to me Is it possible to remove the border at the very beginning? 回答1: The problem is caused by first reading the Config and probably configured to be border and then read your configuration, so the solution in that

Kivy application deployment using py2app on Mac OS Mojave

一世执手 提交于 2021-02-10 17:47:06
问题 I have been trying to distrubute my simple Kivy app on Mac OS and I have been still failing. My environment: macOS Mojave ver. 10.14.6 Python 3.7.3 installed with Homebrew along with pyenv that enables to maintain a couple of python versions Kivy 1.11.1 installed along with bunch of Homebrew libs such as pig-config sdl2 sdl2_image, Gstreamer etc. The application works pretty fine when it is run from the local environment, however I am not able to create a version for distribution. I spent