kivy

How to create menu item in OSX Menubar using Pyinstaller packaged Kivy Python application?

僤鯓⒐⒋嵵緔 提交于 2020-08-03 03:06:44
问题 To achieve sense of nativeness in my Pyinstaller packaged Kivy Python application, I would like to create menu item in OSX menu bar. If using PyQt, I can easily achieve this. But as I am using Kivy, it seems like I have to resort to other ways. Any suggestion? I guess it will be in the range of PyObjc or AppleScript. Not sure though. 回答1: I guess this is more to Pyinstaller question that it is as Kivy question. It's neither :) PyInstaller just wraps the python application into a native

KIVY python - scroll view in a layout

此生再无相见时 提交于 2020-07-24 05:39:46
问题 I have a simple app in which i would like to insert a scroll view of several buttons. So there is the base code, i want a scroll view inside the grid layout. PS: i have this error: Menu object has no attribute 'view' what I would like to obtain: debug.py: from kivy.app import App from kivy.uix.screenmanager import ScreenManager, Screen from kivy.lang import Builder from kivy.uix.button import Button class AppScreenManager(ScreenManager): def __init__(self, **kwargs): super(AppScreenManager,

KIVY python - scroll view in a layout

前提是你 提交于 2020-07-24 05:37:19
问题 I have a simple app in which i would like to insert a scroll view of several buttons. So there is the base code, i want a scroll view inside the grid layout. PS: i have this error: Menu object has no attribute 'view' what I would like to obtain: debug.py: from kivy.app import App from kivy.uix.screenmanager import ScreenManager, Screen from kivy.lang import Builder from kivy.uix.button import Button class AppScreenManager(ScreenManager): def __init__(self, **kwargs): super(AppScreenManager,

Kivy app build successfully using buildozer but crashes when opened on android phone

Deadly 提交于 2020-07-22 06:25:29
问题 I'm building an app using kivy and it works perfectly on my Linux laptop. I build the app for android using buildozer and the log does not show any errors. When it was complete, the apk file is created in the bin folder. I then copy the apk file and paste it on my phone storage and then install the app. When I open the app, it shows the kivy logo and loading... but then it crashes! I tried the whole day to find a solution but I could not achieve that. I find this command while googling the

How to Load Kivy IDs Before Class Method is Initialized (Python with Kivy)

僤鯓⒐⒋嵵緔 提交于 2020-07-22 04:02:30
问题 Goal: Successfully initialize a class method ( create_button() , in my case) that references kv ids in its parameter from the __init__ method of the same class. I'm receiving the following error: File "C:/Users/phili/scrollablelabelexample.py", line 33, in __init__ self.create_button(self.ids.box_share) File "kivy\properties.pyx", line 839, in kivy.properties.ObservableDict.__getattr__ (kivy\properties.c:12654) AttributeError: 'super' object has no attribute '__getattr__' Suspicion: I believe

How to Load Kivy IDs Before Class Method is Initialized (Python with Kivy)

和自甴很熟 提交于 2020-07-22 04:01:08
问题 Goal: Successfully initialize a class method ( create_button() , in my case) that references kv ids in its parameter from the __init__ method of the same class. I'm receiving the following error: File "C:/Users/phili/scrollablelabelexample.py", line 33, in __init__ self.create_button(self.ids.box_share) File "kivy\properties.pyx", line 839, in kivy.properties.ObservableDict.__getattr__ (kivy\properties.c:12654) AttributeError: 'super' object has no attribute '__getattr__' Suspicion: I believe

Kivy VideoPlayer fullscreen, loop, and hide controls

若如初见. 提交于 2020-07-19 07:41:48
问题 I'm just starting out with Kivy, so please point out if I'm doing something wrong.. I'm trying to work with the video player. Namely, I can't seem to get it to recognize any "options", and I'd really like a way to hide the controls (to prevent the user from stopping/pausing/changing volume/interacting etc.. while the movie is running). Here's what I've got so far: import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.videoplayer import VideoPlayer class MyApp(App): def

Kivy VideoPlayer fullscreen, loop, and hide controls

大兔子大兔子 提交于 2020-07-19 07:41:28
问题 I'm just starting out with Kivy, so please point out if I'm doing something wrong.. I'm trying to work with the video player. Namely, I can't seem to get it to recognize any "options", and I'd really like a way to hide the controls (to prevent the user from stopping/pausing/changing volume/interacting etc.. while the movie is running). Here's what I've got so far: import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.videoplayer import VideoPlayer class MyApp(App): def

Getting Pyinstaller to recognize the path to Kivy Garden Matplotlib modules

笑着哭i 提交于 2020-07-19 04:41:19
问题 This is similar to: Kivy Garden in PyInstaller - stuck trying to trace import except that I'll provide much more detail to hopefully make this easier for someone to test out and provide a concrete solution.... I've built a Python 2.7.13 application using Kivy 1.9.1 and am attempting to package it for Windows, within Windows 10, with Pyinstaller. In short - I cannot get Pyinstaller to pick up the Garden modules - specifically the matplotlib module, which I am using to display data. This garden

Pre Highlighted Dates KivyMD DatePicker

孤人 提交于 2020-07-09 11:53:24
问题 I'm looking to pass the KivyMD MDDatepicker a list of dates to be highlighted in a different color to mark that the user completed a task on those dates. I don't see anything in the documentation below for this. Is it possible or do I have to use a new calendar widget? https://kivymd.readthedocs.io/en/latest/components/pickers/index.html#kivymd.uix.picker.MDDatePicker.sel_day 来源: https://stackoverflow.com/questions/61881407/pre-highlighted-dates-kivymd-datepicker