kivy

Issue setting Kivy to fullscreen

99封情书 提交于 2020-08-24 06:31:51
问题 I'm trying to write an application that runs kivy at full screen. But these are my issues: 1) When I run the command: #Config.set('graphics', 'fullscreen', 1) Then kivy appears to go full time, but the window has a lot of black spaces around the background image. Even if I elongate the image, kivy just cuts the image when showing it. 2) When I run this command to set the window size to the size of my screen: Config.set('graphics', 'width', '1366') Config.set('graphics', 'height', '768') This

Issue setting Kivy to fullscreen

允我心安 提交于 2020-08-24 06:31:20
问题 I'm trying to write an application that runs kivy at full screen. But these are my issues: 1) When I run the command: #Config.set('graphics', 'fullscreen', 1) Then kivy appears to go full time, but the window has a lot of black spaces around the background image. Even if I elongate the image, kivy just cuts the image when showing it. 2) When I run this command to set the window size to the size of my screen: Config.set('graphics', 'width', '1366') Config.set('graphics', 'height', '768') This

【SimuPy】Python实现的Simulink 文档翻译计划

牧云@^-^@ 提交于 2020-08-10 09:15:51
哈工大的正版 Matlab 授权被贸易战影响了,大家关于这个问题各抒己见。 然后我很赞同 @iGuo 的这个回答: iGuo:如何看待哈工大、哈工程受美商务部「实体名单」影响,被禁止使用 MATLAB 商业软件? ​ www.zhihu.com 在他的回答和评论区,我们俩陆续找了几个Simulink的Python实现,其中有一个就是这个 SimuPy。 SimuPy 是加州大学戴维斯分校的Benjamin W. L. Margolis 在 2017年8月29日发表的 [1] 。 论文 DOI: http:// dx.doi.org/10.21105/jos s.00396 GitHub Repository : https:// github.com/simupy/simup y 官方文档: https://simupy.readthedocs.io ​ simupy.readthedocs.io 官方文档显示的更新日期是今年的4月7号,所以看来这个项目还是活跃的。 嗯,我就是个混人,能力有限,水平也不行,就还是按照当年翻译 Python 教材 以及 Kivy 文档的思路,打算翻译一下 SimuPy 这个项目的相关文档。 我和 @iGuo 都没有用过 Simulink 的经验。 我甚至根本没有用过 Matlab。 但是重在掺和。 咱们和小丹丹、小欣欣这样的人不一样

Pop up Kivy displaying while a process is running in background

孤街醉人 提交于 2020-08-09 09:09:33
问题 In my kivy project, I have a button allowing me to generate a matplotlib graph in .png format. Generating this image takes time (around 20 seconds), and I would like to display a pop-up window to warn the user. What i tried : <MyPopup@Popup>: auto_dismiss: False Button: text: 'This could take time, please wait :) ' on_release: root.dismiss() and : ActionButton: text: 'generate graph' on_release: Factory.MyPopup().open() #on_release: root.generate_graph() Unfortunately, if I uncomment the

Kivy popup running in separate thread

时光毁灭记忆、已成空白 提交于 2020-08-08 05:13:10
问题 I am populating a treeview in Kivy that takes some time depending on how large it is. In the case the tree is large and takes awhile, I would like to display a popup while it is populating so the user is aware the program has not frozen, and close this popup when the logic for populating the tree finishes. Here is what I have come up with through some research on the topic, but the popup still seems to only come once the tree is finished populating: def show(self, *args): self.error_popup

再见HTML ! 用纯Python就能写一个漂亮的网页

喜欢而已 提交于 2020-08-07 12:31:48
我们在写一个网站或者一个网页界面的时候,需要学习很多东西,对小白来说很困难!比如我要做一个简单的网页交互: 很多人学习python,不知道从何学起。 很多人学习python,掌握了基本语法过后,不知道在哪里寻找案例上手。 很多已经做案例的人,却不知道如何去学习更加高深的知识。 那么针对这三类人,我给大家提供一个好的学习平台,免费领取视频教程,电子书籍,以及课程的源代码! QQ群:1097524789 要懂后端,比如Python里面的Django或者Flask,或者是Java里面的SpringBoot 要懂前端,现在都叫大前端了(因为很复杂),比如前端的框架Vue/React, 然后页面的美化框架Bootstrap ,还有html ,csss 和Javascript 三驾马车. 天啊,听听头都大呢!其实我就给老板做一个简单的交互的页面,而且我只会Python ,有没有很简单的办法可以做到呢。 今天小编在Github上逛的时候,找到一个非常酷的神器,名字叫remi ,目前收获了2300个赞。 star并不是很多, 但是这个库可是选入2018年的十大明星库 ,号称是一个独立的GUI库,而且最牛逼的就是这个库 竟然小于 100K ,是否很神奇呢,我们一起来体验看一下特性: 跟其他GUI库区别? Kivy,PyQT和PyGObject都需要主机操作系统的本机代码,这意味着安装或编译大型依赖项

Matplotlib imshow and kivy

笑着哭i 提交于 2020-08-03 09:08:52
问题 I have a 3D numpy array, representing a 3D tomographic image I = [i,j,k]. I started to learn kivy as I need to do a simple GUI consisting of a 2D image viewer for each slice of the 3D (s = [i,:,:]) image and a slicer to move across planes. I usually perform all visualization via matplotlib and I tough that the easiest way will be to connect matplotlib to the kivy. How can I do it? I saw another question which ask a similar question, but only with the plot function, and the methodology does

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

 ̄綄美尐妖づ 提交于 2020-08-03 03:07:42
问题 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