Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > Bug Reports
  New Posts New Posts
  FAQ FAQ  Forum Search

AddCheckBox default parameters

Author
Message Reverse Sort Order
  Topic Search Topic Search
Yannick Puech View Drop Down
Forum Moderator
Forum Moderator


Joined: 2011 Apr 13
Location: Spain
Online Status: Offline
Posts: 1143
Direct Link To This Post Topic: AddCheckBox default parameters
    Posted: 2017 Dec 05 at 3:33am
Hi,

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



MAXON
Developer Support
Back to Top
gr4ph0s View Drop Down
Member
Member


Joined: 2015 Jul 07
Location: France
Online Status: Offline
Posts: 437
Direct Link To This Post Posted: 2017 Dec 04 at 3:18am

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"
Technical lover.
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.