Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file was generated by the Tkinter Designer by Parth Jadhav
- # https://github.com/ParthJadhav/Tkinter-Designer
- import os
- 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(r"D:\Games I Coded\PokeBase\build\assets\frame0")
- def relative_to_assets(path: str) -> Path:
- return ASSETS_PATH / Path(path)
- window = Tk()
- window.geometry("1000x700")
- window.configure(bg = "#000000")
- canvas = Canvas(
- window,
- bg = "#000000",
- height = 700,
- width = 1000,
- bd = 0,
- highlightthickness = 0,
- relief = "ridge"
- )
- canvas.place(x = 0, y = 0)
- image_image_1 = PhotoImage(
- file=relative_to_assets("image_1.png"))
- image_1 = canvas.create_image(
- 504.0,
- 41.0,
- image=image_image_1
- )
- canvas.create_text(
- 389.0,
- 11.0,
- anchor="nw",
- text="PokeBase",
- fill="#F8F8F8",
- font=("Fredoka One Regular", 48 * -1)
- )
- canvas.create_text(
- 307.0,
- 665.0,
- anchor="nw",
- text="Beta v1 of PokeBase, There may be bugs.",
- fill="#F8F8F8",
- font=("InriaSans Light", 24 * -1)
- )
- image_image_2 = PhotoImage(
- file=relative_to_assets("image_2.png"))
- image_2 = canvas.create_image(
- 371.0,
- 314.0,
- image=image_image_2
- )
- button_image_1 = PhotoImage(
- file=relative_to_assets("button_1.png"))
- button_1 = Button(
- image=button_image_1,
- borderwidth=0,
- highlightthickness=0,
- command=lambda: print("button_1 clicked"),
- relief="flat"
- )
- button_1.place(
- x=47.999989072152914,
- y=125.99999995980316,
- width=350.0000109278471,
- height=250.0000152989859
- )
- image_image_3 = PhotoImage(
- file=relative_to_assets("image_3.png"))
- image_3 = canvas.create_image(
- 627.0,
- 168.0,
- image=image_image_3
- )
- button_image_2 = PhotoImage(
- file=relative_to_assets("button_2.png"))
- button_2 = Button(
- image=button_image_2,
- borderwidth=0,
- highlightthickness=0,
- command=lambda: print("button_2 clicked"),
- relief="flat"
- )
- button_2.place(
- x=587.9999890721529,
- y=125.9999847010141,
- width=350.0000109278471,
- height=250.0000152989859
- )
- image_image_4 = PhotoImage(
- file=relative_to_assets("image_4.png"))
- image_4 = canvas.create_image(
- 877.0,
- 574.0,
- image=image_image_4
- )
- button_image_3 = PhotoImage(
- file=relative_to_assets("button_3.png"))
- button_3 = Button(
- image=button_image_3,
- borderwidth=0,
- highlightthickness=0,
- command=lambda: print("button_3 clicked"),
- relief="flat"
- )
- button_3.place(
- x=587.9999890721529,
- y=404.9999847010141,
- width=350.0000109278471,
- height=250.0000152989859,
- )
- image_image_5 = PhotoImage(
- file=relative_to_assets("image_5.png"))
- image_5 = canvas.create_image(
- 123.0,
- 496.0,
- image=image_image_5
- )
- button_image_4 = PhotoImage(
- file=relative_to_assets("button_4.png"))
- button_4 = Button(
- image=button_image_4,
- borderwidth=0,
- highlightthickness=0,
- command=lambda: print("button_4 clicked"),
- relief="flat"
- )
- button_4.place(
- x=47.999989072152914,
- y=404.9999847010141,
- width=350.0000109278471,
- height=250.0000152989859
- )
- image_image_6 = PhotoImage(
- file=relative_to_assets("image_6.png"))
- image_6 = canvas.create_image(
- 667.0,
- 40.0,
- image=image_image_6
- )
- image_image_7 = PhotoImage(
- file=relative_to_assets("image_7.png"))
- image_7 = canvas.create_image(
- 327.0,
- 40.0,
- image=image_image_7
- )
- canvas.create_text(
- 658.0,
- 488.0,
- anchor="nw",
- text="PKHeX",
- fill="#F8F8F8",
- font=("FredokaOne Regular", 64 * -1)
- )
- canvas.create_text(
- 664.0,
- 488.0,
- anchor="nw",
- text="PKHeX",
- fill="#F8F8F8",
- font=("FredokaOne Regular", 64 * -1)
- )
- canvas.create_text(
- 648.0,
- 181.0,
- anchor="nw",
- text="Poke\nForums",
- fill="#F8F8F8",
- font=("FredokaOne Regular", 64 * -1)
- )
- canvas.create_text(
- 654.0,
- 181.0,
- anchor="nw",
- text="Poke\nForums",
- fill="#F8F8F8",
- font=("FredokaOne Regular", 64 * -1)
- )
- window.resizable(False, False)
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement