-
Notifications
You must be signed in to change notification settings - Fork 6
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
13.) Cleanup rotation example #20
base: development
Are you sure you want to change the base?
Conversation
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.
LGTM (untested)
from kivy3 import Scene | ||
from kivy3 import Renderer | ||
from kivy3 import PerspectiveCamera | ||
from kivy3 import Geometry | ||
from kivy3 import Material | ||
from kivy3 import Mesh |
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.
I'm still not convinced it's the most Pythonic way to deal with this 😅
For instance look how black
or isort
are dealing with imports
Edit: Just sharing my though, but don't change it, I think rnixx prefers it this way and it's consistent with the other changes
examples/rotation/main.py
Outdated
@@ -158,12 +153,13 @@ def build(self): | |||
root.controls = controls | |||
box.add_widget(controls) | |||
|
|||
return box | |||
def _adjust_aspect(inst, val): |
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.
Please make _adjust_aspect a class member again.
No description provided.