import tkinter as tk
from tkinter import *
root = tk.Tk()
root.title("逻辑网")
root.geometry('450x180+300+200')
root.iconbitmap('../image/icon.ico')
sbar1 = tk.Scrollbar(root)
sbar1.pack(side=RIGHT, fill=Y)
sbar2 = Scrollbar(root, orient=HORIZONTAL)
sbar2.pack(side=BOTTOM, fill=X)
mylist = tk.Listbox(root, xscrollcommand=sbar2.set, yscrollcommand=sbar1.set)
for i in range(30):
mylist.insert(END, '第' + str(i + 1) + '次:' + '你很穷!' + '\n')
mylist.pack(side=LEFT, fill=BOTH)
sbar1.config(command=mylist.yview)
sbar2.config(command=mylist.xview)
root.mainloop()