Back

Sanskar

Keen Learner and Exp... • 23h

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

Image Description
Image Description

Harsh Sharma

Motivation > Discipl... • 7m

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

6 Replies
3

Sanskar

Keen Learner and Exp... • 29d

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

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 • 7m

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... • 19d

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
Image Description
Image Description

Rakshak Gupta

 • 

Quixy • 11m

why can't we have different types of button with design as well as zippers same old zippers and buttons for the buttons if it is an expensive suite we will get the different types of buttons we have the same old buttons and zippers thousand of hears

See More
2 Replies
5

VISHAL SEO

Founder of Find Infl... • 8m

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.