-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation ux #350
Animation ux #350
Conversation
gooey_ui/components/__init__.py
Outdated
is_custom = value not in options | ||
custom = { | ||
"label": "Custom", | ||
"input": lambda label, key: number_input( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use of lambda discouraged
|
||
|
||
AnimationPrompts = list[_AnimationPrompt] | ||
ZoomSettings: dict[int, float] = {0: 1.004} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't have global variables that are shared across threads
) | ||
st.custom_radio( | ||
"""###### FPS (Frames per second)""", | ||
options=[2, 10, 24], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs refactor, values repeated
Q/A checklist
You can visualize this using tuna:
To measure import time for a specific library:
To reduce import times, import libraries that take a long time inside the functions that use them instead of at the top of the file: