[text] aidehrf

Viewer

  1.     def __init__(self, parent):
  2.         Frame.__init__(self, parent)
  3.         self.parent = parent
  4.         self.initUI()
  5.  
  6.     def initUI(self):
  7.         self.parent.title("Personnages : Un exemple d'héritage et de polymorphisme")
  8.         self.pack(fill=BOTH, expand=True)
  9.  
  10.         self.menubar = Menu(self)
  11.  
  12.         menu = Menu(self.menubar, tearoff=0)
  13.         self.menubar.add_cascade(label="Fichier", menu=menu)
  14.         menu.add_command(label="Ouvrir...", command=self.menuOuvrir_Click)
  15.        #ajouter les autres options

Editor

You can edit this paste and save as new:


File Description
  • aidehrf
  • Paste Code
  • 30 Jun-2022
  • 536 Bytes
You can Share it: