shrinkray | Lightweight alternative to Electron for making macOS apps | Runtime Evironment library
kandi X-RAY | shrinkray Summary
kandi X-RAY | shrinkray Summary
Create desktop apps in Javascript. Lightweight alternative to Electron because of only supporting macOS (for now). The input path must be to a folder that has an index.html in it, everything in the folder will be copied into the generated app and accessible. Source code (Click thumbnail to download app). Source code (Click thumbnail to download app). Source code (Click thumbnail to download app).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shrinkray
shrinkray Key Features
shrinkray Examples and Code Snippets
Community Discussions
Trending Discussions on shrinkray
QUESTION
I am writing an app in which I've run into a situation where I would like to animate a series of objects sequentially by iterating through a for loop.
When I run the app and click the button, I want the first label's text to shrink, wait for a 1.5s pause, the second label to shrink, wait, shrink, wait, shrink, etc. However, when it's run, though the app sleeps for each of the 1.5 seconds, none of the animations occur until after the for loop has run it's course, and then they all run at once.
I've pared the problem code out of my main code below and the issue still persists. Does anyone have a solution or an alternative? I suspect it has something to do with multithreading, but that's just a guess. I've tried decorating shrinkray with @mainthread, but it doesn't seem to make a difference.
...ANSWER
Answered 2017-Sep-20 at 01:31You are correct, you need multithreading for this. Because your main kivy loop gets affected when you loop and use time.sleep()
in the main thread. However, for you example, you only need one extra thread
to run the loop as the following (follow the comments):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shrinkray
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page