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

AddCheckBox default parameters

 Post Reply Post Reply
Message Reverse Sort Order
Yannick Puech View Drop Down
Forum Moderator
Forum Moderator

Joined: 2011 Apr 13
Location: Spain
Online Status: Offline
Posts: 1140
Post Options Post Options   Quote Yannick Puech Quote  Post ReplyReply Direct Link To This Post Topic: AddCheckBox default parameters
    Posted: 2017 Dec 05 at 3:33am

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

Developer Support
Back to Top
gr4ph0s View Drop Down

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

User Information:

Cinema 4D Version:    
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__':

return "TypeError: Required argument 'initw' (pos 3) not found"
Technical lover.
Back to Top
 Post Reply Post Reply

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.