TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.33k stars 1.07k forks source link

2656125603072update whats problem when i click on button #2362

Open ahmadhwetat opened 5 months ago

ahmadhwetat commented 5 months ago

when i click at button , the button is working but the console show that mistake

image

JanPanthera commented 5 months ago

can you give us a code, minimized version that reproduces this problem so we can try our selfs? without code we can't do anything, since most of us don't have this error. edit: also more infor would be awesome, which os, libraries? what have you done? etc???

ahmadhwetat commented 5 months ago

can you give us a code, minimized version that reproduces this problem so we can try our selfs? without code we can't do anything, since most of us don't have this error. edit: also more infor would be awesome, which os, libraries? what have you done? etc???

sure ,

def logiin():
    con = sqlite3.connect("CadetsNew.db")
    cr = con.cursor()
    find_user = ('SELECT * FROM cadets WHERE phone_number = ? and name = ?')
    cr.execute(find_user, [(uservar.get()), (passvar.get())])
    result = cr.fetchall()
    open_choice_panel_through_main_panel())

loginbtn = ctk.CTkButton(login, text="sign", fg_color=btnc, bg_color="white",hover_color=bgc, text_color=ftcl,height=45 ,width=255,corner_radius=30, font=('Simplified Arabic bold', 15), command=logiin).place(x=185, y=520)

libraries i used

import csv
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from tkinter import filedialog
import sqlite3
import io
from PIL import ImageTk, Image
import pandas as pd
import customtkinter as ctk