EMPLOYEE MANAGEMENT SYSTEM PYTHON CUSTOMTKINTER MODERN TKINTER PROJECT WITH SQLITE3 DATABASE

Поделиться
HTML-код
  • Опубликовано: 8 июл 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

Комментарии • 81

  • @CODE_ROOM
    @CODE_ROOM  10 месяцев назад +1

    You can now join the channel from here 👇:
    ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
    to access ALL source codes of Python GUI projects in this playlist 👇 :
    ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @BolatDosbolatov
    @BolatDosbolatov Месяц назад +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 11 месяцев назад +2

    Thank you, my friend. This video is very useful

    • @CODE_ROOM
      @CODE_ROOM  11 месяцев назад

      You are most welcome.

  • @Drbadvibe
    @Drbadvibe 2 месяца назад

    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.

  • @mohamedalhashmi1386
    @mohamedalhashmi1386 8 месяцев назад

    Thank you a lot. It was a useful APP.

    • @CODE_ROOM
      @CODE_ROOM  8 месяцев назад

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

  • @shafiqsobhani
    @shafiqsobhani 10 месяцев назад

    Awesome

  • @ea1766
    @ea1766 10 месяцев назад

    Good man

  • @rachidaajbayr2867
    @rachidaajbayr2867 Месяц назад

    Thanks a lot

  • @NOTHING-uk4cw
    @NOTHING-uk4cw 4 месяца назад

    ❤❤❤❤

  • @svnbeats6700
    @svnbeats6700 5 месяцев назад

    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  5 месяцев назад

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

    • @svnbeats6700
      @svnbeats6700 5 месяцев назад

      do you have some tutorials @@CODE_ROOM

    • @CODE_ROOM
      @CODE_ROOM  5 месяцев назад

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

  • @JhonorlyOlaco
    @JhonorlyOlaco 2 месяца назад

    error in line bro from tk(module) database?

  • @rhenchiri
    @rhenchiri Год назад +3

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

    • @CODE_ROOM
      @CODE_ROOM  11 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @Venus_network
    @Venus_network 11 месяцев назад

    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  11 месяцев назад

      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()

  • @ahmedsaliem7041
    @ahmedsaliem7041 Месяц назад

    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  Месяц назад +1

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

    • @ahmedsaliem7041
      @ahmedsaliem7041 Месяц назад

      @CODE_ROOM Thanks a lot 🙏🏼 🙏🏼

  • @user-nw7uz6ly3p
    @user-nw7uz6ly3p 2 месяца назад

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

    • @CODE_ROOM
      @CODE_ROOM  2 месяца назад

      ✨️Subscribe for more quizzes✨️

  • @user-yb6rs7bm6n
    @user-yb6rs7bm6n 6 месяцев назад +1

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

    • @CODE_ROOM
      @CODE_ROOM  6 месяцев назад +1

      definitely, especially if you have a more complex project.

  • @advaitshinde6609
    @advaitshinde6609 3 месяца назад +3

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

    • @CODE_ROOM
      @CODE_ROOM  3 месяца назад +1

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin

    • @advaitshinde6609
      @advaitshinde6609 3 месяца назад

      @@CODE_ROOM 🫡🫡🫡

    • @janusztarnowski115
      @janusztarnowski115 2 месяца назад

      @@CODE_ROOM

  • @josemarquez-py9wp
    @josemarquez-py9wp 11 месяцев назад +1

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

    • @CODE_ROOM
      @CODE_ROOM  11 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

    • @janusztarnowski115
      @janusztarnowski115 2 месяца назад

      @@CODE_ROOM

  • @user-my7lg4cd4u
    @user-my7lg4cd4u 7 месяцев назад

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

    • @CODE_ROOM
      @CODE_ROOM  7 месяцев назад

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

    • @user-my7lg4cd4u
      @user-my7lg4cd4u 7 месяцев назад

      thank you

    • @CODE_ROOM
      @CODE_ROOM  7 месяцев назад

      Anytime.

    • @user-my7lg4cd4u
      @user-my7lg4cd4u 7 месяцев назад

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

  • @PANDURANG99
    @PANDURANG99 9 месяцев назад

    Search and filter?

    • @CODE_ROOM
      @CODE_ROOM  9 месяцев назад

      This can help you implementing the search:
      ruclips.net/video/pW22ux8z6ic/видео.html

  • @crazyboy5350
    @crazyboy5350 5 месяцев назад

    Module not found database, what can I do?

    • @CODE_ROOM
      @CODE_ROOM  5 месяцев назад

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

  • @vanyaspams
    @vanyaspams 6 месяцев назад

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

    • @CODE_ROOM
      @CODE_ROOM  6 месяцев назад

      Can you reply with your function?

    • @vanyaspams
      @vanyaspams 6 месяцев назад

      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  6 месяцев назад

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

    • @vanyaspams
      @vanyaspams 6 месяцев назад

      #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 6 месяцев назад

      I can't find what's wrong here

  • @gerryhoekema2561
    @gerryhoekema2561 9 месяцев назад

    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  9 месяцев назад +1

      Nice suggestion! Will consider in next tutorials.

  • @theshadow4390
    @theshadow4390 4 месяца назад

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

    • @CODE_ROOM
      @CODE_ROOM  4 месяца назад +1

      Will consider that in next videos.

  • @user-ru5zy1gf2u
    @user-ru5zy1gf2u 2 месяца назад

    How do i access the code, no link?

    • @CODE_ROOM
      @CODE_ROOM  2 месяца назад

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin

  • @GamerDhairya
    @GamerDhairya 2 месяца назад +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  2 месяца назад

      It should be CTkEntry not CTkLabel.

  • @Mattykkk25
    @Mattykkk25 7 месяцев назад

    Where is the file to download?

    • @CODE_ROOM
      @CODE_ROOM  7 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @iamsherk2605
    @iamsherk2605 Год назад

    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  Год назад +1

      What is the problem with your code?

    • @iamsherk2605
      @iamsherk2605 Год назад

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

    • @iamsherk2605
      @iamsherk2605 Год назад

      ​@@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 😭😭😭😭

  • @WanawahdieDuhabil
    @WanawahdieDuhabil 2 месяца назад

    Can i get the code in file?

    • @CODE_ROOM
      @CODE_ROOM  2 месяца назад

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin

  • @user_wstech
    @user_wstech 29 дней назад

    Update button not work 😭

    • @CODE_ROOM
      @CODE_ROOM  29 дней назад

      Please, show me the issue in your code.

  • @adent07
    @adent07 Год назад +1

    source code broo

    • @CODE_ROOM
      @CODE_ROOM  11 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @unknown2you2004
    @unknown2you2004 7 месяцев назад

    Bro Please give me source code of the Program

    • @CODE_ROOM
      @CODE_ROOM  7 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @Azad_SAYz
    @Azad_SAYz 3 месяца назад

    Where the source code

    • @CODE_ROOM
      @CODE_ROOM  3 месяца назад

      Get UNLIMITED access to source codes now with only $2.99✅️
      Join Now:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin

  • @Sheikhbilal5757
    @Sheikhbilal5757 Год назад

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

    • @CODE_ROOM
      @CODE_ROOM  11 месяцев назад

      You can now join the channel from here 👇:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin
      to access ALL source codes of Python GUI projects in this playlist 👇 :
      ruclips.net/p/PLnZQydCjRQJzVS27vVBGTbgbiFP_tyXaD

  • @janusztarnowski115
    @janusztarnowski115 2 месяца назад

    is there a code somewhere? because I can't see.
    writing it off from a movie is lame.

    • @CODE_ROOM
      @CODE_ROOM  2 месяца назад

      ✨️Access all source codes with only $2.99✨️
      Join✅️:
      ruclips.net/channel/UCv-xyS0YxYCrEoMFH_cgcoQjoin