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

Renvoie

db path

Type renvoyé

string

firstDate()

Set time slider on first date

lastDate()

Set time slider on last date

maximum()

Get max date index

Renvoie

index of the max date

Type renvoyé

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

Paramètres

dbpath (string) – db path

setDates(dates)

initialize the time control

setFramePerSecond(framePerSecond)

Set frame per second

Paramètres

framePerSecond (integer) – animation refresh time

setValue(idx)

Set current date index

Paramètres

idx (integer) – index of the date

suspendPlayFunction(flag=None)

Set the animation on pause

text()

Get current date text

Renvoie

current date

Type renvoyé

string

timeChanged
value()

Get current date index

Renvoie

index of the current date

Type renvoyé

integer