from tkinter import *
import tkinter.messagebox as tmsg

def getdollar():
    print("we got your request")
    tmsg.showinfo("Amount Credited",f"{myslider2.get()} amount is tarnsfered to your account")
    
root= Tk()
root.geometry("523x432")
root.title("Slider")
def set_pop(e):
    if int(myslider2.get())<=40:
        myslider2.config(troughcolor="green")
    elif int(myslider2.get())<=70 and int(myslider2.get())>=40:
        myslider2.config(troughcolor="red")
    elif int(myslider2.get())<=80 and int(myslider2.get())>=70:
        myslider2.config(troughcolor="white")
# myslider= Scale(root, from_=0, to=100)
# myslider.pack()
Label(root, text="How many dollars u want").pack(padx=23)

myslider2= Scale(root, from_=0, to=100, orient=HORIZONTAL, tickinterval=50, length= 300,bg="skyblue",fg="green",font="arialblack 20 bold",label="rounds",troughcolor="blue",command=set_pop)
# myslider2.set(23)
myslider2.pack(fill=X)

Button(text="Get dollars",relief=RAISED, command=getdollar).pack(padx=23)

root.mainloop()
95ef645159ecbff9feffe7de4ef683b967ed079d
<mask token>


def getdollar():
    print('we got your request')
    tmsg.showinfo('Amount Credited',
        f'{myslider2.get()} amount is tarnsfered to your account')


<mask token>


def set_pop(e):
    if int(myslider2.get()) <= 40:
        myslider2.config(troughcolor='green')
    elif int(myslider2.get()) <= 70 and int(myslider2.get()) >= 40:
        myslider2.config(troughcolor='red')
    elif int(myslider2.get()) <= 80 and int(myslider2.get()) >= 70:
        myslider2.config(troughcolor='white')


<mask token>

<mask token>


def getdollar():
    print('we got your request')
    tmsg.showinfo('Amount Credited',
        f'{myslider2.get()} amount is tarnsfered to your account')


<mask token>
root.geometry('523x432')
root.title('Slider')


def set_pop(e):
    if int(myslider2.get()) <= 40:
        myslider2.config(troughcolor='green')
    elif int(myslider2.get()) <= 70 and int(myslider2.get()) >= 40:
        myslider2.config(troughcolor='red')
    elif int(myslider2.get()) <= 80 and int(myslider2.get()) >= 70:
        myslider2.config(troughcolor='white')


Label(root, text='How many dollars u want').pack(padx=23)
<mask token>
myslider2.pack(fill=X)
Button(text='Get dollars', relief=RAISED, command=getdollar).pack(padx=23)
root.mainloop()

<mask token>


def getdollar():
    print('we got your request')
    tmsg.showinfo('Amount Credited',
        f'{myslider2.get()} amount is tarnsfered to your account')


root = Tk()
root.geometry('523x432')
root.title('Slider')


def set_pop(e):
    if int(myslider2.get()) <= 40:
        myslider2.config(troughcolor='green')
    elif int(myslider2.get()) <= 70 and int(myslider2.get()) >= 40:
        myslider2.config(troughcolor='red')
    elif int(myslider2.get()) <= 80 and int(myslider2.get()) >= 70:
        myslider2.config(troughcolor='white')


Label(root, text='How many dollars u want').pack(padx=23)
myslider2 = Scale(root, from_=0, to=100, orient=HORIZONTAL, tickinterval=50,
    length=300, bg='skyblue', fg='green', font='arialblack 20 bold', label=
    'rounds', troughcolor='blue', command=set_pop)
myslider2.pack(fill=X)
Button(text='Get dollars', relief=RAISED, command=getdollar).pack(padx=23)
root.mainloop()

from tkinter import *
import tkinter.messagebox as tmsg


def getdollar():
    print('we got your request')
    tmsg.showinfo('Amount Credited',
        f'{myslider2.get()} amount is tarnsfered to your account')


root = Tk()
root.geometry('523x432')
root.title('Slider')


def set_pop(e):
    if int(myslider2.get()) <= 40:
        myslider2.config(troughcolor='green')
    elif int(myslider2.get()) <= 70 and int(myslider2.get()) >= 40:
        myslider2.config(troughcolor='red')
    elif int(myslider2.get()) <= 80 and int(myslider2.get()) >= 70:
        myslider2.config(troughcolor='white')


Label(root, text='How many dollars u want').pack(padx=23)
myslider2 = Scale(root, from_=0, to=100, orient=HORIZONTAL, tickinterval=50,
    length=300, bg='skyblue', fg='green', font='arialblack 20 bold', label=
    'rounds', troughcolor='blue', command=set_pop)
myslider2.pack(fill=X)
Button(text='Get dollars', relief=RAISED, command=getdollar).pack(padx=23)
root.mainloop()

from tkinter import *
import tkinter.messagebox as tmsg

def getdollar():
    print("we got your request")
    tmsg.showinfo("Amount Credited",f"{myslider2.get()} amount is tarnsfered to your account")
    
root= Tk()
root.geometry("523x432")
root.title("Slider")
def set_pop(e):
    if int(myslider2.get())<=40:
        myslider2.config(troughcolor="green")
    elif int(myslider2.get())<=70 and int(myslider2.get())>=40:
        myslider2.config(troughcolor="red")
    elif int(myslider2.get())<=80 and int(myslider2.get())>=70:
        myslider2.config(troughcolor="white")
# myslider= Scale(root, from_=0, to=100)
# myslider.pack()
Label(root, text="How many dollars u want").pack(padx=23)

myslider2= Scale(root, from_=0, to=100, orient=HORIZONTAL, tickinterval=50, length= 300,bg="skyblue",fg="green",font="arialblack 20 bold",label="rounds",troughcolor="blue",command=set_pop)
# myslider2.set(23)
myslider2.pack(fill=X)

Button(text="Get dollars",relief=RAISED, command=getdollar).pack(padx=23)

root.mainloop()