z.B. :
Code: Alles auswählen
from tkinter import *
def main():
Win = Tk()
sc1 = Scrollbar(Win)
sc2 = Scrollbar(Win, orient="horizontal")
text = Text(Win, bg="#FFFFFF", font="Bahnschrift", yscrollcommand=sc1.set,
xscrollcommand=sc2.set)
sc1.pack(side="right", fill="y")
sc2.pack(side="bottom", fill="x")
text.pack(side="left", fill="both")
sc2.config(command=text.xview)
sc1.config(command=text.yview)
main()
Code Bender.