Print A File - Build A Text Editor Part 8 - Python Tkinter GUI Tutorial

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

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

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

    ▶️ 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

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

      I have a question.
      Suppose our tkinter window already have some contents like labels texts borders colors etc. when we run a python code.What i want is to save all those contents in a file as it is.Is it possible?
      In short I want to print the tkinter window output in a file as it is.Plz rply me.

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

      Is there any solution sir?

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

      @@bibashshrestha9471 Sure, but I don't have videos on it.

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

      @@Codemycom so i want the solution sir plz hlp me i hav been watching some of ur videos on this topic but i found only for saving and printing but not ehat i want plz help me out how can i do that...

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

      @@Codemycom also i didnt find in other channels plz answer this one .

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

    sir i just want to thank you so much for your tutorials. they are all helpful to me God bless you so much and increase your knowledge and wisdom

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

      So nice of you, you're most welcome.

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

    Thank You!
    I'll keep waiting for the other video on printing. I mean, the text written in the text editor.

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

      Coming soon!

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

    BRO!!! you"r such an amazing teacher...making difficult contents look simple... You'r the best bro... too much love from nigeria!!!!

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

      I appreciate that!

  • @RuhulAmin-bo7qt
    @RuhulAmin-bo7qt 3 ปีที่แล้ว +1

    Worth watching.
    Can you make a video on how to print a POS like invoice in Tkinter? That will be a great help for us.

  • @kapibara2440
    @kapibara2440 2 หลายเดือนก่อน

    Thank you John 😊

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

      welcome

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

    great tutorial... suggestion wish list
    macros/scrippets
    auto tab
    (make into personal dev editor)

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

    Would you be able to print a TKinter grid system with borders (like an Excel table) to a page?

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

      you could probably hack something together

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

      @@Codemycom Thanks for your reply! I tried, but the information on printing is unfortunately very scarce. If you ever have time, could you make a tutorial on how to print something like a registration form with boxes. Or something with an excel layout or self made tkinter grid layout (with borders). This would be much easier than exporting everything to a premade excel sheet and then print it. If you find this useful for the viewers of course. Or do you have tips for me to go into the right direction?

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

      @@jochem3368 I have a question.
      Suppose our tkinter window already have some contents like labels texts borders colors etc. when we run a python code.What i want is to save all those contents in a file as it is.Is it possible?
      In short I want to print the tkinter window output in a file as it is.Plz rply me.
      Is this the same thing you wanted??If you already solved your problem can you plz share with me how can i do it?

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

    9:47 So did you cover printing with more customization like specifying page numbers, print order and other stuff?

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

    John at some point in the future can you do a tutorial on sockets please. Thanks.

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

      Not a bad Idea..

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

    awsome tutorial.
    I am waiting for your django tutorials.

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

      Working on it

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

      @@Codemycom i have query related django... can you help me

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

      @@Codemycom i have one model of video and other is video views in video views i have two forgienkey colum one is view by and other is video now i want that when i display videos on home page i also count all views of every video and display on home page. how can i display

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

    Hello John sir,
    This is what I was looking for and it helped me a lot..thank you very much❤️.
    After I click the print button, it's printing the pdf but it's also opening that pdf file, which I don't want...how to prevent pdf file from opening, can u pls guide😅

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

    sir please more video about the tkinter printer to thank you.....i'm waiting for this long time

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

      Probably will

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

    Hey John,
    Amazing Videos!
    I want to print files using tkinter on Mac, so like when would the tutorial come up.

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

      Sorry, I don't have a video on that.

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

    When another video on advanced printing coming!

  • @詹明憲-q3u
    @詹明憲-q3u 4 ปีที่แล้ว

    Thanks for this video.
    Although it is not much useful to make perfect this Text-Pad project !

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

      learning things is always useful

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

    Happy New Year, John. The Adobe Reader just prompt up and stay there if I try to print a pdf file with your code, any suggestion how to solve the problem?

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

      Happy new year! Not sure what's going on

  • @m.nikolatesla
    @m.nikolatesla 3 ปีที่แล้ว

    in linux:
    os.system(f"lp '{printed_file_name}'")
    but first you add a printer for your device. You can check with this command on cmd or terminal:
    lpstat -d

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

    Thanks!

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

    Does anyone know where I could find a similar tutorial that works on MacOS?

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

    Love your videos. Could you do a full on tutorial series like this one on Pygame, or ethical hacking. It would really help. Like if you agree.

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

      Might do pygame

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

      @@codingdrift9811 So nice of you to say!

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

      Thank you so much ! I love you tutorials, they teach me so much and you are always updating the series. Just one more request could you do tutorials on creating servers using sockets in python. It would really help.

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

    Sir please make a video on how to display a graph(matplotlib) inside a tkinter window instead of it popping up in another window. If you would make one that would really help me out.

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

      Yeah I want to know that too. Would really help if John made a tutorial after this text editor series.

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

      I think you need to use the canvas

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

      @@Codemycom ​ Sir I watched a video by Sentdex on the same but he fails to explain as nicely as you do. So would really appreciate if you did a video on this. Please do it as a subscriber request

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

    sir ji pls make video of printing on paper in python like (box, ractangle, lines etc)

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

    Can we print data in text widget with images??

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

    hello please how to print hard copies in python like in supermarket where we have just to click and the copies get out from the hardware Sorry i'm not english man

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

    Thank you sir....

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

      You're welcom

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

    I'm in linux mint. what about for those using Mac or Linux us.

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

      I don't have any videos on that, sorry

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

    can i print temporary file with out save option please help

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

    Sir, can you please make a video on spreadsheets? Like, how to build a spreadsheet in Python. I have always been fascinated by spreadsheets and took the first step towards building them by making a simple table that failed drastically.

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

      Will do soon. You want openpyxl

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

      @@Codemycom Thanks very much. By the way, your tutorials are very helpful! I have put together a little something, actually many things, watching your tutorials! So... I know that I am asking too much, I am sorry but, would you please like to have a look at them? An angry denial is OK by me as I am expecting that you must be very busy.

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

    Sir, how to open printer dialog using Tkinter....????

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

    From the win32api documentation (timgolden.me.uk/pywin32-docs/win32api__ShellExecute_meth.html)
    win32api.ShellExecute
    int = ShellExecute(hwnd, op , file , params , dir , bShow )
    Opens or prints a file.
    Parameters
    hwnd : PyHANDLE
    The handle of the parent window, or 0 for no parent. This window receives any message boxes an application produces (for example, for error reporting).
    op : string
    The operation to perform. May be "open", "print", or None, which defaults to "open".
    file : string
    The name of the file to open.
    params : string
    The parameters to pass, if the file name contains an executable. Should be None for a document file.
    dir : string
    The initial directory for the application.
    bShow : int
    Specifies whether the application is shown when it is opened. If the lpszFile parameter specifies a document file, this parameter is zero.
    Win32 API References
    Search for ShellExecute at msdn, google or google groups.
    Return Value
    The instance handle of the application that was run. (This handle could also be the handle of a dynamic data exchange [DDE] server application.) If there is an error, the method raises an exception.

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

    Great job! Thanks so much. Can you do tutorial on treeview?

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

      Yes, will be doing that :-)

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

    I use tkinter to build a GUI program, and now I want to print the current screen of the GUI to a paper or a pdf file or save it as image, plz how can i do it

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

      I don't have videos on that

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

      @@Codemycom can we expect it anytime soon sir?

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

      @@universal_engr No

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

    Can you make tutorial about tkinter and smartcard reader using pyscard please 😊

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

      Sorry, no plans for that

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

      😀😀

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

    Sir, win32api is not a library or directory win32print is not a library or directory.
    I am on windows 10... still ☹

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

    How to print paper A4 from treeview children?

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

    sir please now i have figure out how to convert python script into exe using cx_freeze. but how can i share this on the platform. thank you

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

      On what platform?

  • @mr.RAND5584
    @mr.RAND5584 ปีที่แล้ว

    Sir please tutorial for win32printing.

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

      Sorry, no plans for that

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

    I'm facing a problem where VSCode says: "import 'win32print' could not be resolved". How can I fix this?

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

      No idea, that's why I don't use VS Code

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

      @@Codemycom haha :D but even if I run it on terminal it tells me "no module named win32print"

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

      ​@@tontsa28 are you using a windows computer?

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

      @@Codemycom yes

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

      @@tontsa28 what terminal? Try it using Sublime text and git bash git-scm.com like I use in the videos.

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

    I got a problem when try to print qrcode using this. why??

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

    When i try to import win32print and win32api I get an error

  • @Finn-tb1qf
    @Finn-tb1qf 4 ปีที่แล้ว

    How can i change a printer ?

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

    Do a tutorial on numpy

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

      I think I already have. th-cam.com/video/l0-sgoIUviQ/w-d-xo.html

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

    Sir please start DJANGO REST FRAMEWORK sir please . Please teach by building an e-commerce site with payment gateways . Please sir please

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

      I have a Django Rest Framework course available for sale at Codemy.com

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

      @@Codemycom Sir I am India , the cost converting to dollars is too high . Is this available in Udemy.com

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

    You can't import the wind32api or the win32print.

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

      doesn't the video very clearly show that you can? lol

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

      @@Codemycom Hi John. Great series by the way. I followed along through the whole series with no problems, but could not get past this error while trying to add the import statements. I am using Windows 10. ModuleNotFoundError: No module named 'win32print'.... ModuleNotFoundError: No module named 'win32api'. I finally gave up.

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

      What did you find when you googled "ModuleNotFoundError: No module named 'win32print'"

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

    Breaking Bad.

  • @anuragchauhan-stark8012
    @anuragchauhan-stark8012 3 ปีที่แล้ว

    Share code please....

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

    how to make a program with tkinter, our program like we enter a two date in two different entry box and we enter the both date and click the button and our program see that data between this two date and our program print the data in the treeview ,please sir reply and solve my query.

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

      Dude, I'm not going to write your code. You can stop posting this everywhere.

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

      @@Codemycom Ok sir thank you.

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

      @@Codemycom Sir you can get something like my question please reply.

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

    y u have so less views

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

      Tell your friends ;-)

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

      @@Codemycom I'm just a kid no one learns these things except me

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

      @@sudin99and81 Well I'm glad you're here

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

    how can we print a selected pages??