0

I am trying to change the colour of the scrollbar in my tkinter program but it's not changing please help.

from tkinter import *
import tkinter as tk
root = tk.Tk()
root.geometry('1000x800')
root.configure(bg='blue')
TextArea = Text(root, width=20,bg='#373B3F')
TextArea.place(x=350, y=40, width=250, height=250)
sscrollbar = tk.Scrollbar(TextArea, orient='vertical')
sscrollbar.pack(side=RIGHT, fill=Y)
TextArea.configure(yscrollcommand=sscrollbar.set)
sscrollbar.configure(command=TextArea.yview)
sscrollbar.configure(activebackground='red',bg='red')

root.mainloop()
coderoftheday
  • 1,852
  • 3
  • 6
  • 16

0 Answers0