ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI 🐍
BSD 3-Clause "New" or "Revised" License
9.05k stars 831 forks source link

Rounded TextBox and TextArea are not produced as expected #258

Closed Leoxhiu closed 1 year ago

Leoxhiu commented 2 years ago

Rounded buttons work fine with the steps provided, but it is not as expected when comes to rounded text box and text area. Not sure if I did anything wrong.

Expected:

image image

Outcome:

image image

Figma:

I have followed the documentation and YouTube tutorial to group and name the elements. image image

Generated code:

TextBox

img_email_entry = PhotoImage(
    file=relative_to_assets("entry_1.png"))
email_entry_bg = canvas.create_image(
    240.0,
    149.0,
    image=img_email_entry
)
email_entry = Entry(
    bd=1,
    bg="#FFFFFF",
    highlightthickness=0
)
email_entry.place(
    x=135.0,
    y=134.0,
    width=210.0,
    height=28.0
)

TextArea

entry_image_5 = PhotoImage(
    file=relative_to_assets("entry_5.png"))
entry_bg_5 = canvas.create_image(
    593.0,
    290.0,
    image=entry_image_5
)
entry_5 = Text(
    bd=0,
    bg="#FFFFFF",
    highlightthickness=0
)
entry_5.place(
    x=440.0,
    y=188.0,
    width=306.0,
    height=202.0
)
ParthJadhav commented 1 year ago

Hey @Leoxhiu , I guess there was a section in the Youtube video where I say that we don't need to group the elements for textbox & text area.

ParthJadhav commented 1 year ago

Just use a normal rectangle for text box rather than a group..

Closing this @Leoxhiu