Toplevel avec plusieurs entry et un scroolbar
Fermé
xunil2003
Messages postés
766
Date d'inscription
mercredi 17 novembre 2004
Statut
Membre
Dernière intervention
29 septembre 2024
-
11 déc. 2021 à 09:32
yg_be Messages postés 23309 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 2 novembre 2024 - 11 déc. 2021 à 13:50
yg_be Messages postés 23309 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 2 novembre 2024 - 11 déc. 2021 à 13:50
A voir également:
- Toplevel avec plusieurs entry et un scroolbar
- Tkinter toplevel - Forum Python
- Entry power save mode ✓ - Forum Matériel & Système
- No bag entry - Forum MacOS
- #1062 - duplicate entry '1' for key 'primary' ✓ - Forum Bases de données
- The procedure entry point could not be located in the dynamic link library - Forum Jeux vidéo
1 réponse
xunil2003
Messages postés
766
Date d'inscription
mercredi 17 novembre 2004
Statut
Membre
Dernière intervention
29 septembre 2024
14
11 déc. 2021 à 13:13
11 déc. 2021 à 13:13
re,
J'ai trouvé
J'ai trouvé
def fenetre_configurer_options_suplementaires(): print ("") print ("fenetre_configurer_options_suplementaires") print ("-----------------------------------------") fs_ajouter_machine_1 = Toplevel(fenetre) Framex0 = Frame(fs_ajouter_machine_1,borderwidth=2,relief=FLAT) Framex0.grid(row=0, column=0) #.pack(padx=10,pady=10) Framex1 = Frame(Framex0,borderwidth=2,relief=FLAT) Framex1.grid(row=1, column=0) #.pack(padx=10,pady=10) Framex3 = Frame(Framex0,borderwidth=2,relief=FLAT) Framex3.grid(row=3, column=0) #.pack(padx=10,pady=10) # SCROLLBARE DU FORMULAIRE draw = Canvas(Framex0, width=300, height=400, scrollregion = (0,0, 300, 1150)) #(0,0, 230, 780) #535 410 # (0,0, 230, 5800)) draw.sbar = Scrollbar(Framex0, orient=VERTICAL) Framex2 = Frame(draw) Framex2.grid(row=2, column=0) draw.create_window(0, 0, window=Framex2, width=1500, height=12000, anchor=N+W) #1500 12000 # draw.create_window(0, 0, window=frame, width=1500, height=5800, anchor=N+W) #fs_ajouter_machine_1.resizable(width=False, height=False) Label(Framex2, text=" Sources TV : ").grid(row=1, column=0, sticky=W) Label(Framex2, text=" Sources ").grid(row=2, column=0, sticky=W) Label(Framex2, text=" hdmi ").grid(row=3, column=0, sticky=W) Label(Framex2, text=" vga ").grid(row=4, column=0, sticky=W) Label(Framex2, text=" TV ").grid(row=5, column=0, sticky=W) Label(Framex2, text=" Svideo ").grid(row=6, column=0, sticky=W) Label(Framex2, text="").grid(row=7, column=0) Label(Framex2, text=" Internet : ").grid(row=8, column=0, sticky=W) Label(Framex2, text=" Navigateur ").grid(row=9, column=0, sticky=W) Label(Framex2, text="").grid(row=10, column=0, sticky=W) Label(Framex2, text=" Lecteur Media : ").grid(row=11, column=0, sticky=W) Label(Framex2, text=" Embobiner ").grid(row=12, column=0, sticky=W) Label(Framex2, text=" Rembobiner ").grid(row=13, column=0, sticky=W) Label(Framex2, text=" Pause ").grid(row=14, column=0, sticky=W) Label(Framex2, text=" Stop ").grid(row=15, column=0, sticky=W) Label(Framex2, text=" Avancer ").grid(row=16, column=0, sticky=W) Label(Framex2, text=" Avance rapide ").grid(row=17, column=0, sticky=W) Label(Framex2, text=" Enregistrement ").grid(row=13, column=0, sticky=W) # Crrer fenetre avertissement ajouter une clé usb ou disque dur Label(Framex2, text="").grid(row=18, column=0, sticky=W) Label(Framex2, text=" PIP : ").grid(row=19, column=0, sticky=W) Label(Framex2, text=" pip on/off ").grid(row=20, column=0, sticky=W) Label(Framex2, text=" pip chdown").grid(row=21, column=0, sticky=W) Label(Framex2, text=" pip up").grid(row=22, column=0, sticky=W) Label(Framex2, text="").grid(row=23, column=0) Label(Framex2, text=" Couleur : ").grid(row=24, column=0, sticky=W) Label(Framex2, text=" rouge ").grid(row=25, column=0, sticky=W) Label(Framex2, text=" Vert").grid(row=26, column=0, sticky=W) Label(Framex2, text=" Jaune").grid(row=27, column=0, sticky=W) Label(Framex2, text=" Bleu").grid(row=28, column=0, sticky=W) Label(Framex2, text=" Cyan").grid(row=29, column=0, sticky=W) Label(Framex2, text="").grid(row=30, column=0) Label(Framex2, text=" Manette : ").grid(row=31, column=0, sticky=W) Label(Framex2, text=" Joystick left ").grid(row=32, column=0, sticky=W) Label(Framex2, text=" Joystick right ").grid(row=33, column=0, sticky=W) Label(Framex2, text=" Joystick ok ").grid(row=34, column=0, sticky=W) Label(Framex2, text=" Joystick down ").grid(row=35, column=0, sticky=W) Label(Framex2, text=" Joystick up ").grid(row=36, column=0, sticky=W) Label(Framex2, text="").grid(row=37, column=0) Label(Framex2, text=" Autres : ").grid(row=38, column=0, sticky=W) Label(Framex2, text=" Sleep ").grid(row=39, column=0, sticky=W) Label(Framex2, text=" DVT Signal ").grid(row=40, column=0, sticky=W) Label(Framex2, text=" Mst ").grid(row=41, column=0, sticky=W) Label(Framex2, text=" Caption ").grid(row=42, column=0, sticky=W) Label(Framex2, text=" Ad ").grid(row=43, column=0, sticky=W) Label(Framex2, text=" Down ").grid(row=44, column=0, sticky=W) Label(Framex2, text=" Sub Title ").grid(row=45, column=0, sticky=W) Label(Framex2, text=" Pmode ").grid(row=46, column=0, sticky=W) Label(Framex2, text=" Smode ").grid(row=47, column=0, sticky=W) Label(Framex2, text=" Exit ").grid(row=48, column=0, sticky=W) Label(Framex2, text=" Channel_list ").grid(row=49, column=0, sticky=W) Label(Framex2, text=" Manuel ").grid(row=50, column=0, sticky=W) Label(Framex2, text="").grid(row=51, column=0) e1 = Entry(Framex2, width=20) e2 = Entry(Framex2, width=20) e3 = Entry(Framex2, width=20) e4 = Entry(Framex2, width=20) e5 = Entry(Framex2, width=20) e6 = Entry(Framex2, width=20) e7 = Entry(Framex2, width=20) e8 = Entry(Framex2, width=20) e9 = Entry(Framex2, width=20) e10 = Entry(Framex2, width=20) e11 = Entry(Framex2, width=20) e12 = Entry(Framex2, width=20) e13 = Entry(Framex2, width=20) e14 = Entry(Framex2, width=20) e15 = Entry(Framex2, width=20) e16 = Entry(Framex2, width=20) e17 = Entry(Framex2, width=20) e18 = Entry(Framex2, width=20) e19 = Entry(Framex2, width=20) e20 = Entry(Framex2, width=20) e21 = Entry(Framex2, width=20) e22 = Entry(Framex2, width=20) e23 = Entry(Framex2, width=20) e24 = Entry(Framex2, width=20) e25 = Entry(Framex2, width=20) e26 = Entry(Framex2, width=20) e27 = Entry(Framex2, width=20) e28 = Entry(Framex2, width=20) e29 = Entry(Framex2, width=20) e30 = Entry(Framex2, width=20) e31 = Entry(Framex2, width=20) e32 = Entry(Framex2, width=20) e33 = Entry(Framex2, width=20) e34 = Entry(Framex2, width=20) e35 = Entry(Framex2, width=20) e36 = Entry(Framex2, width=20) e37 = Entry(Framex2, width=20) e38 = Entry(Framex2, width=20) e39 = Entry(Framex2, width=20) e40 = Entry(Framex2, width=20) e41 = Entry(Framex2, width=20) #e1.grid(row=4, column=0) e1.grid(row=2, column=1, sticky=W) e2.grid(row=3, column=1, sticky=W) e3.grid(row=4, column=1, sticky=W) e4.grid(row=5, column=1, sticky=W) e5.grid(row=6, column=1, sticky=W) e6.grid(row=9, column=1, sticky=W) e7.grid(row=12, column=1, sticky=W) e8.grid(row=13, column=1, sticky=W) e9.grid(row=14, column=1, sticky=W) e10.grid(row=15, column=1, sticky=W) e11.grid(row=16, column=1, sticky=W) e12.grid(row=17, column=1, sticky=W) e13.grid(row=20, column=1, sticky=W) e14.grid(row=21, column=1, sticky=W) e15.grid(row=22, column=1, sticky=W) e16.grid(row=25, column=1, sticky=W) e17.grid(row=26, column=1, sticky=W) e18.grid(row=27, column=1, sticky=W) e19.grid(row=28, column=1, sticky=W) e20.grid(row=29, column=1, sticky=W) e21.grid(row=32, column=1, sticky=W) e22.grid(row=33, column=1, sticky=W) e23.grid(row=34, column=1, sticky=W) e24.grid(row=33, column=1, sticky=W) e25.grid(row=35, column=1, sticky=W) e26.grid(row=36, column=1, sticky=W) e27.grid(row=39, column=1, sticky=W) e28.grid(row=40, column=1, sticky=W) e29.grid(row=41, column=1, sticky=W) e30.grid(row=42, column=1, sticky=W) e31.grid(row=43, column=1, sticky=W) e32.grid(row=44, column=1, sticky=W) e33.grid(row=45, column=1, sticky=W) e34.grid(row=46, column=1, sticky=W) e35.grid(row=47, column=1, sticky=W) e36.grid(row=48, column=1, sticky=W) e37.grid(row=49, column=1, sticky=W) e38.grid(row=50, column=1, sticky=W) e39.grid(row=51, column=1, sticky=W) e40.grid(row=52, column=1, sticky=W) e41.grid(row=53, column=1, sticky=W) e1.insert(10, cfg.get('Touches', 'power_on_off')) e2.insert(10, cfg.get('Touches', '123')) e3.insert(10, cfg.get('Touches', 'micro')) e4.insert(10, cfg.get('Touches', 'fleur')) e5.insert(10, cfg.get('Touches', 'direction_haut')) e6.insert(10, cfg.get('Touches', 'direction_bas')) e7.insert(10, cfg.get('Touches', 'ok')) e8.insert(10, cfg.get('Touches', 'direction_gauche')) e9.insert(10, cfg.get('Touches', 'direction_droite')) e10.insert(10, cfg.get('Touches', 'retour')) e11.insert(10, cfg.get('Touches', 'menu')) e12.insert(10, cfg.get('Touches', 'play')) e13.insert(10, cfg.get('Touches', 'volume+')) e14.insert(10, cfg.get('Touches', 'volume-')) e15.insert(10, cfg.get('Touches', 'mute')) e16.insert(10, cfg.get('Touches', 'programme+') ) e17.insert(10, cfg.get('Touches', 'programme-')) e18.insert(10, cfg.get('Touches', 'guide')) e19.insert(10, cfg.get('Touches', 'netflix')) e20.insert(10, cfg.get('Touches', 'prime_video')) e21.insert(10, cfg.get('Touches', 'rakuten_tv')) e22.insert(10, cfg.get('Touches', '123')) e23.insert(10, cfg.get('Touches', 'micro')) e24.insert(10, cfg.get('Touches', 'fleur')) e25.insert(10, cfg.get('Touches', 'direction_haut')) e26.insert(10, cfg.get('Touches', 'direction_bas')) e27.insert(10, cfg.get('Touches', 'ok')) e28.insert(10, cfg.get('Touches', 'direction_gauche')) e29.insert(10, cfg.get('Touches', 'direction_droite')) e30.insert(10, cfg.get('Touches', 'retour')) e31.insert(10, cfg.get('Touches', 'retour')) e32.insert(10, cfg.get('Touches', '123')) e33.insert(10, cfg.get('Touches', 'micro')) e34.insert(10, cfg.get('Touches', 'fleur')) e35.insert(10, cfg.get('Touches', 'direction_haut')) e36.insert(10, cfg.get('Touches', 'direction_bas')) e37.insert(10, cfg.get('Touches', 'ok')) e38.insert(10, cfg.get('Touches', 'direction_gauche')) e39.insert(10, cfg.get('Touches', 'direction_droite')) e40.insert(10, cfg.get('Touches', 'retour')) e41.insert(10, cfg.get('Touches', 'retour')) # effacer textbox.delete(1.0,"end") Button(Framex3, text='Quitter', command=fs_ajouter_machine_1.destroy).grid(row=0, column=0, pady=4) #Button(Framex3, text='Effacer', command=effacer_entry_rsa).grid(row=0, column=1, pady=4) Button(Framex3, text='Valider', command=lambda x=e1: valider_fenetre_configurer_options_suplementaires(x, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16, e17, e18, e19, e20, e21)).grid(row=0, column=2, pady=4) #SCROLLBARE DU TEST draw['yscrollcommand'] = draw.sbar.set draw.sbar['command'] = draw.yview draw.sbar.grid(row=0, column=1,sticky="n, e, s") #.pack(side=RIGHT, fill=Y) draw.grid(row=0, column=0) #.pack() fs_ajouter_machine_1.mainloop()
11 déc. 2021 à 13:50
peux-tu alors marquer la discussion comme résolue?