CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

2656125603072update whats problem when i click on button

Open ahmadhwetat opened this issue 2 years ago • 2 comments

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

image

ahmadhwetat avatar Apr 07 '24 12:04 ahmadhwetat

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???

JanPanthera avatar Apr 07 '24 12:04 JanPanthera

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

ahmadhwetat avatar Apr 07 '24 13:04 ahmadhwetat