kivy-language

Kivy Digital Clock Issues

。_饼干妹妹 提交于 2020-01-17 13:59:08
问题 I'm trying to add a digital clock to my Kivy program, it seems to be having trouble. Here is the .py: import kivy kivy.require('1.10.0') from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition from kivy.app import App from kivy.uix.label import Label from kivy.uix.image import Image from kivy.uix.floatlayout import FloatLayout from kivy.uix.stacklayout import StackLayout from kivy.clock import Clock from kivy.properties import ObjectProperty from

how to pass more then one parameter in pop up box when click on row

佐手、 提交于 2020-01-14 06:10:32
问题 user.py import kivy kivy.require('1.9.0') # replace with your current kivy version ! import sqlite3 as lite from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import BooleanProperty, ListProperty, StringProperty, ObjectProperty,NumericProperty from kivy.lang import Builder from kivy.uix.recycleview.views import RecycleDataViewBehavior from kivy.uix.button import Button from kivy.uix.recyclegridlayout import RecycleGridLayout from kivy.uix.behaviors import

how to pass more then one parameter in pop up box when click on row

北城以北 提交于 2020-01-14 06:10:11
问题 user.py import kivy kivy.require('1.9.0') # replace with your current kivy version ! import sqlite3 as lite from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import BooleanProperty, ListProperty, StringProperty, ObjectProperty,NumericProperty from kivy.lang import Builder from kivy.uix.recycleview.views import RecycleDataViewBehavior from kivy.uix.button import Button from kivy.uix.recyclegridlayout import RecycleGridLayout from kivy.uix.behaviors import

Bind a function to multiple dynamically created buttons in kivy?

依然范特西╮ 提交于 2020-01-14 05:01:21
问题 Problem I want to create multiple buttons and bind them to a function. The problem is that whenever I click on one button, the function is called multiple times. It seems to be a problem with the event connection. When I look at the instance that called the function when I pressed a button, it seems that the function gets called from every button at once?! KV Code: ... # This is the button that I'am using <ProjectSelectButton>: height: 35 background_color: 0,0,1,1 on_touch_down: self.click_on

Python/Kivy : Selection Row in RecycleView using `Up` and `Down` key

陌路散爱 提交于 2020-01-13 06:53:11
问题 I am using python-2.7 and kivy. When i run test.py and click on Test menu then screen shows like attached image. 1. How to highlight first row by default on screen load? When press up and down key of keyboard then it should be select row according up and down key . 2. When i click on any row then it opens in modify case.How to open selected row in modify case using ctrl+e instead of click? test.py import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.boxlayout import

How to trace a path in Kivy map?

杀马特。学长 韩版系。学妹 提交于 2020-01-05 07:44:13
问题 i am trying to draw the streets actually i want to draw the strets path (like google maps) but this is what i got.enter image description here puntoA = self.puntos[0] puntoB = self.puntos[1] direccionx = puntoA.lon - puntoB.lon direcciony = puntoA.lat - puntoB.lat distanciax = direccionx/25 distanciay = direcciony/25 for i in range(25): print i puntox = distanciax*i puntoy = distanciay*i self.mv.add_marker(MapMarker(lat = self.puntos[1].lat + puntoy , lon = self.puntos[1].lon + puntox, source

Scatter Covers whole display kivy

孤街醉人 提交于 2020-01-02 18:04:31
问题 im writing a paint app in Kivy (Python) and i orientated myself at the Kivy Paint Tutorial. But when I wanted to add a Scroll funktion (so you can move your painted things to the top, left, right...) i came to an problem. I added a Scatter, so everything that is drawn is inside the scatter and it is posible to move it all together. Now im trying to add a menu but it isnt possible to press the button, because it is covered by the scatter. I tried to put both in a Float layout, but it didnt

How to fetch data from database and show in table in kivy+python

不羁岁月 提交于 2019-12-28 02:48:05
问题 list.py import kivy kivy.require('1.9.0') # replace with your current kivy version ! import sqlite3 as lite from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout from kivy.core.window import Window Window.clearcolor = (0, 0.517, 0.705, 1) Window.size = (500, 330) from easygui import msgbox con = lite.connect('demo.db') con.text_factory = str cur = con.cursor() class TestScreen(Screen): pass def get_user(self):

Kivy - TabbedPanel headers slight offset

て烟熏妆下的殇ゞ 提交于 2019-12-25 09:00:24
问题 I'm using the TabbedPanel (with the default tab_pos: "top_left" ) but the headers (as one can see in the docs) are slighty not on the left. It's like there is a small padding-left of 1px which is applied. I can't figure out how to configure that. Any insights? Thanks! 回答1: A hacky, non-pretty solution: from kivy.app import App from kivy.uix.tabbedpanel import TabbedPanel from kivy.lang import Builder Builder.load_string(''' <MyWidget>: TabbedPanelItem: text: 'tab1' TabbedPanelItem: text:

Kivy: How to merge cells and interact with MySQL database

邮差的信 提交于 2019-12-25 08:26:34
问题 Here is the relevant snippet of my mykv.kv file: <RemoveScreen>: MyLayout: MyLogo: GridLayout: rows: 6 cols: 2 padding: 100,80,100,80 Label: font_size: "20sp" bold: True color: [1,1,0,1] text: "Part number:" Label: text: "Box 02" Label: font_size: "20sp" bold: True color: [1,1,0,1] text: "Part description:" Label: text: "Box 04" Label: font_size: "20sp" bold: True color: [1,1,0,1] text: "Quatity on hand:" Label: #font_size: "20sp" text: "Box 06" Label: font_size: "20sp" bold: True color: [1,1