CRM App With Treeview and SQLite3 - Tkinter Projects 16

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 44

  • @TkinterPython
    @TkinterPython  Рік тому +3

    ▶ Watch TTKBootstrap Playlist ✅ FREE Tkinter Widget Book
    bit.ly/3hphbwA bit.ly/3K4qlZC
    ▶ See More At: ✅ Subscribe To My UA-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 8 місяців тому +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.

  • @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.

  • @stevew9945
    @stevew9945 Рік тому +2

    excellent work, taught me a lot

  • @Rulzan
    @Rulzan 3 місяці тому

    John, you're simply the best

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

  • @makhlouflazhar24
    @makhlouflazhar24 8 місяців тому

    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 3 місяці тому

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

  • @code-to-learn
    @code-to-learn 5 місяців тому

    Awesome tutorial sir

  • @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.

  • @bigrevkev55
    @bigrevkev55 9 місяців тому

    You are the man!

  • @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

  • @manfredbaum2510
    @manfredbaum2510 Рік тому

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

    • @Codemycom
      @Codemycom Рік тому

      It is linked in the pinned comment.

  • @pablo20237
    @pablo20237 Рік тому

    Very excellent, thank you sir

  • @digitalmachine0101
    @digitalmachine0101 7 місяців тому

    Good information

  • @vladmakrov8394
    @vladmakrov8394 11 місяців тому

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

  • @lemartien25000
    @lemartien25000 7 місяців тому

    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 7 місяців тому

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

    • @lemartien25000
      @lemartien25000 7 місяців тому

      @@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  7 місяців тому

      I don't review code

  • @biotyana945
    @biotyana945 Рік тому

    thanks in advance ❤

    • @TkinterPython
      @TkinterPython  Рік тому

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

  • @MAH1MOUMA
    @MAH1MOUMA Рік тому

    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.

  • @sadyaz64
    @sadyaz64 Рік тому

    Thanks