Treeview Primary Key With SQLite3 - Python Tkinter GUI Tutorial

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

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

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

    ▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
    bit.ly/2UFLKgj bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶️ Get The Code
    bit.ly/3eWGKQo

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

    Hey John. I must say this is a really great series and I'm enjoying it so much. You're a great teacher and I am learning loads. I'm just about getting to grips with the grid system and some of its gotchas and anomalies which can really be frustrating sometimes. I've also been keeping busy and following you on a few courses. Keep up the good work. 👍

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

      Glad you're enjoying the videos!

  • @askpatti
    @askpatti 2 ปีที่แล้ว

    THANK YOU! I missed this video the first time through and that primary key was kicking my butt. Haha

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

      Ha, glad you got it sorted!

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

    Yeaaah my favorite course, thanks for sharing you awesome

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

      Thanks for watching!

  • @noelpython6262
    @noelpython6262 3 ปีที่แล้ว

    thank u sir
    it greatly helped me in completing my cs project

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

    Hi John, I've been following along on this Playlist for quite a while. Thanks very much for this, I've learned a lot from you. I was wondering if there's a convenient way to INSERT a database entry at a particular rowid, not just adding one at the end, or whether I need to make a function myself to do this. I appreciate for a CRM tool this may not be very useful/necessary, but I'm working on something analogous to this, but in my project the order of the database entries is important. I want to be able to insert database entries at a particular rowid, have the entries after it automatically renumber to be rowid+1 (I suppose sqlite3 can handle this automatically due to autoincrement from the primary key). Just wonder if there's an easy way to do this or whether you will/can cover this in future? Cheers.

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

      you just add it at the end in the normal way, the rowid can't be important, because each record is a unique rowid...so if you have 5, 6, 7 etc you can't put a new one in 6...6 already has one. You can edit 6, but you can't push everything down and make a new 6. That's not how databases work, really ever.

  • @ab123-j7v
    @ab123-j7v 2 ปีที่แล้ว

    thank you very much, its help a lot

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

      You're welcome!

  • @gomezhernandezricardo3558
    @gomezhernandezricardo3558 3 ปีที่แล้ว

    Excellent ing.

  • @learningtho582
    @learningtho582 2 ปีที่แล้ว

    Hi john. Is coming up with primary key compulsory? Because I need to keep my original ID column which is not simply 1, 2, 3, 4... (e.g. 10249, 02930). Using the primary key it seems to mess up my column order and from following your steps it seems like we are letting go of the original ID..

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

      you can have a primary key and an id field...you can have as many fields and columns as you want.

    • @learningtho582
      @learningtho582 2 ปีที่แล้ว

      @@Codemycom Yeah... I thought about it and I ended up going back to add another column. Thanks John.

  • @noggo8747
    @noggo8747 3 ปีที่แล้ว

    4:58
    BOOM now you see
    it has the rowid,
    wich is in fact the primary key
    Goethe would be proud of you

  • @pvww9577
    @pvww9577 3 ปีที่แล้ว

    You are very good

  • @kvniranjan12
    @kvniranjan12 3 ปีที่แล้ว

    Loved the video John...You made me think everybody can code..Is there any plan to have some videos about web scraping??

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

      Glad you're enjoying them! I've done a little web scrapping...check the tkinter bitcoin price grabber video

  • @bobdoe5218
    @bobdoe5218 3 ปีที่แล้ว

    Hey there,
    addding
    from ctypes import windll
    windll.shcore.SetProcessDpiAwareness(1)
    before your Tkinter code makes the window much clearer!
    Can you show this is one of your upcoming Tkinter episodes? Thanks!

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

      never heard of it

    • @bobdoe5218
      @bobdoe5218 3 ปีที่แล้ว

      can you make a vid on it pls

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

      @@bobdoe5218 No, I never heard of it

  • @KCho-oy3sq
    @KCho-oy3sq 2 ปีที่แล้ว

    if you set the original ID to primary key, it seems to mess up the tuple index. When I tried to convert py to exe, it says index error tuple out of range.

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

      You likely did something else wrong

  • @abdullashafi580
    @abdullashafi580 3 ปีที่แล้ว

    love it ....

  • @daxemare
    @daxemare 3 ปีที่แล้ว

    The video is great but if you may do something with FOREIGN KEY, it'll be great. It's very difficult to find a clear tutorial talking about SQLite3 foreign key and tkinter.
    Please do something about that.

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 ปีที่แล้ว

    John brother! Please make video about Algorithms and Data structures

  • @joeyblaq9952
    @joeyblaq9952 3 ปีที่แล้ว

    💪

  • @novaploca2080
    @novaploca2080 3 ปีที่แล้ว

    Comment for me ->Had problem with columns out of order

  • @capincrunch1184
    @capincrunch1184 3 ปีที่แล้ว

    I have a database set up for excel with 180 inputs lol so it’s around 1,500 lines of code

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 ปีที่แล้ว

    Hello, John brother. Are you okay? How are you? Which state and city in the United States do you live in now? (Maybe this information would be useful for me if I wanted to meet you)

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

      I live in Las Vegas

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 ปีที่แล้ว

    why?

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 ปีที่แล้ว

    Do you want to meet me? (I wanted to meet you) Do you know MIT? (Would you recommend MIT to me)

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

      No sorry, I don't meet people from youtube

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 ปีที่แล้ว

    No. I'm not big man. I'm 15 years old