# -*- coding: cp1251 -*-
from Tkinter import *
def f(event, *L):
if event == 'scroll':
ent.xview_scroll(L[0], L[1])
elif event == 'moveto':
ent.xview_moveto(L[0])
root = Tk()
scr = Scrollbar(root, orient = HORIZONTAL, command = f)
ent = Entry(root, font = 'Arial 20', xscrollcommand = scr.set)
ent.pack()
scr.pack()
root.mainloop()