dbpp.widgets package: GuiBaseClass - AutoScrollbar - Balloon - Ctext - LabEntry - RoText - Scrolled - SqlText - StatusBar - TableView - TextMixins - XTableView - XTreeView
dbpp.kroki - dbpp.kroki.KrokiEncoder - dbpp.utils - dbpp.utils.SqlUtils -
apps: dbpp.peditor
Widget to display status information using messages and progressbar.
This widget provides a statusbar with Label for text message and a progressbar to display numerical progress.
Examples:
>>> import tkinter as tk
>>> from dbpp.widgets.statusbar import StatusBar
>>> root = tk.Tk()
>>> tk.Frame(root, width=200, height=100).pack()
>>> status = StatusBar(root)
>>> status.pack(side=tk.BOTTOM, fill=tk.X)
>>> status.set('Connecting...')
>>> status.progress(25)
>>> root.update_idletasks()
>>> root.after(1000)
>>> root.mainloop()
__init__(master)
Construct the widget within the given master widget
Args:
master
(ttk.Frame): a parent widget or toplevel wherein StatusBar is initialized, normally a tk.Frame or ttk.Frame widget or a Toplevel.
Returns: StatusBar widget.
clear()
Clears the status message.
progress(n)
Sets the progress value (n) in the progressbar subwidget.
set(format, *args)
Sets the status message.
Sets the message format into the label widget of the statusbar. Alternativly this can be a format string which will be filled with the text string given in the args argument list.
Args:
format
(string): text message or format string*args (list)
: variable number of arguments used as arguments for the format string
This file was automatically generated via lazydocs.