Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Exemple d’utilisation d’une ListeBox

 list, list, tkinter
{filelink=15421}

 
from Tkinter import *
 
class Alarm(Frame):
    def __init__(self):
        Frame.__init__(self)
        self.pack()
        self.master.title('UTILISATION D''UNE LISTE')
        liste= Listbox(self)
        liste = Listbox(self, relief=SUNKEN)
        pos = 0
        for elem in ['A', 'B', 'C']:
            liste.insert(pos, elem)
            pos+=1
        liste.pack();
 
if __name__ == '__main__':
    Alarm().mainloop()

Livres Sur ce Sujet

----------------------------------------------------------------------------

Comments are closed.