Skip to content

Customize 'modal dialog' window

fabiof17 edited this page Jun 23, 2019 · 2 revisions

You can use PySide widgets to enhance your 'modal dialog'. Here are just a few examples :

# dialog window creation #
app = natron.getGuiInstance(0)
dialog = app.createModalDialog()

# set dialog title #
dialog.setWindowTitle("My modal dialog")

# set dialog margins #
dialog.setContentsMargins(0, 0, 10, 10)

# set window size #
dialog.resize( 300, 170 )
Clone this wiki locally