Skip to main content

Posts

Showing posts with the label radio buttons

Image Editing Software | GUI Designing | Creating Radio Buttons

Hello Friends! Let us continue our development of Image editing software. In this tutorial, we will add radio buttons to our GUI. These radio buttons will be used to apply different types of color filters to the image. Check out the video below. Let us start by creating a new frame for radio buttons and let us anchor it to the north side. Frame3 = tk.Frame(window , height = 20 ) Frame3.pack( anchor =tk.N) Now, let's add radio buttons to this frame. We will be creating 5 radio buttons (pink, orange, blue, yellow, none) and pack them using the grid. yellowButton = tk.Radiobutton(Frame3 , text = "Yellow" , width = 20 , value = 1 , command =yellowButton_callback) yellowButton.grid( row = 0 , column = 0 ) blueButton = tk.Radiobutton(Frame3 , text = "Blue" , width = 20 , value = 2 , command =blueButton_callback) blueButton.grid( row = 0 , column = 1 ) orangeButton = tk.Radiobutton(Frame3 , text = "Orange" , width = 20 , value = 3 , command =orangeButton_call...