Proxlight / Proxlight-Designer-v2

MIT License
123 stars 53 forks source link

Display error #18

Open Dartsgame974 opened 1 year ago

Dartsgame974 commented 1 year ago

image

the figma preview image

the code

`from tkinter import *

def btn_clicked(): print("Button Clicked")

window = Tk()

window.geometry("927x605") window.configure(bg = "#FFFFFF") canvas = Canvas( window, bg = "#FFFFFF", height = 605, width = 927, bd = 0, highlightthickness = 0, relief = "ridge") canvas.place(x = 0, y = 0)

background_img = PhotoImage(file = f"background.png") background = canvas.create_image( -445.5, -139.5, image=background_img)

canvas.create_text( -445.5, -277.5, text = "Emotify", fill = "#ffffff", font = ("Montserrat-Black", int(55.0)))

entry0_img = PhotoImage(file = f"img_textBox0.png") entry0_bg = canvas.create_image( -446.0, -192.5, image = entry0_img)

entry0 = Entry( bd = 0, bg = "#ffffff", highlightthickness = 0)

entry0.place( x = -863, y = -217, width = 834, height = 47)

img0 = PhotoImage(file = f"img0.png") b0 = Button( image = img0, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b0.place( x = -863, y = -141, width = 834, height = 40)

img1 = PhotoImage(file = f"img1.png") b1 = Button( image = img1, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b1.place( x = -544, y = -64, width = 34, height = 20)

img2 = PhotoImage(file = f"img2.png") b2 = Button( image = img2, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b2.place( x = -476, y = -64, width = 60, height = 20)

img3 = PhotoImage(file = f"img3.png") b3 = Button( image = img3, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b3.place( x = -397, y = -64, width = 67, height = 20)

img4 = PhotoImage(file = f"img4.png") b4 = Button( image = img4, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b4.place( x = -863, y = -7, width = 834, height = 40)

window.resizable(False, False) window.mainloop() `

Proxlight commented 1 year ago

Set the x and y axis to 0 in figma.com/community

On Wed, 2 Aug 2023, 4:41 am Dartsgame974, @.***> wrote:

[image: image] https://user-images.githubusercontent.com/80755313/257660978-e642f497-c342-4ae6-929e-04d49f8d7fe1.png

the figma preview [image: image] https://user-images.githubusercontent.com/80755313/257661030-483b46b6-c804-47dc-ae19-06576ab87a51.png

the code

`from tkinter import *

def btn_clicked(): print("Button Clicked")

window = Tk()

window.geometry("927x605") window.configure(bg = "#FFFFFF") canvas = Canvas( window, bg = "#FFFFFF", height = 605, width = 927, bd = 0, highlightthickness = 0, relief = "ridge") canvas.place(x = 0, y = 0)

background_img = PhotoImage(file = f"background.png") background = canvas.create_image( -445.5, -139.5, image=background_img)

canvas.create_text( -445.5, -277.5, text = "Emotify", fill = "#ffffff", font = ("Montserrat-Black", int(55.0)))

entry0_img = PhotoImage(file = f"img_textBox0.png") entry0_bg = canvas.create_image( -446.0, -192.5, image = entry0_img)

entry0 = Entry( bd = 0, bg = "#ffffff", highlightthickness = 0)

entry0.place( x = -863, y = -217, width = 834, height = 47)

img0 = PhotoImage(file = f"img0.png") b0 = Button( image = img0, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b0.place( x = -863, y = -141, width = 834, height = 40)

img1 = PhotoImage(file = f"img1.png") b1 = Button( image = img1, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b1.place( x = -544, y = -64, width = 34, height = 20)

img2 = PhotoImage(file = f"img2.png") b2 = Button( image = img2, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b2.place( x = -476, y = -64, width = 60, height = 20)

img3 = PhotoImage(file = f"img3.png") b3 = Button( image = img3, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b3.place( x = -397, y = -64, width = 67, height = 20)

img4 = PhotoImage(file = f"img4.png") b4 = Button( image = img4, borderwidth = 0, highlightthickness = 0, command = btn_clicked, relief = "flat")

b4.place( x = -863, y = -7, width = 834, height = 40)

window.resizable(False, False) window.mainloop() `

— Reply to this email directly, view it on GitHub https://github.com/Proxlight/Proxlight-Designer-v2/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQU322CDS2JH4EK7TJXLL7TXTGEIPANCNFSM6AAAAAA3AN7NMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>