首页 > 解决方案 > pandastable 脱离框架

问题描述

当我在 pandastable 中激活滚动条时,我有点卡住了为什么我的桌子离开了框架。子帧中只显示了一半的列!

subframe = LabelFrame(tab1,text="Measurements",  width=350, height=490)
subframe.grid(row=0, column=2)

df=pd.DataFrame(df_pred)

frame = tk.Frame(subframe)
frame.pack(fill='both', expand=True)

pt = Table(frame, dataframe=df,showtoolbar=True, showstatusbar=True)

pt.show()


标签: pythontkintertkinter-layout

解决方案


试试看 - pd.set_option("display.max_rows", None)


推荐阅读