AddCheckBox default parameters

On 04/12/2017 at 03:18, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Platform:      
Language(s) :       PYTHON  ;

---------
initw and inith are marked as optinial while not

import c4d
  
class MyDialog(c4d.gui.GeDialog) :
    def CreateLayout(self) : #main dialog
        self.AddCheckbox(10001, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, name="test")
        return True
  
def main() :
    dialog = MyDialog()
    dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC, defaultw=200, defaulth=150, xpos=-1, ypos=-1)
  
if __name__=='__main__':
    main()

return "TypeError: Required argument 'initw' (pos 3) not found"

On 05/12/2017 at 03:33, xxxxxxxx wrote:

Hi,

I confirm initw/inith (and also name) parameters aren't optional.
The docs will be fixed. Thanks for reporting.