Code in Python
Machine Learning and Deep Learning Blogs
search

Author: Rahul Choudhary (page 1 of 2)

How to create a Message Box in Tkinter

In this chapter, we will learn how to make Tkinter message box. It is equivalent to alert in javascript, pop-ups that appear on the screen. They can either give you a plain text, like a piece of information or they, can also ask you a question like “do you want to leave this site”, yes […]

Learn How to add a Status bar in Tkinter

In the previous chapter, we learned how to make toolbar and drop down menus. In this chapter, we will learn how to make a status bar. It is just a text written on the bottom of the window that shows the status of the file on which you are working on or any other thing. […]

How to Create Drop Down Menus in Tkinter

In this chapter, we will learn how to build a basic framework of a common piece of software and that includes, making the drop down menus. Every software we buy has menus at the top that drop down when clicked. We will also learn how to make a toolbar. This is all built-in. we don’t […]

Learn how to use Classes with Tkinter

In this chapter we will learn how to use classes with Tkinter and whenever we work with a professional software or whenever we will make more than just simple buttons, this is the standard technique that we will use because it is standard not only for making GUI applications but also to make software. We […]

How to implement Mouse Click Event in Tkinter

Whenever we use Tkinter, we are not just limited to bind one function to one widget. With widgets, we can bind multiple events to it depending on what we do with that widget, it behaves in different kind of ways. We can have a button, and if we left click it, something happens and if […]

How to bind functions to Tkinter layout

We know how to make a layout in a couple of different ways. We know how to organize our widgets around our screen. Let’s learn how to make GUI actually interact with our computer program. In this chapter, we will learn how to bind functions to widgets. In other words, how we can do something […]

Working with Grid Layout in Tkinter

In this chapter, we are going to organize the widgets in the main window in a grid layout. Previously, we used pack(), which just places them on the screen. We could just change the position of the widget i.e., we could place them one over other or side by side. But it didn’t give you […]

How to fit widgets in your Tkinter layout

In this chapter, you will learn how to fit widgets in our layout. The basic structure of the program is going to be the same i.e., from tkinter import * var = Tk() var.mainloop() So let’s make some labels. We will not add any frame in this window. We will just add labels in our […]

How to Organize your Layout in Tkinter

In the last chapter we learned how to make a very simple window, we also learned how to add text and also how to make our window appear constantly without disappearing quickly. Before we add a bunch of widgets, we have to learn how to organize the layout. From the last chapter, from tkinter import […]

Getting Started with Tkinter in Python

Here you will learn how to make GUI applications in Tkinter using Python. If this is first you are ever experiencing python, then we highly recommend you to check out our python tutorials. They will teach you the basics of Python language and in that way, you will be ready to jump into this stuff. […]

Older posts

© 2018 Code in Python