tkcalendar使用babel模块来转换周、日和月。语言是通过";区域设置";选项我不确定波兰语的语言代码,但它应该是这样的:
就像标题中一样,如何在tkcalendar
的DateEntry
中将月份的语言设置为波兰语?
DateEntry(lbf,width=12,bg="darkblue",fg="white",year=1990,state="readonly",
date_pattern="yyyy-mm-dd",textvariable=two)
DateEntry(lbf,width=12,bg="darkblue",fg="white",year=1990,
locale="pl", state="readonly", date_pattern="yyyy-mm-dd",textvariable=two)