Sets which buttons (Apply, OK, Close) are visible in the top-right corner of the dialog.
Can enable or disable all buttons or configure individual buttons.
planetcnc.dlg_set_btn(handle, is_visible) planetcnc.dlg_set_btn(handle, apply, ok, close)
#! /usr/bin/env python import planetcnc # Hide all buttons dialog_handle = "MyDialogHandle" planetcnc.dlg_set_btn(dialog_handle, False) print("All buttons hidden.") # Show only the "Apply" and "OK" buttons planetcnc.dlg_set_btn(dialog_handle, True, True, True, False) print("Apply and OK buttons visible, Close button hidden.")