Sets the size of a dialog window.
If width and height are set to `0, 0`, the size is automatically determined.
planetcnc.dlg_set_size(handle, width, height)
#! /usr/bin/env python import planetcnc # Set a specific size for an existing dialog dialog_handle = "MyDialogHandle" planetcnc.dlg_set_size(dialog_handle, 400, 300) print("Dialog resized to 400x300.") # Enable automatic size detection planetcnc.dlg_set_size(dialog_handle, 0, 0) print("Dialog size set to automatic.")