CRM App With Treeview and SQLite3 - Tkinter Projects 16

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 44

  • @TkinterPython
    @TkinterPython  ปีที่แล้ว +3

    ▶ Watch TTKBootstrap Playlist ✅ FREE Tkinter Widget Book
    bit.ly/3hphbwA bit.ly/3K4qlZC
    ▶ See More At: ✅ Subscribe To My TH-cam Channel:
    Tkinter.com bit.ly/3Pk1By4
    ▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
    30% off with coupon code: youtube bit.ly/2GFmOBz
    ▶ Get The Code For This Video ✅ Watch The 200 Video Tkinter Playlist
    bit.ly/3LQklWT bit.ly/3HAqZOd

  • @PascalChapier
    @PascalChapier 10 หลายเดือนก่อน +1

    Many thanks for this video, I learned a lot.
    If you are still looking for idea, you could add a sort function triggered when the user click in one treeview header:
    - first click in one header sort the record according to the colume content in ascending direction,
    - second click sort in descending direction and so on.
    - Click in a different header cell will restart by ascending sort for the new column selected.
    - The state is not preserved for the next program run.

  • @stevew9945
    @stevew9945 ปีที่แล้ว +2

    excellent work, taught me a lot

  • @Rulzan
    @Rulzan 6 หลายเดือนก่อน

    John, you're simply the best

  • @JoaoNeto-oj9cn
    @JoaoNeto-oj9cn ปีที่แล้ว

    This data editing solution is very good, thank you very much for sharing these solutions. However, when it comes to DateEntry in the ttkboostrap package I can't get it to work. The date field does not show the record date and keeps the default date. The same happens with cleaning this field to edit a new record. What solutions can you suggest to solve this problem?
    Working dates in a database is not easy, at least for me.

  • @moris933
    @moris933 ปีที่แล้ว +1

    Thanks, great job. If you want I have more ideas for this channel, for example some applications when we can mark a place on Google maps and put some description for example for delivery company or interest place and share online. What you think?

  • @code-to-learn
    @code-to-learn 7 หลายเดือนก่อน

    Awesome tutorial sir

    • @TkinterPython
      @TkinterPython  7 หลายเดือนก่อน

      Glad you enjoyed it!

  • @biotyana945
    @biotyana945 ปีที่แล้ว +4

    can you do the same project with ttkbootstrap

    • @TkinterPython
      @TkinterPython  ปีที่แล้ว +1

      As I said in the video...use the exact same code, just define the treeview like we did in last week's video where I discussed ttkbootstrap's treeview.

  • @makhlouflazhar24
    @makhlouflazhar24 10 หลายเดือนก่อน

    Thanks in advance,
    I would like you to give us an example of extracting a PDF file from the database by exploiting data from the database

  • @davidsbdavid7769
    @davidsbdavid7769 5 หลายเดือนก่อน

    Hi, good job. Is there a way to get the files used in the live?

  • @bigrevkev55
    @bigrevkev55 11 หลายเดือนก่อน

    You are the man!

  • @pablo20237
    @pablo20237 ปีที่แล้ว

    Very excellent, thank you sir

  • @tomkmb4120
    @tomkmb4120 ปีที่แล้ว

    Is it possible to add numeric filtering to the columns in Tkinter?

    • @TkinterPython
      @TkinterPython  ปีที่แล้ว

      Sure

    • @tomkmb4120
      @tomkmb4120 ปีที่แล้ว

      @@TkinterPython Is that covered in a specific video?

    • @TkinterPython
      @TkinterPython  ปีที่แล้ว

      @@tomkmb4120 Not sure, it might be in this one somewhere, you can check the tkinter playlist on my codemy.com youtube channel

  • @digitalmachine0101
    @digitalmachine0101 9 หลายเดือนก่อน

    Good information

  • @biotyana945
    @biotyana945 ปีที่แล้ว

    thanks in advance ❤

    • @TkinterPython
      @TkinterPython  ปีที่แล้ว

      just define your treeview using ttkbootstrap, the rest is the same.

  • @vladmakrov8394
    @vladmakrov8394 ปีที่แล้ว

    Nice job Sir. Thanks. Where can i find the source code?

  • @manfredbaum2510
    @manfredbaum2510 ปีที่แล้ว

    I do not find the code. Where is it. Excuse my bad english

    • @Codemycom
      @Codemycom ปีที่แล้ว

      It is linked in the pinned comment.

  • @sadyaz64
    @sadyaz64 ปีที่แล้ว

    Thanks

  • @ken4edwards
    @ken4edwards ปีที่แล้ว

    where is the code?

    • @TkinterPython
      @TkinterPython  ปีที่แล้ว

      In the pinned comment, as always.

    • @ken4edwards
      @ken4edwards ปีที่แล้ว

      Thanks, I did no know about pinded comments and I did not know I would have to click show more to find it.

  • @lemartien25000
    @lemartien25000 9 หลายเดือนก่อน

    Invalid column index ???? When running this code I got the following error: Invalid column index. This happens in the treeview column definition. is this a problem in python interpreter I should reinstall python? I have version 3.12

    • @Codemycom
      @Codemycom 9 หลายเดือนก่อน

      No it's not a problem with python, you just messed up the code somewhere.

    • @lemartien25000
      @lemartien25000 9 หลายเดือนก่อน

      @@Codemycom import tkinter as tk
      from tkinter import ttk
      import sqlite3
      def afficher_resultats_requete(table_name):
      # Créer une fenêtre
      fenetre = tk.Tk()
      fenetre.title(f"Résultats de la requête pour la table {table_name}")
      # Établir la connexion avec la base de données
      conn = sqlite3.connect('agrements.db')
      cursor = conn.cursor()
      # Exécuter la requête SELECT *
      cursor.execute(f"SELECT * FROM {table_name}")
      rows = cursor.fetchall()
      # Créer un Treeview
      tree = ttk.Treeview(fenetre)
      # Configurer la colonne cachée (d'index)
      tree.column("#0", width=0, stretch=tk.NO) # Largeur à 0 pour la cacher
      tree.heading("#0", text="", anchor=tk.W) # Texte vide pour la colonne cachée
      # Configurer les colonnes en fonction du nom des colonnes dans le résultat de la requête
      for col_name in cursor.description:
      tree.heading(col_name[0], text=col_name[0])
      tree.column(col_name[0], width=100)
      # Insérer les données dans le Treeview
      for row in rows:
      tree.insert("", "end", values=row)
      # Ajouter le Treeview à la fenêtre
      tree.pack(expand=True, fill="both")
      # Démarrer la boucle principale
      fenetre.mainloop()
      # Appeler la fonction pour afficher les résultats pour la table 'nom_table'
      afficher_resultats_requete('nom_table')

    • @TkinterPython
      @TkinterPython  9 หลายเดือนก่อน

      I don't review code

  • @MAH1MOUMA
    @MAH1MOUMA ปีที่แล้ว

    Thanks