peopleGUI package

Submodules

peopleGUI.console_gui module

class peopleGUI.console_gui.ConsoleUi(frame)

Bases: object

Poll messages from a logging queue and display them in a scrolled text widget

display(record)
poll_log_queue()

peopleGUI.demo_gui module

class peopleGUI.demo_gui.App(root)

Bases: object

quit(*args)
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.FormUi(frame)

Bases: object

submit_message()
class peopleGUI.demo_gui.ThirdUi(frame)

Bases: object

peopleGUI.demo_gui.main()

peopleGUI.people_gui module

class peopleGUI.people_gui.MyApplication(master=None)

Bases: pygubu.TkApplication

on_about_clicked()
on_button_add_human_clicked()
on_mdata_item_clicked(itemid)
on_mfile_item_clicked(itemid)

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.

Module contents