将滚动条添加到Tkinter数据图,该图从屏幕底部移出

Tkinter的新手,所以请裸身。我已经从其他地方获取了数据,现在我想以表格格式显示该行的多个数据列。当我这样显示数据时,它从屏幕的底部消失,并且丢失了数据。如何添加滚动条以访问其余数据?

from tkinter import *
from bs4 import BeautifulSoup
from lxml import html
import requests
import re

root = Tk()


def TableCreate(Title,Cost,count,col):
    ##Title and Cost are both Lists.

    #vertscroll = Scrollbar()
    #vertscroll.config(command=grid.yview)

    ##This was called Iterativley so would print over and over again
    btn_column = Button(root,text = "Link")
    btn_column.grid(row = count,column=col)
    btn_column = Button(root,text=Title)
    btn_column.grid(row = count,column=col+1)
    btn_column = Button(root,text=Cost)
    btn_column.grid(row = count,column=col+2)
liuyan515 回答:将滚动条添加到Tkinter数据图,该图从屏幕底部移出

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3117623.html

大家都在问