MessageDialog (hwx.gui)

A popup message dialog.

Used to display messages to the user. It may contain upto three buttons.

Inherits:

Properties

Public Methods

get (self, v)
set (self, v)
show (self)

Property Details

icon()

The type of icon to be displayed. Valid choices are:

  • “noicon”
  • “informationicon”
  • “information”
  • “info”
  • “warningicon”
  • “warning”
  • “warn”
  • “erroricon”
  • “error”
  • “criticalicon”
  • “critical”
  • “questionicon”
  • “question”
  • “?”
  • “checkicon”
  • “check”
  • “redquestionicon”
  • “redquestion”
  • “redcheckicon”
  • “redcheck”
message()

The text message to be displayed inside the dialog.

Method Details

get(self, v)

Returns the message text.

set(self, v)

Sets the specified message.

param v:Message text to be displayed.
type v:str
show(self)

Shows the MessageDialog and pauses exection till one button is clicked.

returns:The button clicked.
rtype:int