dlg_set_resizable()

Sets whether a dialog window can be resized.

Allows or prevents resizing of the dialog.

Syntax

planetcnc.dlg_set_resizable(handle, resizable)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog to modify.
resizable bool `True` to make the dialog resizable, `False` to prevent resizing.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Set an existing dialog to be resizable
dialog_handle = "MyDialogHandle"
planetcnc.dlg_set_resizable(dialog_handle, True)
 
print("Dialog is now resizable.")

See also

dlg_set_modal
dlg_set_resizable
dlg_set_pos
dlg_set_size
dlg_set_btn
dlg_set_name
dlg_set_color