--- title: "system.gui.messageBox" description: "Displays an informational-style message popup box to the user." --- # system.gui.messageBox > Displays an informational-style message popup box to the user. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.gui.messageBox(message, title)` ### Parameters |Type|Parameter|Description| |--|--|--| |String |`message` | The message to display. Will accept html formatting.| |String |`title` | A title for the message box. [optional]| ### Returns Nothing ### Scope Client ## Code Examples ```python title="Example #1" # This example will show how many hours a motor has been running when it is clicked. # get the motor number motorNumber = event.source.getPropertyValue('MotorNumber') # retrieve the hours running from the database query = "SELECT HoursRunning FROM MotorStatus WHERE motor=%d" hours = system.db.runScalarQuery(query % motorNumber) system.gui.messageBox("The motor has been running for %d hours" % motorNumber) ```