@@ -219,30 +219,26 @@ def new_image(self, cat=None):
219219
220220 # play a jumpscare sound
221221 mixer .music .load (
222- os .path .join (self .dir , os .path .join (
223- "res" , os .path .join ("sounds" , "jumpscare.mp3" ))
224- )
225- )
222+ os .path .join (
223+ self .dir , os .path .join (
224+ "res" , os .path .join ("sounds" , "jumpscare.mp3" ))))
226225 mixer .music .play ()
227226
228227 # make a button to allow the user to pass through the image
229228 # Note: since everyone likes scary monsters, only make a Like button
230229 tk .Button (
231- self .frame , text = "Like" , background = "green" ,
232- command = self .new_image
233- ).pack (side = tk .BOTTOM )
230+ self .frame , text = "Like" , background = "green" ,
231+ command = self .new_image ).pack (side = tk .BOTTOM )
234232
235233 # image was not a jumpscare, don't do jumpscare things
236234 else :
237235 # setting up like and dislike buttons on opposite sides of the screen
238236 tk .Button (
239- self .frame , text = "Like" , background = "green" ,
240- command = self .new_image
241- ).pack (side = tk .RIGHT )
237+ self .frame , text = "Like" , background = "green" ,
238+ command = self .new_image ).pack (side = tk .RIGHT )
242239 tk .Button (
243- self .frame , text = "Dislike" , background = "red" ,
244- command = self .new_image
245- ).pack (side = tk .LEFT )
240+ self .frame , text = "Dislike" , background = "red" ,
241+ command = self .new_image ).pack (side = tk .LEFT )
246242
247243 # defining button functions
248244 def back_to_photo ():
@@ -280,26 +276,22 @@ def get_bio():
280276
281277 # setting up like/dislike/Back to Photo buttons on the bio screen
282278 tk .Button (
283- self .frame , text = "Like" , background = "green" ,
284- command = self .new_image
285- ).pack (side = tk .RIGHT )
279+ self .frame , text = "Like" , background = "green" ,
280+ command = self .new_image ).pack (side = tk .RIGHT )
286281 tk .Button (
287- self .frame , text = "Dislike" , background = "red" ,
288- command = self .new_image
289- ).pack (side = tk .LEFT )
282+ self .frame , text = "Dislike" , background = "red" ,
283+ command = self .new_image ).pack (side = tk .LEFT )
290284 tk .Button (
291- self .root , text = "Back To Photo" , background = "blue" ,
292- command = back_to_photo
293- ).pack (side = tk .BOTTOM )
285+ self .root , text = "Back To Photo" , background = "blue" ,
286+ command = back_to_photo ).pack (side = tk .BOTTOM )
294287
295288 # packing the frame
296289 self .frame .pack ()
297290
298291 # making and packing the Bio button for users to look at the cat's bio
299292 tk .Button (
300- self .frame , text = "Bio" , background = "blue" ,
301- command = get_bio
302- ).pack (side = tk .BOTTOM )
293+ self .frame , text = "Bio" , background = "blue" ,
294+ command = get_bio ).pack (side = tk .BOTTOM )
303295
304296 # packing the frame
305297 self .frame .pack ()
0 commit comments