6.1.1.3.1.17. thyrsis.gui.time_control module¶
- class thyrsis.gui.time_control.TimeControl(dates=None, blocker=None, framePerSecond=10, parent=None)¶
Bases:
PyQt5.QtWidgets.QWidget
Time Control toolbar
- databasePath()¶
Get the db path
- Returns
db path
- Return type
string
- firstDate()¶
Set time slider on first date
- lastDate()¶
Set time slider on last date
- maximum()¶
Get max date index
- Returns
index of the max date
- Return type
integer
- nextDate()¶
Set time slider on next date
- nextFrame()¶
Unlock blocker
- play(checked)¶
Launch/Stop time animation, according to the play button state
- previousDate()¶
Set time slider on previous date
- restorePlayFunction(flag=None)¶
re-launch the animation on pause
- setDatabasePath(dbpath)¶
Set dbpath
- Parameters
dbpath (string) – db path
- setDates(dates)¶
initialize the time control
- setFramePerSecond(framePerSecond)¶
Set frame per second
- Parameters
framePerSecond (integer) – animation refresh time
- setValue(idx)¶
Set current date index
- Parameters
idx (integer) – index of the date
- suspendPlayFunction(flag=None)¶
Set the animation on pause
- text()¶
Get current date text
- Returns
current date
- Return type
string
- timeChanged¶
- value()¶
Get current date index
- Returns
index of the current date
- Return type
integer