Hey Bro of codes 🙂 first of all thank you for your great content👌 As a newbie in the python world could you please give me a tip how to use the generated number values in a function to setup the brightness of a RGB-LCD. Many thanks in advance 🍻 Cheers
nvm I just used photoshop to resize the image i have downloaded but I can accept any programing tips to resize it directly on pycharm... P.S.: i tried installing pillow or PIL module but I cant import it now matter what i do
@@jamesorpilla actually pycharm can install it for you! go to file--> setting--> project --> python interpreter and click on the + button and search for PIL and click install. then you can import
1. to file explorer then type in png, then you will see the image of the hot and cold. 2.click the image click the 3 dots. Then, you will see resize image But only works on windows
I'd like to make an 8 channel mixing board. How would I install more slide bars? Is there a separate command for that, or would I just reiterate something like in the video? Thx
from tkinter import *
def submit():
print("The temperature is: "+ str(scale.get())+ " degrees C")
window = Tk()
hotImage = PhotoImage(file='hot.png')
hotLabel = Label(image=hotImage)
hotLabel.pack()
scale = Scale(window,
from_=100,
to=0,
length=600,
orient=VERTICAL, #orientation of scale
font = ('Consolas',20),
tickinterval = 10, #adds numeric indicators for value
#showvalue = 0, #hide current value
resolution = 5, #increment of slider
troughcolor = '#69EAFF',
fg = '#FF1C00',
bg = '#111111'
)
scale.set(((scale['from']-scale['to'])/2)+scale['to']) #set current value of slider
scale.pack()
coldImage = PhotoImage(file='cold.png')
coldLabel = Label(image=coldImage)
coldLabel.pack()
button = Button(window,text='submit',command=submit)
button.pack()
window.mainloop()
y
Feih
I❤ the bro code tutorials
GREAT VIDEO
Hey Bro of codes 🙂
first of all thank you for your great content👌
As a newbie in the python world could you please give me a tip how to use the generated number values in a function to setup the brightness of a RGB-LCD.
Many thanks in advance 🍻
Cheers
another perfect tutorial!! thanks as always :)
great tutorial :) but a question , when you creating a label object why you didn't insert the master "window" ?
Because;;; I like the video 👍
❤
bro it is very usefull
Great!
just curious: Why have you stopped using f strings this late in the tutorials?? 😵💫 did we go back in time or something?
great video!
thanks
Wow!
Ty bro!
thank u
شكرا
Tripta
👍
meow meow meow~!
u play game , noice
Hello Brocode, How can i resize the image fire and snowflakes? mine is so big
nvm I just used photoshop to resize the image i have downloaded but I can accept any programing tips to resize it directly on pycharm...
P.S.: i tried installing pillow or PIL module but I cant import it now matter what i do
@@jamesorpilla actually pycharm can install it for you!
go to file--> setting--> project --> python interpreter
and click on the + button and search for PIL and click install.
then you can import
1. to file explorer then type in png, then you will see the image of the hot and cold.
2.click the image click the 3 dots. Then, you will see resize image
But only works on windows
I'd like to make an 8 channel mixing board. How would I install more slide bars? Is there a separate command for that, or would I just reiterate something like in the video? Thx
i couldnt add the images properly, there is a huge space between the images and the scale isk how to fix that :(
yup
how to copy the code and from where ?
so i was lazy copy the code and remplece the hot and cold img for the pizza and hotdog XD
lol, I never thought about food on a sliding scale 🤔
I CANT FIND THE SCALE OPTION IN MY PYCHARM WHY ??
This is a 100 on my scale
Lol you didn't explain resolution, you edit skipped it 😂
yes and that i had to google it and ask chatgpt instead haha
y