Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import Listbox
  2. from tkinter import Tk
  3. from tkinter import Entry
  4. import tkinter as tk
  5.  
  6. ventana = Tk()
  7.  
  8. class editlistBox(tk.Listbox):
  9. def __init__(self,ventana,ancho,alto,posx,posy):
  10. Listbox.__init__(self,width=ancho,height=alto)
  11. self.ventana = ventana
  12. self.config(borderwidth=2,highlightthickness=3,highlightcolor="#00AA00",selectforeground="#ffffff",selectbackground="#0EE700",selectborderwidth=0,activestyle=tk.NONE)
  13. self.place(x=posx,y=posy)
  14.  
  15. entry = Entry(ventana)
  16. entry.place(x=350,y=60)
  17.  
  18. lb = editlistBox(ventana,45,500,215,30)
  19.  
  20. Entry.lift(lb)
  21.  
  22. ventana.mainloop()
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement