How To Resize Entry Box By Height - Python Tkinter GUI Tutorial #38

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

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

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

    Hey, just wanted to tell that you are the teacher who leaves no confusions in my mind. I have learnt soo much from you and this is priceless. Hope you continue making these videos.

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

      Wow, thank you! I will

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

    Hey! For anyone trying to delete the entry widget:
    The method .delete(x,y) takes two parameters, x is the position of the first character that will be deleted and y is the position of the first character that will remain. If you want to delete everything, set y to 'end'
    And for John: Cool video, man!

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

    can i change Sclae's height? I want a long scale in my program

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

    Thank you John for another valuable video!

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

      Welcome!

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

    I am trying to make an app to send emails and i want to to make it like a tall entry box with many lines. Is there anyway i can do that?

  • @ex-pat4483
    @ex-pat4483 3 ปีที่แล้ว +1

    I may be mistaken but the .delete(0,end) represents the range in the box to be deleted, try (1,end)

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

      That's correct

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

    Hi, is it possible to make the entry expandable within the GUI just like Excel?

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

      Sure...I'll probably discuss that at some point.

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

      you Use scrollbar to expand it

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

    Hello. So, there’s no way to make multi line entry with Tk? Bigger font makes it look better, but not good with functionality.

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

      Yeah, I might do a video on that in the future...you can use the Text widget for that

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

    How do you mix entry boxes with say a notes text box. I used one of your apps for a project tracker but I want to write notes on the project. I am having trouble adding a multi-line text field (for notes). Which video would show this. Thanks

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

      You need a text widget

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

      @@Codemycom when I have the text widget in place of the entry box, I don't see anything after it.
      No buttons are visible. I just want a three row field for a quick note.

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

      @@Richkotite1 I'm not sure what you're doing, but you have an error in your code if it isn't behaving as expected.

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

      @@Codemycom I figured out, my point was there are many examples of ENTRY fields as in your video #20 which is a fantastic learning aid...there isn't a real world example that has a few entry fields, a list box, a radio button or two...like what you might have on a real world app. I didn't see may examples with Entry fields and text fields....I wanted a text field to use as a notes field.

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

      @@Richkotite1 Sorry, but you're mistaken. I have nearly 200 tkinter videos on this playlist with dozens upon dozens of examples of exactly that sort.

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

    Hey John. firstly I love your tutorials on this stuff and for your next Tkinter tutorial could you possibly talk about adding buttons to a canvas/frame and being able to use a scrollbar to view them as I cannot find any good tutorials online.

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

      Yes, I'll be talking about the canvas in the future :-)

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

    It shows me "Cannot access member "delete" for type "None"
    Member "delete" is unknownPylance", under delete method.
    and
    AttributeError: 'NoneType' object has no attribute 'get'
    How can I fix this?

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

      indent your code correctly as seen in the video

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

      @@Codemycom i did the same but still its showing the same, plz help

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

      @@swarnajitroy2539 No, you didn't do the same. You must use the tab button on your keyboard, and it must be exact.

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

    ▶️ 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
    Take $30 off with coupon code: youtube1

  • @mazenabdul-knerr5804
    @mazenabdul-knerr5804 4 ปีที่แล้ว

    how do you make a entry box smaller

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

      change the font size to something smaller. font=("Helvetica", 8) for instance

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

    Thank you Sir, you're so great!!

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

      Thanks for watching!

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

    Sir, I want my Entry widget dynamically changes its width or length to fit the long inputs, is there a way to do that?

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

      sure, I think I discuss that sort of thing somewhere on the playlist

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

    You can use ipady in grid system to increase the height

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

      ipady is for internal padding..the I stands for internal.

  • @sid.mallick
    @sid.mallick 4 ปีที่แล้ว

    Please note that "pack"/"grid" attribute "ipady" helps in resizing heights of entry boxes.

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

      not the height of them

    • @sid.mallick
      @sid.mallick 4 ปีที่แล้ว +2

      It does work, Sir.
      Please check these 2 codes...
      Entry(root, width=30).pack(ipady=30)
      # or
      Entry(root, width=30).grid(row=0, column=0, ipady=30)

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

      Yes it increases the height but we can type any text in the padding area

  • @Mubashir_Cpp_Corner
    @Mubashir_Cpp_Corner 3 หลายเดือนก่อน +1

    .pack(ipady=10). by this method the size of entry box will increase but the font will the be the same.

  • @mbn-code
    @mbn-code 4 ปีที่แล้ว

    but is there a way to make the Entry box bigger without making the Font/text bigger? inside the Entry

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

      Not really

    • @mbn-code
      @mbn-code 4 ปีที่แล้ว

      @@Codemycom ok thanks

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

    Why are you moving your head in right direction, Is your conputer screen is there ?? please reply

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

    Well you can use ipadx and ipady. Works like a charm.

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

    Why bother with all this when we have Text widget with which we can increase height

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

      Because they're different widgets used for different purposes.

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

    thanks

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

    nice

  • @AnasKhan-sy7sr
    @AnasKhan-sy7sr 3 ปีที่แล้ว

    you looks like heisenberg 😂

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

    Good

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

    The Answer is: you can't.

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

      Obviously you can

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

    référencement

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

    i dont think this is the correct approach..i first liked your video bt later i disliked it because you never used the height attribute...the approach is makeshifter..

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

      You're wrong. There is no height attribute, that's the whole point.

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

      @@Codemycom thankyou..bt your tutorials are really worth watching..thanks

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

      @@ajinkyasathe8861 Thanks for watching!