peopleGUI package¶
Submodules¶
peopleGUI.console_gui module¶
peopleGUI.demo_gui module¶
-
class
peopleGUI.demo_gui.
Clock
¶ Bases:
threading.Thread
Class to display the time every seconds
Every 5 seconds, the time is displayed using the logging.ERROR level to show that different colors are associated to the log levels
-
run
()¶ Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
-
stop
()¶
-
-
class
peopleGUI.demo_gui.
ThirdUi
(frame)¶ Bases:
object
-
peopleGUI.demo_gui.
main
()¶
peopleGUI.people_gui module¶
peopleGUI.queue_handler module¶
-
class
peopleGUI.queue_handler.
QueueHandler
(log_queue=<queue.Queue object>)¶ Bases:
logging.Handler
Class to send logging records to a queue
It can be used from different threads The ConsoleUi class polls this queue to display records in a ScrolledText widget
-
emit
(record)¶ Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
-
peopleGUI.textHandler module¶
peopleGUI.text_handler module¶
-
class
peopleGUI.text_handler.
TextHandler
(text)¶ Bases:
logging.Handler
This class allows you to log to a Tkinter Text or ScrolledText widget
-
emit
(record)¶ Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
-