EMPLOYEE MANAGEMENT SYSTEM PYTHON CUSTOMTKINTER MODERN TKINTER PROJECT WITH SQLITE3 DATABASE

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • This video explains how to create a modern tkinter employee management system project with sqlite3 database in python using customtkinter.
    ‐--------------------------------------------------------
    To support the channel:
    / @code_room
    -------------------------------------------------------
    Python Programming Course:
    • PYTHON PROGRAMMING COU...
    Python Problem Solving:
    • PYTHON PROBLEM SOLVING
    Python Projects:
    • PYTHON TKINTER GUI PRO...
    Data Science Questions and Answers :
    • DATA SCIENCE SOLVED QU...
    Data Science Python Pandas Full Course :
    • Playlist
    Image and Video Processing Questions and Answers :
    • DIGITAL IMAGE PROCESSI...
    -------------------------------------------------------
    00:00 Project Demo
    1:47 Project Setup
    2:12 Database Connection & Functions
    6:05 Window
    7:08 Labels & Entry Boxes & Combo Box
    10:15 Buttons
    11:30 Tree View
    14:12 Insert Data To Tree View
    15:18 Insert Function
    18:15 New Employee Function
    19:56 Display Data In Entry Boxes
    22:05 Delete & Update Functions

Komentáře • 80

  • @CODE_ROOM
    @CODE_ROOM  Před 10 měsíci +1

    You can now join the channel from here 👇:
    czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
    to access ALL source codes of Python GUI projects in this playlist 👇 :
    czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @BolatDosbolatov
    @BolatDosbolatov Před měsícem +1

    For anyone who wants to try to copy this project. Do it, it worked for me. Finally, something that really works on tutorials. I really liked it! I followed him completely and my code worked!

  • @bleedy7589
    @bleedy7589 Před 11 měsíci +2

    Thank you, my friend. This video is very useful

  • @ea1766
    @ea1766 Před 11 měsíci

    Good man

  • @mohamedalhashmi1386
    @mohamedalhashmi1386 Před 8 měsíci

    Thank you a lot. It was a useful APP.

    • @CODE_ROOM
      @CODE_ROOM  Před 8 měsíci

      You are most welcome.
      If you found the channel helpful, kindly consider SUBSCRIBING.😊🔔✅️

  • @Drbadvibe
    @Drbadvibe Před 3 měsíci

    As of April 16,2024 @ 26:16 the command tree.focus(' ') no longer works in the clear function. Instead I used in the update function for its first line selected_item = tree.selection() instead of tree.focus() This seems to work as expected for me.
    BTW, great tutorial. It hits all the pieces and part perfectly and now I can create my own database back ended GUI app.

  • @shafiqsobhani
    @shafiqsobhani Před 10 měsíci

    Awesome

  • @rachidaajbayr2867
    @rachidaajbayr2867 Před 2 měsíci

    Thanks a lot

  • @NOTHING-uk4cw
    @NOTHING-uk4cw Před 5 měsíci

    ❤❤❤❤

  • @svnbeats6700
    @svnbeats6700 Před 6 měsíci

    dude thanks to you I been getting better at customtkinter thank you so much, just wanted to say that. do you have any knowledge on PYQT5 ?

    • @CODE_ROOM
      @CODE_ROOM  Před 6 měsíci

      Glad it helps!
      Yes, I have some knowledge about PyQt.

    • @svnbeats6700
      @svnbeats6700 Před 6 měsíci

      do you have some tutorials @@CODE_ROOM

    • @CODE_ROOM
      @CODE_ROOM  Před 6 měsíci

      Currently no, but will do in the future.✅️

  • @JhonorlyOlaco
    @JhonorlyOlaco Před 3 měsíci

    error in line bro from tk(module) database?

  • @rhenchiri
    @rhenchiri Před rokem +3

    Great work,i'm new in programming,i hope you send the code if possible,Thanks anyway.....

    • @CODE_ROOM
      @CODE_ROOM  Před rokem

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @Venus_network
    @Venus_network Před rokem

    Bro I have an annoying issue, the tree view section is bugging.. I run the code on the laptop screen and the tree view isn’t perfectly sized, when I move it to the other screen it sizes better than the laptop screen, but still isn’t showing the status on the other screen, please help 🙏🏼

    • @CODE_ROOM
      @CODE_ROOM  Před rokem

      Check this:
      import tkinter as tk
      from tkinter import ttk
      def update_treeview_size(event):
      # Get the available width and height of the window
      width = root.winfo_width()
      height = root.winfo_height()
      # Calculate the new size for the TreeView
      new_width = int(width * 0.8) # Adjust the percentage as needed
      new_height = int(height * 0.8)
      # Set the new size for the TreeView
      treeview.config(width=new_width, height=new_height)
      root = tk.Tk()
      # Create a TreeView widget
      treeview = ttk.Treeview(root)
      treeview.pack(fill='both', expand=True)
      # Bind the event to update the TreeView size when the window is resized
      root.bind('', update_treeview_size)
      root.mainloop()

  • @josemarquez-py9wp
    @josemarquez-py9wp Před rokem +1

    muy bueno tu programapuedes compatir el codigo fuente..??

    • @CODE_ROOM
      @CODE_ROOM  Před rokem

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @ahmedsaliem7041
    @ahmedsaliem7041 Před 2 měsíci

    Thanks a lot, but what about if I need another field for image and pdf files, how to insert into tkinter and database, and make retrieve them by searching and save the data of searching in pdf or word or excel file. Thanks again

    • @CODE_ROOM
      @CODE_ROOM  Před 2 měsíci +1

      Will try to make a tutorial about this in the future :)

    • @ahmedsaliem7041
      @ahmedsaliem7041 Před 2 měsíci

      @CODE_ROOM Thanks a lot 🙏🏼 🙏🏼

  • @user-nw7uz6ly3p
    @user-nw7uz6ly3p Před 2 měsíci

    Really nice project, how can i find the whole project??

    • @CODE_ROOM
      @CODE_ROOM  Před 2 měsíci

      ✨️Subscribe for more quizzes✨️

  • @advaitshinde6609
    @advaitshinde6609 Před 3 měsíci +3

    yes but how do i access the source code no link just a link to the playlist ?

    • @CODE_ROOM
      @CODE_ROOM  Před 3 měsíci +1

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin

    • @advaitshinde6609
      @advaitshinde6609 Před 3 měsíci

      @@CODE_ROOM 🫡🫡🫡

  • @crazyboy5350
    @crazyboy5350 Před 5 měsíci

    Module not found database, what can I do?

    • @CODE_ROOM
      @CODE_ROOM  Před 5 měsíci

      Make sure that you have created this file database with this name correctly.

  • @user-my7lg4cd4u
    @user-my7lg4cd4u Před 8 měsíci

    what shoule i do to use sqlite3,such as download sth?

    • @CODE_ROOM
      @CODE_ROOM  Před 8 měsíci

      It is already installed starting from Python 2.5, just import it in your file.

    • @user-my7lg4cd4u
      @user-my7lg4cd4u Před 8 měsíci

      thank you

    • @CODE_ROOM
      @CODE_ROOM  Před 8 měsíci

      Anytime.

    • @user-my7lg4cd4u
      @user-my7lg4cd4u Před 8 měsíci

      in display_data I need to write“clear('true')”,otherwise datas at entry cannot be deleted @@CODE_ROOM

  • @PANDURANG99
    @PANDURANG99 Před 10 měsíci

    Search and filter?

    • @CODE_ROOM
      @CODE_ROOM  Před 10 měsíci

      This can help you implementing the search:
      czcams.com/video/pW22ux8z6ic/video.html

  • @theshadow4390
    @theshadow4390 Před 4 měsíci

    could wrap the code to see all of it please ??? and thank's

    • @CODE_ROOM
      @CODE_ROOM  Před 4 měsíci +1

      Will consider that in next videos.

  • @user-yb6rs7bm6n
    @user-yb6rs7bm6n Před 6 měsíci +1

    Man, you just can create functions for label and entry, is a better choice

    • @CODE_ROOM
      @CODE_ROOM  Před 6 měsíci +1

      definitely, especially if you have a more complex project.

  • @Mattykkk25
    @Mattykkk25 Před 8 měsíci

    Where is the file to download?

    • @CODE_ROOM
      @CODE_ROOM  Před 8 měsíci

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @user-ru5zy1gf2u
    @user-ru5zy1gf2u Před 3 měsíci

    How do i access the code, no link?

    • @CODE_ROOM
      @CODE_ROOM  Před 3 měsíci

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin

  • @WanawahdieDuhabil
    @WanawahdieDuhabil Před 2 měsíci

    Can i get the code in file?

    • @CODE_ROOM
      @CODE_ROOM  Před 2 měsíci

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin

  • @iamsherk2605
    @iamsherk2605 Před rokem

    Im gonna cry a lot if my code still do not work. Im making a program just like this. But Im doing some slight differences because originality is part of the criteria. HEEELLLPPP 😭😭😭

    • @CODE_ROOM
      @CODE_ROOM  Před rokem +1

      What is the problem with your code?

    • @iamsherk2605
      @iamsherk2605 Před rokem

      ​@@CODE_ROOMThe update and delete function does not work for me. I'm still looking for the bug

    • @iamsherk2605
      @iamsherk2605 Před rokem

      ​@@CODE_ROOM
      Update: everything works now. OMGGG THANKK YOUUU SO MUCH. IVE ALSO SUBSCRIBED TO YOUR CHANNEL SO I CAN LEARN MORE. THANKKK YOUUUU SO MUCCHHHH 😭😭😭😭

  • @user_wstech
    @user_wstech Před měsícem

    Update button not work 😭

    • @CODE_ROOM
      @CODE_ROOM  Před měsícem

      Please, show me the issue in your code.

  • @vanyaspams
    @vanyaspams Před 7 měsíci

    The update function is not working for me, even though it show 'has been updated'😭

    • @CODE_ROOM
      @CODE_ROOM  Před 7 měsíci

      Can you reply with your function?

    • @vanyaspams
      @vanyaspams Před 7 měsíci

      def update():
      selected_item = tree.focus()
      if not selected_item:
      messagebox.showerror('Error', 'Choose an employee to update.')
      else:
      ID=ID_entry.get()
      Name=Name_entry.get()
      Role=Role_entry.get()
      Gender=variable1.get()
      Status=Status_entry.get()
      database.update_employee(Name, Role, Gender, Status, ID)
      add_to_treeview()
      clear()
      messagebox.showinfo('Success','Data has been updated.')

    • @CODE_ROOM
      @CODE_ROOM  Před 7 měsíci

      Your function seems to be correct. Check add_to_treeview function and the update_employee function in the database.

    • @vanyaspams
      @vanyaspams Před 7 měsíci

      #add to treeview
      def add_to_treeview():
      employees=database.fetch_employees()
      tree.delete(*tree.get_children())
      for employee in employees:
      tree.insert('', END, values=employee)
      #update employee
      def update_employee(new_Name, new_Role, new_Gender, new_Status, ID):
      conn=connection()
      cur=conn.cursor()
      cur.execute("UPDATE employees SET Name=?,Role=?,Gender=?,Status=? where ID=?",
      (new_Name, new_Role, new_Gender, new_Status, ID))
      conn.commit()
      conn.close()

    • @vanyaspams
      @vanyaspams Před 7 měsíci

      I can't find what's wrong here

  • @user-hb4to7ik5b
    @user-hb4to7ik5b Před 2 dny

    I want source code of this project. Plz provide me

    • @CODE_ROOM
      @CODE_ROOM  Před 2 dny

      Access this project and all other source codes with only ✨️$2.99✨️.
      Join from here✅️:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin

  • @unknown2you2004
    @unknown2you2004 Před 8 měsíci

    Bro Please give me source code of the Program

    • @CODE_ROOM
      @CODE_ROOM  Před 8 měsíci

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @gerryhoekema2561
    @gerryhoekema2561 Před 10 měsíci

    Nice tutorial. It would make it much easier to follow the code and code along if you put the widget properties on separate lines.
    e.g.
    delete_button = ctk.CTkButton(app,
    font=font1,
    text_color = '#fff',
    text = 'New Employee',
    fg_color = "#e40404",
    hover_color = '#ae0000',
    bg_color = '#161c25',
    border_color = '#e40404',
    border_width = 2,
    cursor='hand2',
    corner_radius = 15,
    width = 260 )
    delete_button.place(x=580,y=360)

    • @CODE_ROOM
      @CODE_ROOM  Před 10 měsíci +1

      Nice suggestion! Will consider in next tutorials.

  • @adent07
    @adent07 Před rokem +1

    source code broo

    • @CODE_ROOM
      @CODE_ROOM  Před rokem

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html

  • @Azad_SAYz
    @Azad_SAYz Před 4 měsíci

    Where the source code

    • @CODE_ROOM
      @CODE_ROOM  Před 4 měsíci

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin

  • @GamerDhairya
    @GamerDhairya Před 3 měsíci +1

    id_entry=customtkinter.CTkLabel(app,font=font1, text_color='#000', fg_color='#fff',border_color='#0C9296', border_width=2, width=180) my this line is showing error what should i do

    • @CODE_ROOM
      @CODE_ROOM  Před 3 měsíci

      It should be CTkEntry not CTkLabel.

  • @Sheikhbilal5757
    @Sheikhbilal5757 Před rokem

    great work but , No source code ???????????????????????????????????????

    • @CODE_ROOM
      @CODE_ROOM  Před rokem

      You can now join the channel from here 👇:
      czcams.com/channels/v-xyS0YxYCrEoMFH_cgcoQ.htmljoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      czcams.com/play/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD.html