Python 3.x Tkinter时间标签刻度

Python 3.x Tkinter时间标签刻度,python-3.x,tkinter,Python 3.x,Tkinter,我想使用Tkinter scale功能来显示时间范围。如何编辑时间间隔以分钟为单位显示时间?或者可能将时间间隔转换为时间 # Time scale self.timeScale = tk.Scale(self.timeFrame, orient=tk.HORIZONTAL, length=630, from_=0, to=24, tickinterval=1, showvalue=True) self.timeScale

我想使用Tkinter scale功能来显示时间范围。如何编辑时间间隔以分钟为单位显示时间?或者可能将时间间隔转换为时间

# Time scale
    self.timeScale = tk.Scale(self.timeFrame, orient=tk.HORIZONTAL, length=630, from_=0, to=24, tickinterval=1,
                              showvalue=True)
    self.timeScale.grid(row=3, column=0)

每小时有60分钟,因此24小时有
24*60=1440
,因此您可能需要
to=1440
,但它将显示值0。。。1440或者你必须从头开始建立自己的规模。您也可以尝试在谷歌中查找-可能有人已经创建了时间刻度。您也可以尝试
分辨率=24/1440
,但它将显示
12:30
12.5