proxlight / proxlight-designer-v2 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
How hard would it be to implement the conversion of ttk.ComboBox? It works like a dropdown and it's a subclass of Entry
, which is already implemented. Are there any plans to add more elements? I could work on this!
๐ Proxlight Team, nice to meet you.
First of all love your content ๐ฏ have been a YouTube sub for a long time :)
Was following your latest Proxlight Designer 2021 youtube video
python3 Proxlight Designer.py
.https://www.figma.com/file/kji5xUqZwCfjoVYmQDk7FV/Auto-Attender?node-id=0%3A1
also tried input as https://www.figma.com/file/kji5xUqZwCfjoVYmQDk7FV/Auto-Attender
but same error), new Figma token and a path to export code.udhavpawar@udhav:~/Downloads/Proxlight-Designer-v2-main/Proxlight Designer Source File$ python3 Proxlight\ Designer.py
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
return self.func(*args)
File "/Users/udhavpawar/Downloads/Proxlight-Designer-v2-main/Proxlight Designer Source File/Proxlight Designer.py", line 336, in btn_clicked
generate_code(token,URL, output_path)
File "/Users/udhavpawar/Downloads/Proxlight-Designer-v2-main/Proxlight Designer Source File/Proxlight Designer.py", line 178, in generate_code
image_link = requests.get(response.json()["images"][item_id])
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 528, in request
prep = self.prepare_request(req)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 456, in prepare_request
p.prepare(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/models.py", line 316, in prepare
self.prepare_url(url, params)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
Let me know if any additional info is required :)
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()
`
DONT DOWNLOAD
I got this error while python Proxlight\ Designer.py
in linux
error:
window.iconbitmap("logo.ico")
File "/usr/lib/python3.11/tkinter/__init__.py", line 2136, in wm_iconbitmap
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: bitmap "logo.ico" not define
Hi, thanks for making great tools Proxlight-Designer-v2!
I am research engineer and main language is python. so I'm new to such tool for designer. I am making a lickert scale from figma.com shown as below.
After editing the above design, python script was generated named window.py by Proxlight Designer desktop app.
But only white page is shown since window.py only includes the code which generates white background. Bellow is the full code.
from tkinter import *
def btn_clicked():
print("Button Clicked")
window = Tk()
window.geometry("928x1159")
window.configure(bg = "#ffffff")
canvas = Canvas(
window,
bg = "#ffffff",
height = 1159,
width = 928,
bd = 0,
highlightthickness = 0,
relief = "ridge")
canvas.place(x = 0, y = 0)
window.resizable(False, False)
window.mainloop()
Is there something like naming rule of each component such like "Background", "Textbox" in editor?
It would be very helpful if you could provide any advises or video instructions. I also watched your Youtube channel. good
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\moham\anaconda3\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "C:\Users\moham\Proxlight-Designer-v2\Proxlight Designer Source File\ProxlightDesigner.py", line 336, in btn_clicked
generate_code(token,URL, output_path)
File "C:\Users\moham\Proxlight-Designer-v2\Proxlight Designer Source File\ProxlightDesigner.py", line 303, in generate_code
py_file.writelines(final_code)
File "C:\Users\moham\anaconda3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2028' in position 29: character maps to
Please help me! When run a Proxlite designer, Avast moves Proxiite designer to quarantine beacuse is infected with Win64:MalwareGen. If this sure?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.