Dropping pyinstaller

can't get the background image to compile at all, if anybody knows how to do that, feel free to make a pull
This commit is contained in:
Zoey 2022-01-08 11:24:30 +01:00
parent c556fbcc94
commit 6af35a55bb
2 changed files with 9 additions and 2 deletions

View file

@ -1,14 +1,20 @@
#
from pypresence import Presence
from pypresence import Client
from tkinter import *
import time
import os
time = time.time()
client_id = '835127760849993798' #Discord client ID
RPC = Presence(client_id)
Connected = False
#stupid bg fix
scriptpath = os.path.abspath(__file__)
scriptdir = os.path.dirname(scriptpath)
imagepath = os.path.join(scriptdir, "diablo.png")
#Classes
ClassList = [
'--Select--',
@ -119,7 +125,8 @@ chosenGenderFemale.set(PortraitListFemale[1])
chosenGenderMale = StringVar()
chosenGenderMale.set(PortraitListMale[1])
bgdiablo = PhotoImage(file='diablo.png')
bgdiablo = PhotoImage(file=imagepath)
labelDiablo = Label(win, image=bgdiablo)
labelDiablo.place(relx=0.5, rely=0.5, anchor=CENTER)

BIN
diablo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB