MCPcopy Create free account
hub / github.com/geekcomputers/Python / change_background

Function change_background

Pomodoro (tkinter).py:30–38  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

28
29# ---------------------------- BACKGROUND COLOR CHANGE FUNCTION ------------------------------- #
30def change_background(*args):
31 selected = bg_color_var.get()
32 new_color = bg_colors.get(selected, PINK)
33 window.config(bg=new_color)
34 canvas.config(bg=new_color)
35 label.config(bg=new_color)
36 tick_label.config(bg=new_color)
37 work_label.config(bg=new_color)
38 break_label.config(bg=new_color)
39
40
41# ---------------------------- NOTIFICATION FUNCTION ------------------------------- #

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected