#!/usr/bin/python # -*- coding: cp1252 -*- import wx import module3 from module5 import * from module0 import * class Game: def __init__(self): # ---------------------------------------------------------------- # Lancement de la fenêtre principale # ---------------------------------------------------------------- print 'PLATECARACT (dans Module1.Game) = ', PLATECARACT[:] self.win = wx_FRM_Principale(self, -1, 'Test 01') self.win.Show() self.lastMove = -1 def Initialize(self): self.Tempo = Partie1() global PLATECARACT PLATECARACT = self.Tempo.PLATECARACT[:] print 'PLATECARACT (dans Module1.Game.Initialize) = ', PLATECARACT[:] module3.Fonct_01() #------------------------------------------------------------------------- class wx_FRM_Principale(wx.Frame): """ Fenêtre principale""" #------------------------------------------------------------------------- def __init__(self, game, id, title): wx.Frame.__init__(self, None, id, title) self.game = game self.Show(True) #----------------------------------------------------------------- # C'est à partir de là que commence l'initialisation de la partie1 #----------------------------------------------------------------- self.game.Initialize() #------------------------------------------------------------------------- #------------------------------------------------------------------------- def main(): #------------------------------------------------------------------------- app = wx.PySimpleApp() rev = Game() app.MainLoop() if __name__ == '__main__': main() #-------------------------------------------------------------------------