About 4,440 results
Open links in new tab
  1. CTkImage | CustomTkinter

    The CTkImage is not a widget itself, but a container for up to two PIL Image objects for light and dark mode. There's also a size tuple which describes the width and height of the image independent of scaling.

  2. python - Size of image in customtkinter inside a label - Stack Overflow

    Dec 29, 2023 · I noticed that you are using customtkinter, you can resize change the size of the picture by adding the size variable in the CTKImage function, here's how: imgg = CTkImage(img,size(600,600) label = customtkinter.CTkLabel(master=frame, image=imgg, text='') …

  3. python - Custom Tkinter Images - Stack Overflow

    Jan 6, 2022 · I have an image called back-button.png in the folder img. This is my code: from tkinter import * import customtkinter as ctk root = Tk() ctk.CTkLabel(root, text = 'This is a label', text_font =('Verdana', 17)).pack(side = LEFT, pady = 11) img = PhotoImage(file="./img/back-button.png") ctk.CTkButton(root, image = img).pack(side = LEFT) root ...

  4. How To Add An Image Using Customtkinter CTkImage? - python

    First, we need to open an image using the Image module. Next, we need to pass this image to the CTkImage class. Lastly, we need to pass this image to the CTkLabel class.

  5. python - How to use image as button in customtkinter ... - Stack Overflow

    Feb 12, 2023 · Add text = "" at the line you set the image for the button. self.button = customtkinter.CTkButton(master=self, image=img, text="")

  6. Build a Basic Form GUI using CustomTkinter module in Python

    Apr 24, 2025 · In this article, we are going to learn how to build a simple form GUI using CustomTkinter in Python. CustomTkinter: It is an extension of the Tkinter module in python. It provides additional UI elements compared to Tkinter and they can be customized in …

  7. Images in CustomTkinter – Tkinter CustomTkinter 17

    Dec 5, 2023 · In this video we’ll look at the Images widget/utility in CustomTkinter and Python. The CTkImage utility lets you use images in easily scalable ways with Tkinter. Resizing images is a hassle with regular Tkinter, but this utility/widget makes it super easy! Python Code: ctk_images.py (Github Code)

  8. How insert pictures in CustomTkinter - GitHub

    May 2, 2023 · import customtkinter as ctk from customtkinter import CTkImage from PIL import ImageTk, Image # Create an instance of tkinter window win = ctk.CTk() # Define the geometry of the window win.geometry("500x500") frame = ctk.CTkFrame(win, width=500, height=500) frame.pack() frame.place(anchor='center', relx=0.5, rely=0.5) # Create an object of ...

  9. CustomTkinter Tutorial: Creating Modern GUI in Tkinter

    Apr 11, 2023 · In this tutorial we will be discussing a new library called “customtkinter” which introduces a set of new widgets, themes, and styles for creating Modern GUI in Tkinter. Getting Started To use this library, you will need the tkinter and customtkinter libraries.

  10. CustomTk Image in frame · TomSchimansky CustomTkinter - GitHub

    from PIL import Image import customtkinter import os IMAGE_WIDTH = desired_width IMAGE_HEIGHT = desired_height IMAGE_PATH = 'image/image.png' ... your_image = customtkinter.CTkImage(light_image=Image.open(os.path.join(IMAGE_PATH)), size=(IMAGE_WIDTH , IMAGE_HEIGHT)) label = customtkinter.CTkLabel(master=your_master, image=your_image, text ...

Refresh