Put lattice deform operation in a custom menu
To pass arguments to operators via the layout.

op = layout.operator("object.parent_set")
op.type = 'LATTICE'


can also use

layout.operator("blah.blah").prop = value


I prefer the former stylewise.