ME 305 Group 6 Documentation
|
A queue of print jobs to be printed by the user interface. More...
Public Member Functions | |
def | __init__ (self) |
Constructs an empty print queue. | |
def | add_job (self, PrintJob new_job) |
Adds a printjob to the queue. More... | |
def | quick_print (self, str text) |
@ brief Adds a printjob to the queue from a string More... | |
def | get_job (self) |
Get the next job from the print queue. More... | |
def | num_in (self) |
Find the number of items in the queue. More... | |
A queue of print jobs to be printed by the user interface.
Values can be placed into queue and will be printed in the order they have been queued. Will check a timeout for a print job if necessary to avoid printing severely lagged data.
def printqueue_05.PrintQueue.add_job | ( | self, | |
PrintJob | new_job | ||
) |
Adds a printjob to the queue.
Must provide a printjob object to the function. Adds the job to the end of the queue.
new_job | PrintJob object to be added the print queue |
def printqueue_05.PrintQueue.get_job | ( | self | ) |
Get the next job from the print queue.
Gets the next job from the print queue. Only returns a job if the timeout has not yet passed.
current_time | The current ticks value returned by ticks_us() |
def printqueue_05.PrintQueue.num_in | ( | self | ) |
Find the number of items in the queue.
Call before get().
def printqueue_05.PrintQueue.quick_print | ( | self, | |
str | text | ||
) |
@ brief Adds a printjob to the queue from a string
Must provide a string to the function. Adds the job to the end of the queue.
text | String of text to be printed |