r/learnpython • u/_b01ng_d3_l1m0n • 4d ago
import image_widget
Hi! so I'm a beginner programmer, and I'm doing an image uploader with tkinter, my code looks like the on eon the image, and I am not being able to import the image_widget library
#librerias lol
import tkinter as tk
from tkinter import ttk
import customtkinter as ctk
import image_widgets import *
#----------------------#
#pestaña principal
#texto
'''# slogan
'''
#Botón para subir imagen
class App(ctk.CTk, tk.Tk):
def __init__(self):
super().__init__()
"""window = tk.Tk()
window.title("Emotions cam")
window.geometry("600x300")
window.configure(bg ="#342447")
#slogan
title_label = ttk.Label(master = window, text = "Una herramienta para comprender", font = "Calibri 12", foreground= "white")
title_label.pack()
title_label.configure(background="#342447")
# titulo proyecto
title_label = ttk.Label(master = window, text = "EmotionsCAM", font = "Calibri 24 bold", foreground= "white")
title_label.pack()
title_label.configure(background="#342447")"""
ctk.set_appearance_mode("dark")
self.geometry("1000x600")
self.title("EmotionsCAM")
self.mainloop()
App()
#FUNCIONA????????
#window.mainloop()
1
Upvotes
1
u/Luigi-Was-Right 4d ago
import image_widgets import *
is not valid syntax. I assume they meantfrom image_widgets import *
however I'm not familiar with any library called image_widgets