filmov
tv
Python GUI Tutorial - 43 - Colorchooser - color dialog

Показать описание
in this video, you will learn how we can use colorchooser dialog in tkinter application. So here we'll learn how we pop up a window of colorchooser and pick a color and use it in our program. Color chooser will return the values in the form of tupple. there will be two values in tuple first one is the RGB value of the selected color and second one is the hex color code of selected color from colorchooser.
here is the code used in this video-
from tkinter import *
from tkinter import colorchooser
def call_me():
root = Tk()
button = Button(root, text="change color", command=call_me)
-------------------------------------
so i am sure your queries like-
2. how to use selected color from color dialogbox in tkinter?
3. how to change root window color on run time in tkinter?
4. how to change color of any widget in tkinter?
5. how to set color in hex code in tkinter?
6. how to get RGB value from colorchooser dialogbox in tkinter?
have been solved.
if you have any problem related with this video, then please let us know in commentbox. we'll reply as soon as possible.
contact us -
here is the code used in this video-
from tkinter import *
from tkinter import colorchooser
def call_me():
root = Tk()
button = Button(root, text="change color", command=call_me)
-------------------------------------
so i am sure your queries like-
2. how to use selected color from color dialogbox in tkinter?
3. how to change root window color on run time in tkinter?
4. how to change color of any widget in tkinter?
5. how to set color in hex code in tkinter?
6. how to get RGB value from colorchooser dialogbox in tkinter?
have been solved.
if you have any problem related with this video, then please let us know in commentbox. we'll reply as soon as possible.
contact us -
Комментарии