Skip to content

Commit

Permalink
fix: detecting all input fields to have placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
Axorax committed May 3, 2024
1 parent b85278a commit a898058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ test/
# Files

main.py
*.spec
*.spec
*.txt
6 changes: 4 additions & 2 deletions tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def textbox(i, c, p=False):
canvas.create_image({int(i['x'] + i['width'] / 2)}, {int(i['y'] + i['height'] / 2)}, image=textbox_image_{c})
textbox_{c} = {"TkForge_Entry" if p else "tk.Entry"}(
textbox_{c} = {"TkForge_Entry" if p == True else "tk.Entry"}(
bd=0,
bg="{i["background"]}",
fg="{i['foreground']}"{p}
insertbackground="{i['foreground']}",
highlightthickness=0
)
Expand All @@ -58,10 +59,11 @@ def textarea(i, c, p=False):
canvas.create_image({int(i['x'] + i['width'] / 2)}, {int(i['y'] + i['height'] / 2)}, image=textarea_image_{c})
textarea_{c} = {"TkForge_Text" if p else "tk.Text"}(
textarea_{c} = {"TkForge_Text" if p == True else "tk.Text"}(
bd=0,
bg="{i["background"]}",
fg="{i["foreground"]}"{p}
insertbackground="{i['foreground']}",
highlightthickness=0
)
Expand Down

0 comments on commit a898058

Please sign in to comment.