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:
parent
c556fbcc94
commit
6af35a55bb
11
d3rpc.py
11
d3rpc.py
|
@ -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
BIN
diablo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Loading…
Reference in a new issue