Problème avec la commande import

codepython Messages postés 2 Date d'inscription samedi 7 mars 2015 Statut Membre Dernière intervention 7 mars 2015 - Modifié par codepython le 7/03/2015 à 09:46
codepython Messages postés 2 Date d'inscription samedi 7 mars 2015 Statut Membre Dernière intervention 7 mars 2015 - 7 mars 2015 à 09:45
Bonjour, ça faisait longtemps que je n'avais pas codé en python, et à quand je reprend mes vieux scripts, plus rien ne marche; il y a des erreur partout.
::

from tkinter import Button, Entry, Tk, Label
import tkinter.font, Image, ImageTk, tkMessageBox, sys
from ReadWriteMemory import rwm

class Log:

def __init__(self, parent):

def testme():
pass

def main():
root = tk()
wFilter = 490; hfilter =286
w = Wfilter - 8; h = hFilter - 47
sw = root.winfo_screenwidth()
sh = root.winfo_screnheight()
x = (sw - w) / 2
y = (sh - h) / 2
root.geometry('%dx%d+%d+%d' % (w, h, x, y))
root.resizable(width=False, height=False)
root.title('Trainer Darkest Dongeon')
root.wm_iconbitmap('C:\\grim reaper.ico')
root.configure(background='#000')
image = Image.open('C:\\Wallpaper_bg.jpg')
photo = ImageTk.PhotoImage(image)
Label = Label(root, image=photo)
label.image = photo
label.pack()
MainWindow = Trainer(root)

root.mainloop()
sys.exit(1)

if__name__ == '__main__':
main()

1 réponse

codepython Messages postés 2 Date d'inscription samedi 7 mars 2015 Statut Membre Dernière intervention 7 mars 2015
7 mars 2015 à 09:45
Excusez moi de ma mal-politesse, je reformule:
Bonjour, je rencontre plusieurs problèmes avec mon code , en cherchant a extraire plusieurs chose d'un .exe . Pourriez vous m'aider ?

Merci d'avance , Au-revoir
0
Rejoignez-nous