Dec-06-2020, 11:48 AM
Hi,
How can I create window (using tkinter) with .dxf file inside this window?
Something like:
" import ezdxf
from tkinter import *
aaa = "E:\dxf_test\dxf_test\dxf_test1.dxf"
doc = ezdxf.readfile(aaa)
window = Tk()
my_img1 = PhotoImage(file=doc)
my_label = Label(window, image=my_img1).pack()"
Is it possible to open directly .dxf image in tkinter's window or I must convert it to .png/.jpg or how can I do this?
How can I create window (using tkinter) with .dxf file inside this window?
Something like:
" import ezdxf
from tkinter import *
aaa = "E:\dxf_test\dxf_test\dxf_test1.dxf"
doc = ezdxf.readfile(aaa)
window = Tk()
my_img1 = PhotoImage(file=doc)
my_label = Label(window, image=my_img1).pack()"
Is it possible to open directly .dxf image in tkinter's window or I must convert it to .png/.jpg or how can I do this?