Closed BECATRUE closed 1 year ago
'Poller' is an app for polling a number and saving it into the selected database.
dbBox
periodBox
countLabel
numberLabel
poll() -> int
time.time() % 100
Frame and App will be implemented in apps.poller.
Frame
App
apps.poller
Good! Maybe fixing the period would be easier haha
Feature you want to implement
'Poller' is an app for polling a number and saving it into the selected database.
Viewer frame
dbBox
: A combobox for selecting a database into which the polled number is savedperiodBox
: A spinbox for adjusting the polling periodcountLabel
: A label for showing the polled count (how many numbers have been polled): this will confidently show when the polling occursnumberLabel
: A label for showing the recently polled numberBackend
poll() -> int
: Return a predictable number i.e.time.time() % 100
How the feature is implemented
Frame
andApp
will be implemented inapps.poller
.Polling mechanism:
App
is instanciated, start polling numbers with the selected period fromperiodBox
.countLabel
.dbBox
, everytime it polls, it saves the number into the database.Additional context