Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2656125603072update whats problem when i click on button #2362

Open
ahmadhwetat opened this issue Apr 7, 2024 · 2 comments
Open

2656125603072update whats problem when i click on button #2362

ahmadhwetat opened this issue Apr 7, 2024 · 2 comments

Comments

@ahmadhwetat
Copy link

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

image

@JanPanthera
Copy link

JanPanthera commented Apr 7, 2024

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
Copy link
Author

ahmadhwetat commented Apr 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants