Пример #1
0
# epath = tk.Entry(frame_path,width = 105, font = ("courier",14) )
epathFont = tkFont.Font(family='courier', size=14)
epathFontSmall = tkFont.Font(family='courier', size=10)
epath = wEntry(frame_path,width = 86, font = epathFont )
epath.insert(0,path)
epath.bind("<Down>",lambda e:eword.focus())
epath.bind("<Button-3>",pathHistory)
epath.bind("<Return>",startFind)
# epath.bind("<Control-space>",epathKey)
epath.grid(row = 0 ,column =1,columnspan = 4,  sticky='w')

# epath_second = tk.Entry(frame_path,width = 120, font = ("courier",10) )
epath_second = wEntry(frame_path,width = 120, font = epathFontSmall )
epath_second.grid(row = 1 ,column = 1,columnspan = 4,  sticky='w')
epath_second.insert(0,";".join(history.getlsitPaths2())+";")

class WE(tk.Entry, WidgetBackEntry):
    def __init__(self,root,*w,**kw):
        tk.Entry.__init__(self,root,*w,**kw )
        WidgetBackEntry.__init__(self,root,*w,**kw )


eword = WE(frame1,width = 70, font = ("courier",14), bg= "AliceBlue" )
eword.insert(0,word)
eword.bind("<Button-2>",insert2eword)
eword.bind("<ButtonRelease-2>",eventIgnore)

eword.bind("<Button-3>",wordHistory)
eword.bind("<Return>",startFind)
eword.bind("<Down>",lambda e:ext_wiget.focus())