ParthJadhav / Tkinter-Designer

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

The assets folder is empty #255

Closed 1893945 closed 1 year ago

1893945 commented 1 year ago

Hi,

Tkinter Designer show "Project seccessfully", but the assets folder is empty.

run builded gui.py, Show blank window page,The effect is as follows:

image

builded gui.py code is:

########################################################

This file was generated by the Tkinter Designer by Parth Jadhav

https://github.com/ParthJadhav/Tkinter-Designer

from pathlib import Path

from tkinter import *

Explicit imports to satisfy Flake8

from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage

OUTPUT_PATH = Path(file).parent ASSETS_PATH = OUTPUT_PATH / Path("./assets")

def relative_to_assets(path: str) -> Path: return ASSETS_PATH / Path(path)

window = Tk()

window.geometry("800x600") window.configure(bg = "#FFFFFF")

canvas = Canvas( window, bg = "#FFFFFF", height = 600, width = 800, bd = 0, highlightthickness = 0, relief = "ridge" )

canvas.place(x = 0, y = 0) canvas.create_rectangle( 0.0, 0.0, 800.0, 600.0, fill="#000000", outline="") window.resizable(False, False) window.mainloop() #############################################################

image