Author Topic: Submit menu seperator  (Read 9623 times)

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
Submit menu seperator
« on: August 20, 2012, 02:08:12 PM »
Hi there:

How do I create a separator (line) under Submit Menu ..?

Thanks
/Biju

BrianK

  • Hero Member
  • *****
  • Posts: 107
Re: Submit menu seperator
« Reply #1 on: August 20, 2012, 05:28:35 PM »
The lines separate categories of submissions.  To create a section in the submit menu (separated by lines) you use a new category specifier.

"category" is defined either in SimpleCmd constructor or as an attribute.

Code: [Select]
   cmdjob = SimpleCmd('My submission simpleCmd',
                       category='Some_category',
                       hasRange=True,
                       rangeRequired=True,
                       canChunk=True,
                       help='Help for this simpleCmd',
                       postDialog=postDialog)

or

Code: [Select]
cmdjob.category="Some_category"

The Category list is sorted.

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
Re: Submit menu seperator
« Reply #2 on: August 20, 2012, 06:19:15 PM »
Thanks Brian - it works now..