Inkscape.org
Creating New Extensions Boolean arguments in 1.0 beta
  1. #1
    ukezi ukezi @ukezi

    I run the Linux appimage version of 1.0 beta2.

    If I replace inkbool like the Wiki page tells me with to inkex.inkbool I get an error message:

    self.arg_parser.add_argument('--d_top',type=inkex.inkbool, dest='d_top', default=False)
    AttributeError: 'module' object has no attribute 'inkbool'

    if I instead use bool as a type it doesn't throw an exception but it always evaluates them to True.

    What am I supposed to do?

  2. #2
    Martin Owens Martin Owens @doctormo🌹🧀
    *

    It's inkex.Boolean not inkex.inkbool.

    I've fixed the wiki page.