示例#1
0
 def pressed(self):
     """
     Function called on button touch event for button with id: testButton
     :return: None
     """
     PauseScreen.pause(pause_scene_name='pauseScene',
                       transition_back_scene='main',
                       text="Test",
                       pause_duration=1)
示例#2
0
    def pressed(self):
        """
        Function called on button touch event for button with id: testButton
        :return: None
        """
        #PauseScreen.pause(pause_scene_name='pauseScene', transition_back_scene='main', text="Test", pause_duration=5)

        PauseScreen.pause(pause_scene_name='pauseScene',
                          transition_back_scene='button',
                          text="LOADING BUTTON SCREEN FOR YOU",
                          pause_duration=2)
示例#3
0
 def clicked(self):
     PauseScreen.pause(pause_scene_name='pauseScene',
                       transition_back_scene='farm',
                       text="Test",
                       pause_duration=1)
示例#4
0
    def back(self):

        PauseScreen.pause(pause_scene_name='pauseScene',
                          transition_back_scene='main',
                          text="Test",
                          pause_duration=5)
示例#5
0
 def change_screens(self):
     PauseScreen.pause(pause_scene_name='pauseScene',
                       transition_back_scene='screen_two',
                       text="Test",
                       pause_duration=1)
示例#6
0
    def press(self):

        PauseScreen.pause(pause_scene_name='pauseScene',
                          transition_back_scene=FARMYARD_SCREEN_NAME,
                          text="Weeeeeee!",
                          pause_duration=1)