IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

wxPython Discussion :

Problème avec wx.MDIChildFrame et wx.MDIParentFrame


Sujet :

wxPython

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut Problème avec wx.MDIChildFrame et wx.MDIParentFrame
    Bonjour,

    Je tente de faire une fenêtre qui recueillerait des paramètres, et modifierait le textCtrl de la fenêtre principale (dans des classes différentes)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    import wxversion, os, getopt, sys, urllib, signal, urlparse 
    wxversion.select("2.8")
    import wx
     
    class VarGUI():
        currentBuffer = ""
     
     
    class VarPOL():
        int2 = 0
     
    class VarOther():
        int3 = 0
     
     
    ########################## DECLARATION FENÊTRE PRINCIPALE #########################
     
    class POLscFenp(wx.MDIParentFrame): #fenêtre principale
     
        def __init__(self, titre):
            wx.MDIParentFrame.__init__(self, None, -1, title = titre, style = wx.CLOSE_BOX | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX, size = (1024, 768))
     
            print self
            #******************* Menus ******************
     
            #main
     
            self.fileMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.commandMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.sendMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.configMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.aboutMenu = wx.Menu(style = wx.MENU_TEAROFF)
     
            #sub
     
            self.fileDirectorySubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.prefixeSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.wineVersionSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.CDROMSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
     
            #******************* Assignation ***************
     
            #Fichier
     
            self.fileMenu.Append(wx.ID_NEW, "&Nouveau\tCTRL+n", "Nouveau script")
            self.fileMenu.Append(wx.ID_OPEN, "&Ouvrir\tCTRL+o", "Ouvrir un script/fichier")
            self.fileMenu.Append(wx.ID_SAVE, "&Enregistrer\tCTRL+s", "Enregistrer le fichier courant")
            self.fileMenu.Append(wx.ID_SAVEAS, "&Enregistrer sous...\tCTRL+a", "Enregistrer sous")
            self.fileMenu.AppendSeparator()
            self.fileMenu.Append(wx.ID_EXIT, "&Quitter\tCTRL+q", "Quitter")     
     
            #Send
     
            self.sendMenu.Append(-1, "&Executer le script", "Executer le script dans PlayOnLinux")
            self.sendMenu.Append(-1, "&Proposer son script", "Proposer son script sur playonlinux.com")
     
            #Files and directory (SUB)
     
            self.fileDirectorySubMenu.Append(-1, "&Se placer dans un répertoire", "")
     
            #Prefix (SUB)
     
            self.prefixeSubMenu.Append(-1, "&Créer un préfixe", "")
     
            #Wine Versions (SUB)
     
            self.wineVersionSubMenu.Append(-1, "&Assigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Désassigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Installer une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Désinstaller une version de Wine", "")
     
            #CDROM (SUB)
     
            self.CDROMSubMenu.Append(-1, "&Choisir le point de montage", "")
            self.CDROMSubMenu.Append(-1, "&Monter le lecteur sur un point de montage", "")
            self.CDROMSubMenu.Append(-1, "&Tester la présence d'un executable", "")
     
            #Commands
     
            self.commandMenu.AppendSubMenu(self.fileDirectorySubMenu, "Fichier et répertoire", "")
            self.commandMenu.AppendSubMenu(self.prefixeSubMenu, "Préfixes Wine", "")
            self.commandMenu.AppendSubMenu(self.wineVersionSubMenu, "Versions de Wine", "")
            self.commandMenu.AppendSubMenu(self.CDROMSubMenu, "CD-ROM", "")
     
            #Config
     
            self.configMenu.Append(1000, "&Configurer l'interface", "")
            self.configMenu.Append(-1, "&Langue", "")
     
            #About
     
            self.aboutMenu.Append(wx.ID_HELP, "&Aide en ligne", "Obtenir de l'aide en ligne")
            self.aboutMenu.Append(wx.ID_ABOUT, "&À propos de PolScriptCreator", "À propos de PolScriptCreator")
     
            #******************* Implantation **************
     
            self.menuBar = wx.MenuBar()
            self.menuBar.Append(self.fileMenu, "&Fichier")
            self.menuBar.Append(self.sendMenu, "&Finalisation")
            self.menuBar.Append(self.commandMenu, "&Fonctions")
            self.menuBar.Append(self.configMenu, "&Configuration")
            self.menuBar.Append(self.aboutMenu, "&A propos")
            self.SetMenuBar(self.menuBar)
     
            #******************* ToolBar ********************
     
            self.toolBar = self.CreateToolBar(wx.TB_TEXT)
            self.toolBar.AddLabelTool(wx.ID_NEW, "", wx.ArtProvider.GetBitmap("gtk-new", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_OPEN, "", wx.ArtProvider.GetBitmap("gtk-open", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_SAVE, "", wx.ArtProvider.GetBitmap("gtk-save", wx.ART_TOOLBAR))
     
            #******************* TextArea *******************
     
            self.currentTextArea = wx.TextCtrl(self, -1, "Bonjour ", wx.DefaultPosition,(1024, 764), wx.TE_MULTILINE)  
     
            ######################################### EVENENEMENTS ##############################################
     
            wx.EVT_MENU(self, wx.ID_ABOUT,  self.aboutPOLSC)  
            wx.EVT_MENU(self, 1000,  self.startFunctionCd)
     
         ######################################## FONCTIONS GUI ############################################## 
     
     
        def aboutPOLSC(self, event):   
     
            self.aboutBox = wx.AboutDialogInfo()
            self.aboutBox.SetName("PolScriptCreator")
            self.aboutBox.SetVersion("0.1")
            self.aboutBox.SetDescription("Créateur de script pour PlayOnLinux")
            self.aboutBox.SetCopyright("(C) Zoloom \nSous licence GPL version 3")
            self.aboutBox.AddDeveloper("Zoloom (Cassarin-Grand Arthur)")
            self.aboutBox.AddArtist("Les logos sont issus des projets Tango et Crystal Project")
            self.aboutBox.SetWebSite("http://www.playonlinux.com")
     
            self.about = wx.AboutBox(self.aboutBox)
     
        def startFunctionCd(self, event):
            fenFCd = FunctionCd("Parcourir un répertoire")
            fenFCd.Show(True)
     
    class FunctionCd(wx.MDIChildFrame):
            def __init__(parent, titre):
                wx.MDIChildFrame.__init__(POLscFenp, -1, title = titre, style = wx.CLOSE_BOX | wx.MINIMIZE_BOX, size = (300, 500))
     
     
     
     
    ########################## DECLARATION DE L'APPLICATION ###########################
     
    class POLscApp(wx.App):        #instance principale classe application
     
        def OnInit(self):
            fenp = POLscFenp("PlayOnLinux - PolScriptCreator")
            fenp.Center(wx.BOTH)
            fenp.Show(True)
            self.SetTopWindow(fenp)
     
            return True
     
    FenpApp = POLscApp()        #création de l'application
    FenpApp.MainLoop()
    J'obtiens l'erreur suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    Traceback (most recent call last):
     File "/home/zoloom/Programmation/Python/POLscriptCreator/polscriptc.py", line 158, in startFunctionCd
    fenFCd = FunctionCd("Parcourir un répertoire")
     File "/home/zoloom/Programmation/Python/POLscriptCreator/polscriptc.py", line 163, in __init__
    wx.MDIChildFrame.__init__(POLscFenp, -1, title = titre, style = wx.CLOSE_BOX | wx.MINIMIZE_BOX, size = (300, 500))
    TypeError: unbound method __init__() must be called with MDIChildFrame instance as first argument (got type instance instead)
    Je pense que sa vient d'un passage de paramètre, j'ai beau avoir essayer d'inverser les arguments sa ne marche pas mieux.

    Merci d'avance.

  2. #2
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    Essaye ça:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    class FunctionCd(wx.MDIChildFrame):
            def __init__(parent, titre):
                wx.MDIChildFrame.__init__(self, -1, title = titre, style = wx.CLOSE_BOX | wx.MINIMIZE_BOX, size = (300, 500))

  3. #3
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    Quelques autres choses sont à changer, je te poste un code qui fonctionne.
    Les changements sont en rouge et en gras:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    # -*- coding:iso-8859-15 -*-
    import wxversion, os, getopt, sys, urllib, signal, urlparse 
    wxversion.select("2.8")
    import wx
    
    class VarGUI(object):
        currentBuffer = ""
        
        
    class VarPOL(object):
        int2 = 0
        
    class VarOther(object):
        int3 = 0
        
    
    ########################## DECLARATION FENÊTRE PRINCIPALE #########################
    
    class POLscFenp(wx.MDIParentFrame): #fenêtre principale
        
        def __init__(self, titre):
            wx.MDIParentFrame.__init__(self, None, -1, title = titre,
                style = wx.DEFAULT_FRAME_STYLE |wx.CLOSE_BOX | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX, size = (1024, 768))
            
            #print self
            #******************* Menus ******************
            
            #main
            
            self.fileMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.commandMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.sendMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.configMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.aboutMenu = wx.Menu(style = wx.MENU_TEAROFF)
            
            #sub
            
            self.fileDirectorySubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.prefixeSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.wineVersionSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.CDROMSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            
            #******************* Assignation ***************
            
            #Fichier
            
            self.fileMenu.Append(wx.ID_NEW, "&Nouveau\tCTRL+n", "Nouveau script")
            self.fileMenu.Append(wx.ID_OPEN, "&Ouvrir\tCTRL+o", "Ouvrir un script/fichier")
            self.fileMenu.Append(wx.ID_SAVE, "&Enregistrer\tCTRL+s", "Enregistrer le fichier courant")
            self.fileMenu.Append(wx.ID_SAVEAS, "&Enregistrer sous...\tCTRL+a", "Enregistrer sous")
            self.fileMenu.AppendSeparator()
            self.fileMenu.Append(wx.ID_EXIT, "&Quitter\tCTRL+q", "Quitter")     
           
            #Send
            
            self.sendMenu.Append(-1, "&Executer le script", "Executer le script dans PlayOnLinux")
            self.sendMenu.Append(-1, "&Proposer son script", "Proposer son script sur playonlinux.com")
            
            #Files and directory (SUB)
            
            self.fileDirectorySubMenu.Append(-1, "&Se placer dans un répertoire", "")
            
            #Prefix (SUB)
            
            self.prefixeSubMenu.Append(-1, "&Créer un préfixe", "")
            
            #Wine Versions (SUB)
            
            self.wineVersionSubMenu.Append(-1, "&Assigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Désassigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Installer une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "&Désinstaller une version de Wine", "")
                    
            #CDROM (SUB)
            
            self.CDROMSubMenu.Append(-1, "&Choisir le point de montage", "")
            self.CDROMSubMenu.Append(-1, "&Monter le lecteur sur un point de montage", "")
            self.CDROMSubMenu.Append(-1, "&Tester la présence d'un executable", "")
            
            #Commands
            
            self.commandMenu.AppendSubMenu(self.fileDirectorySubMenu, "Fichier et répertoire", "")
            self.commandMenu.AppendSubMenu(self.prefixeSubMenu, "Préfixes Wine", "")
            self.commandMenu.AppendSubMenu(self.wineVersionSubMenu, "Versions de Wine", "")
            self.commandMenu.AppendSubMenu(self.CDROMSubMenu, "CD-ROM", "")
            
            #Config
                  
            self.configMenu.Append(1000, "&Configurer l'interface", "")
            self.configMenu.Append(-1, "&Langue", "")
                
            #About
            
            self.aboutMenu.Append(wx.ID_HELP, "&Aide en ligne", "Obtenir de l'aide en ligne")
            self.aboutMenu.Append(wx.ID_ABOUT, "&À propos de PolScriptCreator", "À propos de PolScriptCreator")
                    
            #******************* Implantation **************
            
            self.menuBar = wx.MenuBar()
            self.menuBar.Append(self.fileMenu, "&Fichier")
            self.menuBar.Append(self.sendMenu, "&Finalisation")
            self.menuBar.Append(self.commandMenu, "&Fonctions")
            self.menuBar.Append(self.configMenu, "&Configuration")
            self.menuBar.Append(self.aboutMenu, "&A propos")
            self.SetMenuBar(self.menuBar)
            
            #******************* ToolBar ********************
            
            self.toolBar = self.CreateToolBar(wx.TB_TEXT)
            self.toolBar.AddLabelTool(wx.ID_NEW, "", wx.ArtProvider.GetBitmap("gtk-new", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_OPEN, "", wx.ArtProvider.GetBitmap("gtk-open", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_SAVE, "", wx.ArtProvider.GetBitmap("gtk-save", wx.ART_TOOLBAR))
                    
            #******************* TextArea *******************
                    
            #self.currentTextArea = wx.TextCtrl(self, -1, "Bonjour ", wx.DefaultPosition,(1024, 764), wx.TE_MULTILINE)  
            
            ######################################### EVENENEMENTS ##############################################
            
            wx.EVT_MENU(self, wx.ID_ABOUT,  self.aboutPOLSC)  
            wx.EVT_MENU(self, 1000,  self.startFunctionCd)
                        
         ######################################## FONCTIONS GUI ############################################## 
                  
            
        def aboutPOLSC(self, event):   
              
            self.aboutBox = wx.AboutDialogInfo()
            self.aboutBox.SetName("PolScriptCreator")
            self.aboutBox.SetVersion("0.1")
            self.aboutBox.SetDescription("Créateur de script pour PlayOnLinux")
            self.aboutBox.SetCopyright("(C) Zoloom \nSous licence GPL version 3")
            self.aboutBox.AddDeveloper("Zoloom (Cassarin-Grand Arthur)")
            self.aboutBox.AddArtist("Les logos sont issus des projets Tango et Crystal Project")
            self.aboutBox.SetWebSite("http://www.playonlinux.com")
            
            self.about = wx.AboutBox(self.aboutBox)
            
        def startFunctionCd(self, event):
            fenFCd = FunctionCd(self, "Parcourir un répertoire")
            fenFCd.Show(True)
            
    class FunctionCd(wx.MDIChildFrame):
            def __init__(self, parent, titre):
                wx.MDIChildFrame.__init__(self, parent, -1, 
                    title = titre, 
                    style = wx.DEFAULT_FRAME_STYLE |wx.CLOSE_BOX | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX,
                    size = (300, 500), pos=(50, 50)) 
                self.panel = wx.Panel(self, -1)
                self.txt = wx.StaticText(self.panel, -1, "fenetre enfant", pos=(10, 10))
    
    ########################## DECLARATION DE L'APPLICATION ###########################
    
    class POLscApp(wx.App):        #instance principale classe application
        
        def OnInit(self):
            fenp = POLscFenp("PlayOnLinux - PolScriptCreator")
            fenp.Center(wx.BOTH)
            fenp.Show(True)
            self.SetTopWindow(fenp)
            
            return True
        
    FenpApp = POLscApp(redirect=False)        #création de l'application
    FenpApp.MainLoop()

  4. #4
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Merci pour ta réponse très bien construite.

    Par contre ce n'est pas ce que je cherche, j'aurais aimer une petite fenêtre qui peut bouger, sans sortir du cadre de la fenêtre principale.
    Cette fenêtre pourrait grâce a des arguments modifier la zone de texte de la fenêtre principale.

    Cela correspond à quel widget ?

    Merci beaucoup en tout cas!

  5. #5
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    j'aurais aimer une petite fenêtre qui peut bouger, sans sortir du cadre de la fenêtre principale.
    C'est ce que j'obtiens en commentant le ligne de création du textearea, une fenêtre qui ne peut bouger que dans la fenêtre parente.

    Concernant ce textearea, je te conseille de le placer dans une MDIChildFrame.
    Je n'ai jamais vu d'appli MDI avec des widgets directement dans la MDIParentFrame (hormis les menus, barre d'outils, barre d'état).

    L'affichage simultané du textarea et de la fenêtre de configuration provoque des bugs d'affichage chez moi (wxpython 2.8.3.0, win XP).

  6. #6
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut


    Voilà ce que j'obtiens sous Linux.

    Alors y'a t-il moyen de faire une fenêtre tierce qui puisse modifier le textarea de la principale ?

    Merci.

  7. #7
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    Salut Zooom, je te donne un peu de grain à moudre:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    # -*- coding:iso-8859-15 -*-
     
    import os
    import sys
     
    import wx
     
    class EntryFrame(wx.Frame):
     
        def __init__(self, *args, **kwargs):
            wx.Frame.__init__(self, *args, **kwargs)
            self.CreateWidgets()
            self.DoLayout()
     
        def CreateWidgets(self):
            self.panel = wx.Panel(self, -1)
            self.txtAjout = wx.TextCtrl(self.panel, -1, "",
                style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
            self.btnAjout = wx.Button(self.panel, -1, "ajouter")
     
        def DoLayout(self):
            sizer = wx.GridBagSizer(5, 5)
            sizer.Add((0, 0), (0, 0))
            sizer.Add(self.txtAjout, (1, 1), flag = wx.EXPAND)
            sizer.Add(self.btnAjout, (2, 1), flag = wx.EXPAND)
            sizer.Add((0, 0), (3, 2))
            sizer.AddGrowableCol(1)
            sizer.AddGrowableRow(1)
            self.panel.SetSizerAndFit(sizer)
     
    class MainFrame(wx.Frame):
     
        def __init__(self, *args, **kwargs):
            wx.Frame.__init__(self, *args, **kwargs)
            self.CreateWidgets()
            self.DoLayout()
            self.DoBinding()
     
        def CreateChildFrame(self):
            self.childFrame = EntryFrame(self, -1, "child frame")
            self.childFrame.SetSize((200, 200))
            self.childFrame.SetPosition((0, 0))
            self.childFrame.Show(True)
     
        def CreateWidgets(self):
            self.panel = wx.Panel(self, -1)
            self.txtNote = wx.TextCtrl(self.panel,  -1, "",
                style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
            self.CreateChildFrame()    
     
        def DoLayout(self):
            sizer = wx.GridBagSizer(5, 5)
            sizer.Add((0, 0), (0, 0))
            sizer.Add(self.txtNote, (1, 1), flag = wx.EXPAND)
            sizer.Add((0, 0), (2, 2))
            sizer.AddGrowableCol(1)
            sizer.AddGrowableRow(1)
            self.panel.SetSizerAndFit(sizer)
     
        def DoBinding(self):
            self.Bind(wx.EVT_BUTTON, self.OnAjout, self.childFrame.btnAjout)
     
        def OnAjout(self, evt):
            txt = self.childFrame.txtAjout.GetLabel()
            note = self.txtNote.GetLabel()
            if note:
                self.txtNote.SetLabel("\r\n".join([note, txt]))
            else:
                self.txtNote.SetLabel(txt)
            evt.Skip()
     
    if __name__ == "__main__":
     
        app = wx.PySimpleApp(redirect=False)
        fr = MainFrame(None, -1, "demo frame")
        fr.SetSize((400, 400))
        fr.SetPosition((150, 150))
        fr.Show(True)
        app.MainLoop()

  8. #8
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Merci pour le code.

    Alors je l'exécute, je tape une phrase dans la fenêtre correspondante > Ajouter, mais rien ne s'affiche dans l'autre.

    Cela vient-il de moi?

    En tout cas merci de m'aider ^^

  9. #9
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    je tape une phrase dans la fenêtre correspondante > Ajouter, mais rien ne s'affiche dans l'autre.
    Aïïïe, chez moi, ça fonctionne...

    Cela vient-il de moi?
    Je pense pas, j'espère pas.. pour toi ..

    Ton gestionnaire de fenêtre ne doit pas propager les events de la même manière mais n'étant pas (encore) linuxien, je ne pourrais pas le tester..

    Essaye ça, en génerant tes propres command event:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    # -*- coding:iso-8859-15 -*-
     
    import os
    import sys
     
    import wx
     
    myEVT_BUTTON_ADD = wx.NewEventType()
    EVT_BUTTON_ADD = wx.PyEventBinder(myEVT_BUTTON_ADD, 1)
     
    class MyEvent(wx.PyCommandEvent):
        def __init__(self, evtType, id):
            wx.PyCommandEvent.__init__(self, evtType, id)
            self.mytxt = None
     
        def SetText(self, txt):
            self.mytxt = txt
     
        def GetText(self):
            return self.mytxt
     
     
    class EntryFrame(wx.Frame):
     
        def __init__(self, *args, **kwargs):
            wx.Frame.__init__(self, *args, **kwargs)
            self.CreateWidgets()
            self.DoLayout()
            self.DoBinding()
     
        def CreateWidgets(self):
            self.panel = wx.Panel(self, -1)
            self.txtAjout = wx.TextCtrl(self.panel, -1, "",
                style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
            self.btnAjout = wx.Button(self.panel, -1, "add")
     
        def DoLayout(self):
            sizer = wx.GridBagSizer(5, 5)
            sizer.Add((0, 0), (0, 0))
            sizer.Add(self.txtAjout, (1, 1), flag = wx.EXPAND)
            sizer.Add(self.btnAjout, (2, 1), flag = wx.EXPAND)
            sizer.Add((0, 0), (3, 2))
            sizer.AddGrowableCol(1)
            sizer.AddGrowableRow(1)
            self.panel.SetSizerAndFit(sizer)
     
        def DoBinding(self):
            self.Bind(wx.EVT_BUTTON, self.OnBtnAdd, self.btnAjout)
     
        def OnBtnAdd(self, evt):
     
            new_evt = MyEvent(myEVT_BUTTON_ADD, self.GetId())
            new_evt.SetText(self.txtAjout.GetLabel())
            self.GetEventHandler().ProcessEvent(new_evt)
            evt.Skip()        
     
    class MainFrame(wx.Frame):
     
        def __init__(self, *args, **kwargs):
            wx.Frame.__init__(self, *args, **kwargs)
            self.CreateWidgets()
            self.DoLayout()
            self.DoBinding()
     
        def CreateChildFrame(self):
            self.childFrame = EntryFrame(self, -1, "child frame")
            self.childFrame.SetSize((200, 200))
            self.childFrame.SetPosition((0, 0))
            self.childFrame.Show(True)
     
        def CreateWidgets(self):
            self.panel = wx.Panel(self, -1)
            self.txtNote = wx.TextCtrl(self.panel,  -1, "",
                style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
            self.CreateChildFrame()    
     
        def DoLayout(self):
            sizer = wx.GridBagSizer(5, 5)
            sizer.Add((0, 0), (0, 0))
            sizer.Add(self.txtNote, (1, 1), flag = wx.EXPAND)
            sizer.Add((0, 0), (2, 2))
            sizer.AddGrowableCol(1)
            sizer.AddGrowableRow(1)
            self.panel.SetSizerAndFit(sizer)
     
        def DoBinding(self):
            self.Bind(EVT_BUTTON_ADD, self.OnAjout)
     
        def OnAjout(self, evt):
            txt = evt.GetText()
            note = self.txtNote.GetLabel()
            if note:
                self.txtNote.SetLabel("\r\n".join([note, txt]))
            else:
                self.txtNote.SetLabel(txt)
            evt.Skip()
     
    if __name__ == "__main__":
     
        app = wx.PySimpleApp(redirect=False)
        fr = MainFrame(None, -1, "demo frame")
        fr.SetSize((400, 400))
        fr.SetPosition((150, 150))
        fr.Show(True)
        app.MainLoop()
    En tout cas merci de m'aider ^^
    Avec plaisir, c'est pour une bonne oeuvre

  10. #10
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Ça ne marche pas non plus -.-"

  11. #11
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut Besoin de savoir.
    Y aurait-il un linuxien pour confirmer que le code de mon précedent post fonctionne (ou pas)?

    Merci.

  12. #12
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Ne faudrait-il pas utiliser :

    AppendText(const wxString& text) ?

    Avec un textctrl ?

  13. #13
    Membre éprouvé
    Inscrit en
    Octobre 2006
    Messages
    92
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 92
    Par défaut
    Bonjour,

    Je ne voudrais pas être pessimiste mais... si ma mémoire est bonne, les feuilles MDI sont un système développé par Microsoft soi-même et qui n'est dispo que sous Windows ! Les feuilles MDI sont dispo sous wxPython ; mais le code ne fonctionnera que sous Windows ; si ce code est exécuté sous Linux, où les feuilles MDI n'existent pas, Linux affiche à la place des onglets... et ce que je vois sur ton screenshot, ça ressemble furieusement à un onglet...

    Je suis presque sûr d'avoir lu ça sur le net il y a quelques mois - peut-être même sur ce forum ; je suggère une recherche Google en ce sens...

  14. #14
    Membre éprouvé
    Inscrit en
    Octobre 2006
    Messages
    92
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 92
    Par défaut
    Edit :

    http://www.developpez.net/forums/sho...d.php?t=235139

    Il me semblait bien avoir lu un truc de ce genre...

  15. #15
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Oh je suis maudit, alors est-il possible de créer une classe de fenêtre dans celle principale pour qu'elle puisse modifier le textctrl de cette dernière ?

    Ou alors est-il possible de mettre des widgets dans un wxMessageDIalog ou something like that ? Enfin quelque chose qui soit autoriser a modifier ce satané widget ?

    Merci d'avance.

  16. #16
    Membre Expert Avatar de pacificator
    Profil pro
    Inscrit en
    Août 2006
    Messages
    1 074
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 074
    Par défaut
    Pour appeller des methodes depuis une fenêtre enfant, tu peux regarder par ici.

  17. #17
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    #!/usr/bin/python 
    # -*- coding:Utf-8 -*- 
     
    import wxversion, os, getopt, sys, urllib, signal, urlparse 
    wxversion.select("2.8")
    import wx
     
    class VarGUI(object):
        currentBuffer = ""
        currentFile = ""
     
     
    class VarPOL(object):
        int2 = 0
     
    class VarOther(object):
        int3 = 0
     
     
    ########################## DECLARATION FENᅵTRE PRINCIPALE #########################
     
    class POLscFenp(wx.Frame): #fenᅵtre principale
     
        def __init__(self, titre):
            wx.Frame.__init__(self, None, -1, title = titre,
                style = wx.DEFAULT_FRAME_STYLE |wx.CLOSE_BOX | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX, size = (1024, 768))
            self.SetIcon(wx.Icon("./images/configure.png", wx.BITMAP_TYPE_ANY))
     
            #print self
            #******************* Menus ******************
     
            #main
     
            self.fileMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.commandMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.sendMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.configMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.aboutMenu = wx.Menu(style = wx.MENU_TEAROFF)
     
            #sub
     
            self.fileDirectorySubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.prefixeSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.wineVersionSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
            self.CDROMSubMenu = wx.Menu(style = wx.MENU_TEAROFF)
     
            #******************* Assignation ***************
     
            #Fichier
     
            self.fileMenu.Append(wx.ID_NEW, "&Nouveau", "Nouveau script")
            self.fileMenu.Append(wx.ID_OPEN, "&Ouvrir", "Ouvrir un script/fichier")
            self.fileMenu.Append(wx.ID_SAVE, "&Enregistrer", "Enregistrer le fichier courant")
            self.fileMenu.Append(wx.ID_SAVEAS, "&Enregistrer sous...","Enregistrer sous")
            self.fileMenu.AppendSeparator()
            self.fileMenu.Append(wx.ID_EXIT, "&Quitter", "Quitter")     
     
            #Send
     
            self.runMenuObject = wx.MenuItem(self.sendMenu, 100, "&Executer le script")
            self.runMenuObject.SetBitmap(wx.Bitmap("images/run.png"))
            self.sendMenu.AppendItem(self.runMenuObject)
     
            self.proposeMenuObject = wx.MenuItem(self.sendMenu, 101, "&Proposer son script")
            self.proposeMenuObject.SetBitmap(wx.Bitmap("images/up.png"))
            self.sendMenu.AppendItem(self.proposeMenuObject)
     
            #Files and directory (SUB)
     
            self.fileDirectorySubMenu.Append(-1, "Se placer dans un répertoire", "")
     
            #Prefix (SUB)
     
            self.prefixeSubMenu.Append(-1, "Créer un préfixe", "")
     
            #Wine Versions (SUB)
     
            self.wineVersionSubMenu.Append(-1, "Assigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "Désassigner une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "Installer une version de Wine", "")
            self.wineVersionSubMenu.Append(-1, "Désinstaller une version de Wine", "")
     
            #CDROM (SUB)
     
            self.CDROMSubMenu.Append(-1, "Choisir le point de montage", "")
            self.CDROMSubMenu.Append(-1, "Monter le lecteur sur un point de montage", "")
            self.CDROMSubMenu.Append(-1, "Tester la présence d'un executable", "")
     
            #Commands
     
            self.commandMenu.AppendSubMenu(self.fileDirectorySubMenu, "Fichier et répertoire", "")
            self.commandMenu.AppendSubMenu(self.prefixeSubMenu, "Préfixes Wine", "")
            self.commandMenu.AppendSubMenu(self.wineVersionSubMenu, "Versions de Wine", "")
            self.commandMenu.AppendSubMenu(self.CDROMSubMenu, "CD-ROM", "")
     
            #Config
     
            self.configureMenuObject = wx.MenuItem(self.configMenu, 102, "&Configurer l'interface")
            self.configureMenuObject.SetBitmap(wx.Bitmap("images/configure.png"))
            self.configMenu.AppendItem(self.configureMenuObject)
     
            self.langMenuObject = wx.MenuItem(self.configMenu, 103, "&Langue")
            self.langMenuObject.SetBitmap(wx.Bitmap("images/flag.png"))
            self.configMenu.AppendItem(self.langMenuObject)
     
            #About
     
            self.aboutMenu.Append(wx.ID_HELP, "&Aide en ligne", "Obtenir de l'aide en ligne")
            self.aboutMenu.Append(wx.ID_ABOUT, "&À propos de PolScriptCreator", "A propos de PolScriptCreator")
     
            #******************* Implantation **************
     
            self.menuBar = wx.MenuBar()
            self.menuBar.Append(self.fileMenu, "&Fichier")
            self.menuBar.Append(self.sendMenu, "&Finalisation")
            self.menuBar.Append(self.commandMenu, "&Fonctions")
            self.menuBar.Append(self.configMenu, "&Configuration")
            self.menuBar.Append(self.aboutMenu, "&A propos")
            self.SetMenuBar(self.menuBar)
     
            #******************* ToolBar ********************
     
            self.toolBar = self.CreateToolBar(wx.TB_TEXT | wx.TB_FLAT)
            self.toolBar.AddLabelTool(wx.ID_NEW, "Nouveau fichier",wx.ArtProvider.GetBitmap("gtk-new", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_OPEN, "Ouvrir un fichier", wx.ArtProvider.GetBitmap("gtk-open", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_SAVE, "Sauvegarder", wx.ArtProvider.GetBitmap("gtk-save", wx.ART_TOOLBAR))
            self.toolBar.AddLabelTool(wx.ID_FIND, "Rechercher", wx.ArtProvider.GetBitmap("gtk-find", wx.ART_TOOLBAR))
     
            #******************* TextArea *******************
     
            self.currentTextArea = wx.TextCtrl(self, -1, "", wx.DefaultPosition, (1024, 768), wx.TE_MULTILINE)  
     
            self.textBox = wx.BoxSizer(wx.VERTICAL)
            self.textBox2 = wx.BoxSizer(wx.HORIZONTAL)
            self.textBox2.Add(self.currentTextArea, 1,wx.ALL)
            self.textBox.Add(self.textBox2, 0, wx.EXPAND | wx.ALL)
     
     
     
            ######################################### EVENENEMENTS ##############################################
     
            wx.EVT_MENU(self, wx.ID_ABOUT,  self.aboutPOLSC)  
            wx.EVT_MENU(self, wx.ID_OPEN,  self.openFile)  
            wx.EVT_MENU(self, wx.ID_SAVE,  self.saveFile)  
            wx.EVT_MENU(self, wx.ID_SAVEAS,  self.saveFileAs)  
            wx.EVT_MENU(self, wx.ID_NEW,  self.cdFunctionShow)
            #wx.EVT_CLOSE(self.onQuit)
     
         ######################################## FONCTIONS GUI ############################################## 
     
     
        def aboutPOLSC(self, event):   
     
            self.aboutBox = wx.AboutDialogInfo()
            self.aboutBox.SetName("PolScriptCreator")
            self.aboutBox.SetVersion("0.1~beta1")
            self.aboutBox.SetDescription("Créateur de script pour PlayOnLinux")
            self.aboutBox.SetCopyright("© Zoloom 2007\nSous licence GPL version 3")
            self.aboutBox.AddDeveloper("Zoloom (Cassarin-Grand Arthur)")
            self.aboutBox.AddArtist("Les logos sont issus des projets Tango et Crystal Project")
            self.aboutBox.SetWebSite("http://www.playonlinux.com")
     
            self.about = wx.AboutBox(self.aboutBox)
     
        def openFile(self, event):
            self.nameFile1 = wx.FileSelector("Script à ouvrir...")
            self.file1 = open(self.nameFile1 , 'r')
            self.bufferFile1Opened  = self.file1.read()
            self.currentTextArea.AppendText(self.bufferFile1Opened)
            VarGUI.currentFile = self.nameFile1
            self.file1.close()
     
        def openFileWithoutEvent(self, nameFileAs):
            self.currentTextArea.SetValue("")
            self.file1 = open(nameFileAs , 'r')
            self.bufferFile1Opened  = self.file1.read()
            self.currentTextArea.AppendText(self.bufferFile1Opened)
            VarGUI.currentFile = self.nameFileAs
            self.file1.close()
     
        def saveFile(self, event):
     
            if (VarGUI.currentFile == ""):
                wx.MessageBox("Aucun fichier ouvert", "POLSC", wx.ICON_ERROR)
     
            else:
                VarGUI.currentBuffer = self.currentTextArea.GetValue()
                self.currentFileOpenSaved = open(VarGUI.currentFile, "w")
                self.currentFileOpenSaved.write(VarGUI.currentBuffer)
                self.currentFileOpenSaved.close()
     
        def saveFileAs(self, event):
     
            self.askFileSaveAs = wx.FileDialog(self, "Enregistrer sous...", style = wx.FD_SAVE)
            self.askFileSaveAs.ShowModal()
            self.nameFileAs = self.askFileSaveAs.GetFilename()
     
            if (self.nameFileAs != ""):
     
                VarGUI.currentBuffer = self.currentTextArea.GetValue()
                self.currentFileOpenSavedAs = open(self.nameFileAs, "a")
                self.currentFileOpenSavedAs.write(VarGUI.currentBuffer)
                VarGUI.currentFile = self.nameFileAs
                self.currentFileOpenSavedAs.close()
                self.openFileWithoutEvent(self.nameFileAs)
     
        def newFile(self, event):
     
            self.dialogSureNew = wx.MessageDialog(self, "Cette action effacera toute modification anterieure. Voulez vous continuer ?", "POLSC", wx.YES_NO | wx.ICON_QUESTION)
            if (self.dialogSureNew.ShowModal() == wx.ID_YES):
                self.currentTextArea.SetValue("")
     
        def OnQuit(self, event):
     
            if (self.currentTextArea.GetValue() != ""):
                self.dialogSureQuit = wx.MessageDialog(self, "Êtes vous sûr de vouloir quitter ?", "POLSC", wx.YES_NO | wx.ICON_QUESTION)
                if (self.dialogSureNew.ShowModal() == wx.ID_YES):
                    exit(255)
     
        def cdFunctionShow(self, event):
            cdFen = cdFunction(POLscFenp.fenp, "POUET")
     
     
    class cdFunction(wx.MiniFrame):
     
        def __init__(self, *args, **kwargs):
            wx.MiniFrame.__init__(self, *args, **kwargs)
            self.parent = self.GetParent()
     
            self.parent.currentTextArea.SetValue("POUEEEEEEEEEEEEEEEEEEET")
     
     
    ########################## DECLARATION DE L'APPLICATION ###########################
     
    class POLscApp(wx.App):        #instance principale classe application
     
        def OnInit(self):
            fenp = POLscFenp("PlayOnLinux - PolScriptCreator")
            fenp.Center(wx.BOTH)
            fenp.Show(True)
            self.SetTopWindow(fenp)
     
            return True
     
    FenpApp = POLscApp(redirect=False)        #création de l'application
    FenpApp.MainLoop()
    Voilà j'ai bien aimer MiniFrame, j'ai donc testé selon vos conseils, mais j'ai encore quelques problèmes :

    File "/home/zoloom/Programmation/Python/POLscriptCreator/polscriptc.py", line 221, in cdFunctionShow
    cdFen = cdFunction(POLscFenp.fenp, "POUET")
    AttributeError: type object 'POLscFenp' has no attribute 'fenp'
    Traceback (most recent call last):
    File "/home/zoloom/Programmation/Python/POLscriptCreator/polscriptc.py", line 221, in cdFunctionShow
    cdFen = cdFunction(POLscFenp.fenp, "POUET")
    AttributeError: type object 'POLscFenp' has no attribute 'fenp'
    Merci

  18. #18
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 13
    Par défaut
    Personne ne peut m'aider?

Discussions similaires

  1. VC++ Direct3D8, problème avec LPD3DXFONT et LPD3DTEXTURE8
    Par Magus (Dave) dans le forum DirectX
    Réponses: 3
    Dernier message: 03/08/2002, 11h10
  2. Problème avec [b]struct[/b]
    Par Bouziane Abderraouf dans le forum CORBA
    Réponses: 2
    Dernier message: 17/07/2002, 10h25
  3. Problème avec le type 'Corba::Any_out'
    Par Steven dans le forum CORBA
    Réponses: 2
    Dernier message: 14/07/2002, 18h48
  4. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 16h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo