kivy

raspberry安装命令版网易云音乐

落爺英雄遲暮 提交于 2020-03-14 17:36:42
更改pip源 1.临时 pip install -i https://pypi.doubanio.com/simple/ kivy.deps.gstreamer 2.永久 更改pip源 新建~/.pip/pip.conf文件,写入其地址。阿里云、中科大、豆瓣等都有pip源。 [global] index-url = http://pypi.douban.com/simple/ 安装 pip install Netease-MusicBox 如果报下面的错,更新pip Downloading https://pypi.doubanio.com/packages/7f/3c/80cfaec41c3a9d0f524fe29bca9ab22d02ac84b5bfd6e22ade97d405bdba/pycryptodomex-3.9.7.tar.gz (15.5MB) 99% |████████████████████████████████| 15.5MB 4.9MB/s eta 0:00:01Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 143, in main status =

AttributeError: 'NoneType' on the selenium

空扰寡人 提交于 2020-03-05 03:13:30
问题 I have a error in my code, I want to get or to print the product text but when i run it it gave me an error. here is my code: import kivy from kivy.properties import ObjectProperty from selenium import webdriver import requests from selectorlib import Extractor from selenium.webdriver.common.keys import Keys from kivymd.app import MDApp from kivy.app import App from kivy.lang import Builder KV = ''' BoxLayout: product: product size_hint: .8, .8 pos_hint: {"center_x": .5, "center_y": .5}

How can I fix pip install error: 'EnvironmentError: [Errno 42] Illegal byte sequence'?

ぐ巨炮叔叔 提交于 2020-03-01 06:59:37
问题 I am trying to download kivy module using pip . When I run the pip install command , I got an error: Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence. I already re-installed python , I am running as an administrator and I also tried to download via the wheel file. All of the above causes the same environment error. 回答1: There seems to be a bug in pip https://github.com/pypa/pip/issues/5665. The current workaround is to run the command in silent mode pip

How can I fix pip install error: 'EnvironmentError: [Errno 42] Illegal byte sequence'?

不羁岁月 提交于 2020-03-01 06:58:52
问题 I am trying to download kivy module using pip . When I run the pip install command , I got an error: Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence. I already re-installed python , I am running as an administrator and I also tried to download via the wheel file. All of the above causes the same environment error. 回答1: There seems to be a bug in pip https://github.com/pypa/pip/issues/5665. The current workaround is to run the command in silent mode pip

Python/Kivy : Form submit using enter key

爱⌒轻易说出口 提交于 2020-02-23 08:16:02
问题 I am moving from one TextInput to another TextInput using enter key. I want to move from last TextInput to Button using enter key .When I press again enter key then should be call root.abc() function. Can someone tell me how to done it? test.py from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.core.window import Window Window.clearcolor = (0.5, 0.5, 0.5, 1) Window.size = (300, 100) class User(Screen): def abc(self): print('Test') class Test(App): def build(self):

Kivy and Flask threads blocking each other in Python2

二次信任 提交于 2020-02-23 07:24:05
问题 I have the following setup: Kivy 1.11.1, Flask 1.1.1 and Python 2.7.13. I want to fetch a JSON request but I am stuck at Flask app does not fetch requests while the Kivy GUI is running. Even when run in separate threads they block each other. The main api script eg_api.py: #!/usr/bin/python2.7 python2.7 # -*- coding: utf-8 -*- # kivy modules first, if not Kivy may cause problems import kivy from kivy.app import App from kivy.lang import Builder from kivy.uix.label import Label from kivy.uix

Kivy: accessing a method on a different class

走远了吗. 提交于 2020-02-23 03:50:11
问题 Let's pretend I am building a tic-tac-toe game (becouse it's pretty similar as a structure) I want the result to be shown in a popup, with a new game button, and I want this popup to let me access settings (with another button) and change them, always staying within the popup, then leave and finally close it and start a new game. I wish i could keep things ordered and therefore have a separate popup class where i can build my custom popup. I have the newgame method and reset method as method

Kivy: accessing a method on a different class

天大地大妈咪最大 提交于 2020-02-23 03:48:59
问题 Let's pretend I am building a tic-tac-toe game (becouse it's pretty similar as a structure) I want the result to be shown in a popup, with a new game button, and I want this popup to let me access settings (with another button) and change them, always staying within the popup, then leave and finally close it and start a new game. I wish i could keep things ordered and therefore have a separate popup class where i can build my custom popup. I have the newgame method and reset method as method

Python, Kivy, “AssertionError: None is not callable” Error on function call by button

Deadly 提交于 2020-02-21 03:08:12
问题 So I whant to use this code to call a function on a button press: botao_ok.bind(on_press=f_adicionar_socios(txt_n_socio.text,txt_nome.text,txt_filho_de.text,txt_filho_e_de.text,txt_data_nas.text,txt_tipo_ID.text,txt_num_ID.text,txt_NIF.text,txt_morada_rua.text,txt_morada_localidade.text,txt_codigo_postal.text,txt_tel_fixo.text,txt_telemovel.text,txt_email.text,txt_tipo_socio.text,txt_data_admicao.text,txt_zona.text,txt_actividade.text,txt_actividade_de.text,txt_actividade_ate.text,txt

How to dismiss the Kivy pop-up via a Button?

徘徊边缘 提交于 2020-02-08 07:14:06
问题 I have a pop-up created with Kivy, which contains 2 buttons. User can dismiss the pop-up by pressing outside of the pop-up area (auto_dismiss = True), or by clicking the "No" button. Selecting the "Yes" button, will exit the whole application. Please see relevant code: class ExitApp(App): def exit_confirmation(self): # popup can only have one Widget. This can be fixed by adding a BoxLayout self.box_popup = BoxLayout(orientation = 'horizontal') self.box_popup.add_widget(Label(text = "Really