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