本文整理汇总了Python中kivy.uix.scatter.Scatter.auto_bring_to_front方法的典型用法代码示例。如果您正苦于以下问题:Python Scatter.auto_bring_to_front方法的具体用法?Python Scatter.auto_bring_to_front怎么用?Python Scatter.auto_bring_to_front使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kivy.uix.scatter.Scatter
的用法示例。
在下文中一共展示了Scatter.auto_bring_to_front方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pointbtn
# 需要导入模块: from kivy.uix.scatter import Scatter [as 别名]
# 或者: from kivy.uix.scatter.Scatter import auto_bring_to_front [as 别名]
def pointbtn(self, *args):
"""
Point current button clicked
Use of object and its scatter
"""
scat = Scatter()
scat.do_translation = False
scat.do_rotation = False
scat.do_scale = False
scat.auto_bring_to_front = True
imag = Image(source='medias/ui/cible.png')
scat.add_widget(imag)
scat.center = self.center
self.add_widget(scat)
# Add button object ref and scatter object ref to list
self.main.slide_window.append((self, scat))
# Test if window size slider is always 1 and kills old scatter
if len(self.main.slide_window) > 1:
killed_elem = self.main.slide_window.pop(0)
killed_elem[0].remove_widget(killed_elem[1])