@@ -33,7 +33,7 @@ def __init__(self):
33
33
# Create a UIManager
34
34
self .ui = UIManager ()
35
35
36
- # Create a anchor layout, which can be used to position widgets on screen
36
+ # Create an anchor layout, which can be used to position widgets on screen
37
37
anchor = self .ui .add (UIAnchorLayout ())
38
38
39
39
# Add a button switch to the other View.
@@ -43,7 +43,6 @@ def __init__(self):
43
43
texture = TEX_RED_BUTTON_NORMAL ,
44
44
texture_hovered = TEX_RED_BUTTON_HOVER ,
45
45
texture_pressed = TEX_RED_BUTTON_PRESS ,
46
- on_click = lambda : self .window .show_view (self .window .views ["other" ]),
47
46
)
48
47
)
49
48
@@ -78,7 +77,7 @@ def __init__(self):
78
77
super ().__init__ ()
79
78
self .background_color = arcade .uicolor .BLUE_PETER_RIVER
80
79
81
- # Create a anchor layout, which can be used to position widgets on screen
80
+ # Create an anchor layout, which can be used to position widgets on screen
82
81
anchor = self .add_widget (UIAnchorLayout ())
83
82
84
83
# Add a button switch to the other View.
@@ -88,7 +87,6 @@ def __init__(self):
88
87
texture = TEX_RED_BUTTON_NORMAL ,
89
88
texture_hovered = TEX_RED_BUTTON_HOVER ,
90
89
texture_pressed = TEX_RED_BUTTON_PRESS ,
91
- on_click = lambda : self .window .show_view (self .window .views ["my" ]),
92
90
)
93
91
)
94
92
0 commit comments