Python GUI with Tkinter Tutorial | Beginner Friendly | Sorting Algorithm Visualization #1

preview_player
Показать описание
Creating a dynamic tkinter python GUI using its Combobox, Button and Label classes. We create multiple Sections in our root frame, one canvas and one sub-frame which we than use to draw a bar graph and place the user inputs.
We also generate random data using python's random library and the user input. After we have a generated random dataset, we than visualize the given data as a normalized bar graph.
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
(if you want to grab me a cup of coffee)
---------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

One of the best tutorial ever seen. Thank you!!

faustopf-.
Автор

This is great. Thank you so much. I've been looking for this for a couple days. Thank you!!!
You could do a tutorial of pathfinding visualization with a grid using A* or something, I think that's super interesting. Thank you for this playlist!

name
Автор

Just about 400 subs man? You're underrated af, unskilled tiktokers who do dumb shit gets millions of followers but talented people like you are no where to be found!. World is cruel man. Keep this up bud, you're doing a great job! <3

gigachad
Автор

Thank you much!!!!
Great Tutorial, especially for beginners like me. I can understand everything 👌

MrUnknown-ilpm
Автор

Sir little help, in your code when you putted 50 values it exceeded the screen from right.

SarveshGupta-buho
Автор

just wanted to know this project comes under which domain? ML or web dev?

Sak.She_
Автор

Can you please do one for Insertion Sort?

GameXT
Автор

Hey im stuck. I tried to do all the sorts one below other in three seperate divisions. When i run i can visualize one after the other. How to visualize all three at a time.

savithac
Автор

Hi, I appreciate your video on this! Very helpful.

However there is one issue I have, the bars 'break' after the data is normalized, such that the max value in the dataset shows its bar correctly, however the rest of the bars are just a couple pixels at the bottom, as if they had values of 1 or 2 in the data. This happened in my code after following the tutorial, as well as after I copied your repo code into a new python file and ran it. I don't think the normalize code works anymore?

Any help would be appreciated!

EDIT: I think I have fixed it, I just used the numPy library to normalize the data since it has a normalize function. It is the line 'normalized_data = [i / max(data) for i in data]' that doesn't seem to work for some reason, however this does:

import numpy as np

# replace 'normalized_data = [i / max(data) for i in data]' with these two lines...
normalize_data = np.linalg.norm(data)
new_data = data / normalize_data

itsmeolee
Автор

This is painful to watch and follow along with

It's like you're trying to get the video as short as possible.

PlexusMC