How to draw Random Coloured lines in Python tkinter

preview_player
Показать описание
In this video tutorial I look at how it is possible to draw random lines on to a Python tkinter Canvas. The lines will be of a random length, a random width and a random colour.
Рекомендации по теме
Комментарии
Автор

Easy to follow, fun to execute. Thanks!

eddiephimansone
Автор

How can we randomly assign foreground color in a textbox to each word in a sentence.

" I love the way you teach python" In this sentence I want to use assign two different colors i.e RED AND BLUE to random words or alternate words.

Hope to find an answer and thanks for these lovely tutorials.

ForOptomeLearning
Автор

Im currently working on how to make a canvas dynamically update when i give it a file which tells it were to draw pixels. if i run it as is it works and shows the image but when i try to put it into a loop so it updates itself however it doesn't pass the actual code to the main loop so unless i make an erroneos input the canvas doesn't appear how do i make code pass to the mainloop cos i don't understand how you do it here especially because you have a while loop before mainloop is called

joshua_colson
visit shbcf.ru