@@ -47,7 +47,6 @@ def __init__(self, logger) -> None:
4747 def setup_menus (self ) -> None :
4848 self .animal_menu = self .create_animal ()
4949 self .task_menu = self .create_task ()
50- self .weight_menu = self .create_weight ()
5150 self .main_menu = self .create_main ()
5251
5352 def mainloop (self ) -> None :
@@ -128,15 +127,6 @@ def create_main(self) -> "pygame_menu.Menu":
128127 background_color = (128 , 128 , 128 ),
129128 ).translate (630 , 290 )
130129
131- menu .add .button (
132- "Weight" ,
133- self .weight_menu ,
134- align = pygame_menu .locals .ALIGN_LEFT ,
135- float = True ,
136- padding = (10 , 20 , 10 , 20 ),
137- background_color = (128 , 128 , 128 ),
138- ).translate (10 , 310 )
139-
140130 menu .add .button (
141131 "Power off" ,
142132 self .shutdown ,
@@ -177,34 +167,6 @@ def create_animal(self):
177167
178168 return menu_animal
179169
180- def create_weight (self ):
181- menu_weight = pygame_menu .Menu (
182- "" ,
183- self .SCREEN_WIDTH ,
184- self .SCREEN_HEIGHT ,
185- center_content = False ,
186- onclose = pygame_menu .events .EXIT ,
187- theme = self .theme ,
188- )
189- menu_weight .add .label (
190- "Enter animal weight: " ,
191- font_size = 20 ,
192- )
193- self .curr_weight = ""
194- menu_weight .add .vertical_margin (5 )
195- self .weight_screen = menu_weight .add .label (
196- "" ,
197- background_color = None ,
198- margin = (10 , 0 ),
199- selectable = True ,
200- selection_effect = None ,
201- )
202- menu_weight = self .add_num_pad (
203- menu_weight , self .log_animal_weight , self .weight_screen
204- )
205-
206- return menu_weight
207-
208170 def create_task (self ):
209171 menu_task = pygame_menu .Menu (
210172 "" ,
0 commit comments