python tkinter下拉列表菜单的位置怎么设置 5
number=tk.StringVar()numberChosen=ttk.Combobox(window_history,width=12,textvariable=n...
number = tk.StringVar()
numberChosen = ttk.Combobox(window_history, width=12, textvariable=number)
numberChosen["values"] = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18","19","20","21","22","23","24","25","26","27","28","29","30","31")
numberChosen.grid(column=2, row=2) # 设置其在界面中出现的位置 column代表列 row 代表行
numberChosen.current(0)
numberChosen.pack()
这样为什么位置不变 展开
numberChosen = ttk.Combobox(window_history, width=12, textvariable=number)
numberChosen["values"] = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18","19","20","21","22","23","24","25","26","27","28","29","30","31")
numberChosen.grid(column=2, row=2) # 设置其在界面中出现的位置 column代表列 row 代表行
numberChosen.current(0)
numberChosen.pack()
这样为什么位置不变 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询