Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import Listbox
- from tkinter import Tk
- from tkinter import Entry
- import tkinter as tk
- ventana = Tk()
- class editlistBox(tk.Listbox):
- def __init__(self,ventana,ancho,alto,posx,posy):
- Listbox.__init__(self,width=ancho,height=alto)
- self.ventana = ventana
- self.config(borderwidth=2,highlightthickness=3,highlightcolor="#00AA00",selectforeground="#ffffff",selectbackground="#0EE700",selectborderwidth=0,activestyle=tk.NONE)
- self.place(x=posx,y=posy)
- entry = Entry(ventana)
- entry.place(x=350,y=60)
- lb = editlistBox(ventana,45,500,215,30)
- Entry.lift(lb)
- ventana.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement