Skip to main content

Posts

Showing posts with the label tkinter buttons

Image Editing Software | GUI Designing | Creating Sliders

 Hello friends! Let us continue developing our GUI of image editing software. You can check out the previous post by clicking here , where we have learned to create a window and add a few buttons to it. In this post, we will be adding sliders to our GUI which will be used to adjust the brightness and contrast of the image. You can check out the video below. We will continue developing our previous code. For placing the sliders we will use another frame. For creating the frame use the code below.  Frame2 = tk.Frame(window , height = 20 ) Frame2.pack( anchor =tk.NW) Frame2 will be holding the sliders of brightness and contrast adjustments. We have anchored the Frame2 to the northwest corner in our window. Let us now create the sliders for our window.  brightnessSlider = tk.Scale(Frame2 , label = "Brightness" , from_ = 0 , to = 2 , orient =tk.HORIZONTAL , length =screen_width , resolution = 0.1 , command =brightness_callback) brightnessSlider.pack...