diplomat.wx_gui.progress_dialog.FBProgressDialog

class diplomat.wx_gui.progress_dialog.FBProgressDialog(*args: Any, **kwargs: Any)[source]

Bases: Dialog

A custom wx.Dialog for displaying progress. Uses a wx.TqdmWxPanel internally, which can be accessed via the .progress_bar property to display progress…

__init__(parent=None, wid=wx.ID_ANY, title='Progress', inner_msg: str = 'Rerunning Frame Pass Engine:', pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, name='ProgressDialog')[source]

Construct a new FBProgressDialog.

Parameters:
  • parent – The parent window.

  • wid – wx ID of the window, and integer. Defaults to wx.ID_ANY.

  • title – The string title of the progress dialog, defaults to “Progress”.

  • inner_msg – A string, the inner message to display inside the dialog. Defaults to “Rerunning FB Algorithm:”

  • pos – WX Position of dialog. Defaults to wx.DefaultPosition.

  • size – WX Size of the dialog. Defaults to wx.DefaultSize.

  • style – WX Dialog Style. See wx.Dialog docs for possible options.

  • name – WX internal name of widget.

Methods

__init__([parent, wid, title, inner_msg, ...])

Construct a new FBProgressDialog.

set_inner_message(text)