mirror of https://github.com/kivy/kivy.git
fix example
This commit is contained in:
parent
33d77a98a5
commit
77977b8930
|
@ -71,17 +71,15 @@ class cut_copy_paste(TabbedPannel):
|
|||
_anim.start(l[0])
|
||||
|
||||
def _on_complete(*lt):
|
||||
if l[0].parent:
|
||||
l[0].parent.remove_widget(l[0])
|
||||
self.clear_widgets()
|
||||
self.add_widget(l[0])
|
||||
anim = Animation(color = (1, 1, 1, 1), d =.23, t = 'in_quad')
|
||||
start_anim(anim)
|
||||
|
||||
|
||||
anim.bind(on_complete = _on_complete)
|
||||
start_anim(anim)
|
||||
if l[0].parent:
|
||||
l[0].parent.remove_widget(l[0])
|
||||
|
||||
|
||||
|
||||
class TabShowcase(FloatLayout):
|
||||
|
|
Loading…
Reference in New Issue