Created
September 16, 2014 21:47
-
-
Save kived/b51f2b7652e56a8e9c34 to your computer and use it in GitHub Desktop.
Kivy: add widgets to 'after' canvas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_widget(self, widget, **kwargs): | |
super(MyWidget, self).add_widget(widget, **kwargs) | |
self.canvas.remove(widget.canvas) | |
self.canvas.after.add(widget.canvas) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment