Using Excel Spreadsheets With Tkinter and Openpyxl - Python Tkinter GUI Tutorial

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

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

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

    ▶️ 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/3fLFQ8p

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

    this video makes me a python

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

    This is AMAZING and exactly what I was looking for to complete a project this weekend. Thanks!

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

      Glad I could help!

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

    Very useful video! Looking forward to more with excel. Thank you!!

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

      Glad it was helpful!

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

    Brill thank you bro can't wait to try this out myself, really appreciate your tutorials

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

    This is an amazing video!! I recently completed two of your courses ( Tkinter and OpenPyXL) and this video provided me a good example how these two libraries can work together for good stuff. I was wondering if you have some tutorial on how you can use pandas and Tkinter together ?

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

    Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks

  • @lifeofRyleeG
    @lifeofRyleeG 4 ปีที่แล้ว

    Looking forward to this corse, i have a project for work using tkinter and excel and am getting stuck in a few places, joined your codemy club last night, lots of great info!

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

      Welcome aboard! That course should be done in about a week, it's been filmed...just need to edit it

  • @shehab976
    @shehab976 4 ปีที่แล้ว

    Explanations very clear sir...great all ur videos

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

      Glad you like them!

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

    Very clear explanation

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

      Glad you liked it

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

    Excellent! Cheers mate.

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

    Hey Great video..
    Would you able to advise how to load the data in the window without the button?

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

      call the function in the normal way

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

      @@Codemycom
      Hi-
      Sorry I don’t know what you mean by this?
      Could schedule a short call sometime this week or next please?

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

      @@koys1000 No.

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

    How do you select a non active sheet ?
    Love your videos

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

      I’ll go over that in my upcoming course

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

    Excellent. Thank you.

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

      You are welcome!

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

    If it possible to validates in excel sheets in tkinter.if checke the id number .if number is there then print all the details are print in gui .if id is wrong then tell the user id is incorrect. Is it possible in tkinter

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

      sure, that's just basic python if statements

  • @mustapha-d2k
    @mustapha-d2k 3 ปีที่แล้ว

    Very useful Thank you very much

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

      Very Welcome

  • @gtstudi0-o7o
    @gtstudi0-o7o ปีที่แล้ว

    do you have a tutorial merging 2 excel files using python GUI?

  • @raghavakonki4688
    @raghavakonki4688 4 ปีที่แล้ว

    awesome bro keep going

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

    Hello professor, I have a question. Can you write data from a GUI in python to an excel file without it being closed?

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

      Sure. I have a whole course on python and excel here:
      www.udemy.com/course/python-and-excel-programming-using-openpyxl/?couponCode=JOHN_ELDER11

  • @BheeshmaYT
    @BheeshmaYT 4 ปีที่แล้ว

    Can you explain how to handle excel macros(creating a button for a repeating task) using python
    Ex:- Macros
    Copying one cell value to another
    By the help of python script.we have to control that button .If we click that it copies value of current cell to other

  • @dimitriosdesmos4699
    @dimitriosdesmos4699 4 ปีที่แล้ว

    Any chance u might be covering grraphics later at some point ??

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

      No idea...I don't know what that is or what it does...

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

    I have created an output file of a calculation performed in a Tkinter app. But, I am struggling to export the output file in a .xlsx format to a different directory outside the current working directory where the python file exists. Could you please help?

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

      just use the full path when saving the file.

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

      @@Codemycom Thanks for your response. I did add the path to the fd.asksaveasfilename command, but it creates two different files, at the two different locations (one containing the calculations in the directory of the script, and the other in the specified location containing nothing). Is there a way I can write a command to show a pop up window, that asks me where to save the file once the output excel file is created by df.to_excel, instead of automatically saving it to the default folder of the python script.

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

      @@dPten nothing does something twice unless you've written the code to save it twice. I don't know what you're doing but this should be a simple thing for you to tweak. Look at your code.

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

    Dangit - exactly what I was looking for and MR. WHITE from Breaking Bad is teaching me?!

  • @MohamedAbdo-xs7bf
    @MohamedAbdo-xs7bf 3 ปีที่แล้ว

    I'm stuck trying to develop a GUI that simply import a directory of an excel file (new data) then when I click a button, the command function is to amend the information on this (new data) excel file into the maximum row of a (source data) excel file.
    I used the dataframe and .amend method after converting the two excel sheets to a data frame. However, this might not be good, the (new data) excel might come up with no heading orders like the source data file to amend the information.
    Any help?

    • @MohamedAbdo-xs7bf
      @MohamedAbdo-xs7bf 3 ปีที่แล้ว

      ## Import function to amend data from a sheet to an existing resource sheet
      def importdata():
      df1 = pd.read_excel('Destiny.xlsx', index_col=0)
      df2 = pd.read_excel(fileroot, index_col=0)
      df1.append(df2, ignore_index= True)
      df1 = df1.append(df2)
      Saveit = df1.to_excel('/Destiny.xlsx')
      importbtn.config(text='Imported', command= NONE, bg='grey')

  • @aakashkukal
    @aakashkukal 4 ปีที่แล้ว

    How can i use a better gui style(modern look) in tkinter. I made a project in which i created buttons using image but other stuff like Entrys didn't match the theme. And also tell how to use coordinate system properly. Thanks.

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

      You can't really. There are themes but they aren't all that useful.

    • @aakashkukal
      @aakashkukal 4 ปีที่แล้ว

      @@Codemycom kindly tell me a library in which i could do that kind of stuff. Thanks.

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

      @@aakashkukal There is no library. You can google "Tkinter themes", but you're probably going to be disappointed

    • @echuidor
      @echuidor 4 ปีที่แล้ว

      You can use tkinter.ttk

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

    What if i want to check value in first cell of column and if condition is true then only get that data , please provide code or suntax

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

      Use an if statement

  • @daniellisto3656
    @daniellisto3656 4 ปีที่แล้ว

    How would you return an individual cell value instead of the whole column? I tried column_a = ws[ 'A2' ] and column_b = ws[ 'B3' ]. And kept everything else the same.

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

      I have a course on that at Codemy.com

    • @daniellisto3656
      @daniellisto3656 4 ปีที่แล้ว

      @@Codemycom I signed up for it! I'll check it out, thank you

  • @anshamma.m3692
    @anshamma.m3692 ปีที่แล้ว

    Sir how to compare two excel file in tkinter

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

    Syntax for removing duplicates if any in the Excel source data

  • @albertdupond7399
    @albertdupond7399 4 ปีที่แล้ว

    Je n'y comprends pas grand chose, mais j'essaie d'apprendre
    afin de progresser dans la programmation Python/tkinter,
    malgré la difficulté de la langue. many thank's.

  • @suryanshtokas6337
    @suryanshtokas6337 4 ปีที่แล้ว

    Sir please get to how to make graphs appear in the same window as the tkinter window and not pop up in another matplotlib window. I know you need to use canvas for that but if you could make a video on the topic that would be great. I know that you are extremely busy but if you could do that as a subscriber request that would be great.

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

      Probably need to use canvas. Might get to it eventually

    • @suryanshtokas6337
      @suryanshtokas6337 4 ปีที่แล้ว

      @@Codemycom Thanks a lot sir.

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

      @@suryanshtokas6337 Sure thing

    • @suryanshtokas6337
      @suryanshtokas6337 4 ปีที่แล้ว

      @@Codemycom Sir thanks you are the best youtuber on python and specially tkinter.

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

    Getting an error as "AttributeError: module 'tkinter' has no attribute 'tk' tried importing tkinter as TK or tk but nothing worked. Tried reinstalling tkinter still an error exists. Anyone can help ?? Thanks in advance for your time

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

      Error got resolved when changing code to :
      from tkinter import *
      root = tkinter.Tk()

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

      @@PythonCareerCoach yeah it has to be exact, as in all things with coding

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

      @@Codemycom Thank you very much for your reply ❤️

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

    keep getting this error:
    ModuleNotFoundError: No module named 'openpyxl'

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

      You need to pip install it on the terminal

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

    So granting what you say is true (13:00),
    poor Wilma must, to feed her fella's
    taste, in lieu of Poobah Mozzarella,
    find Dino's waste and grabba-dabba poo?
    Pyew!

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

    I love everything except the heart attacking starting scream of your video.🙃

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

    wippidi woppidi your code is my property

  • @akcandlestick8948
    @akcandlestick8948 4 ปีที่แล้ว

    videos are good but u not reply query sir

  • @DevOverdrive
    @DevOverdrive 4 ปีที่แล้ว

    First

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

      nice!

    • @DevOverdrive
      @DevOverdrive 4 ปีที่แล้ว

      Codemy.com love your vids

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

      @@DevOverdrive Thanks! Love your comments ;-)