enter image description here我正在创建一个应用程序,让用户选择保存在数据库中的日期
我在python的Tkcalender模块中使用DateEntry类。当我使用下拉功能时,它会显示一个日历,用户可以从中选择
self.lblDoB = Label(DataFrameLEFT, font=('arial', 20, 'bold'),
text="Date of Birth:", bg="Ghost white",
padx=2,pady=2, )
self.lblDoB.grid(row=3, column=0, sticky=W)
#self.ttkcal = Calender.Calendar(DataFrameLEFT, firstweekday=Calender.calendar.SUNDAY)
self.ttkcal = DateEntry(DataFrameLEFT, font=('arial', 20, 'bold'))
self.ttkcal.drop_down()
self.ttkcal.grid(row =3, column=1)
似乎drop_down()
函数不起作用
目前没有回答
相关问题 更多 >
编程相关推荐