Back

Sanskar

Keen Learner and Exp... • 21d

Day 29 of learning python as a beginner. Topic: GUI using tkinter. I was getting some suggestions that I should start learning tkinter and PyQt as those will pose some really interesting challenge and I will have some fun learning them. Therefore I have started learning tkinter and created a simple layout for a calculator I had created during my first few days of learning python. tkinter is a python library used for creating visual interfaces which a user interacts with in order to interact with the function. You can say that it shows result in a more beautified way than the console. tk.Tk() creates a separate window where I can create the UI. I used for loop to ensure that both the rows and columns fills the frame so that there's no extra space left. I then created a list named buttons to contain several tuples which carry the details of what and where each button carries and where it is located. The I created another for loop to actually assigns the data to each button and arrange those buttons in a grid using .grid() function. Although I haven't added any functionality to the calculator (I already have its program just need to make some minor changes whenever needed) it was a really fun and exciting experience creating the GUI. Also here's my code and it's result.

Reply
1

More like this

Recommendations from Medial

Sanskar

Keen Learner and Exp... • 20d

Day 30 of learning python as a beginner. Topic: making a fully functional calculator. Yesterday I got introduced to tkinter and was successful in creating a basic graphical layout for the calculator and today I added logic into it and now I finally

See More
Reply
2

Sanskar

Keen Learner and Exp... • 8d

Day 1 of learning AI/Ml as a beginner. Topic: Streamlit I have decided to start learning about the core AI/ML concepts (while also learning mathematics side by side) however you may say that streamlit is not a core AI/ML concept they are NLP, Deep

See More
Reply
2

Sanskar

Keen Learner and Exp... • 1m

Day 1 of learning python as a beginner. Topic: Variables and Datatypes Variables are like containers which are used to store various datatypes in it. These datatypes includes string, Integer (whole number), floating point (decimal numbers), boo

See More
Reply
3
Image Description
Image Description

Harsh Sharma

Motivation > Discipl... • 8m

How can I start learning AI/ML. I have completed Python , Numpy and Pandas what should I start learning now?

6 Replies
3
Image Description
Image Description

Inayat Hasan

Software engineer • 1y

[This post has been deleted by the creator]

4 Replies
5

Inayat Hasan

Software engineer • 1y

[This post has been deleted by the creator]

Reply
5
Image Description
Image Description

Sheiden Borges

Entrepreneur | E-com... • 6m

Just learning about entrepreneurship is like teaching someone about how all the buttons of a aeroplane work and expect them to fly it after that

2 Replies
1
4
Image Description

Yashavath

Yash • 8m

Hi! I’m Yashavanth. I know Python, Machine Learning, and C. Looking for a startup where I can learn and grow. Let’s connect!

1 Reply
2

Sanskar

Keen Learner and Exp... • 1m

A few days ago I started learning python and casually posted about a program I created at that time (a basic quiz to be more specific). I just realised that it got approx 55k views on my that post on reddit. A lot of people appreciated my code and m

See More
Reply
8

VISHAL SEO

Founder of Find Infl... • 9m

How Does the Influencer Price Calculator Work? Using the Influencer Price Calculator is easy: Enter your Instagram or YouTube profile details. The calculator analyzes your profile metrics, such as followers and engagement rate. Get a customized pric

See More
Reply
3

Download the medial app to read full posts, comements and news.