2

I am trying to separate two sets of button tools in a python add-in toolbar. I am trying to make a toolbar like existing arcmap toolbar where different classes of tools separated by "|".

Can this be done in python add in toolbar?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Sep 4, 2015 at 18:46

1 Answer 1

6

You will need to edit your config.xml and add:

separator="true"

to the button that you want the separator to appear before, like I have done near the end of the line of code below:

<Toolbar caption="RJSS Toolbar" category="RJSS Addin" id="RJSS.toolbar" showInitially="true"><Items><Button refID="RJSS.button1" /><Button refID="RJSS.button2" separator="true"/></Items></Toolbar>
answered Sep 4, 2015 at 19:47
1
  • I tried the separator property. But after installation it is not showing up in the toolbar. My edits of the config.xml is below: <Toolbars> <Toolbar caption="Fishnet Analysis Tool" category="CrashAnalysisToolbar" id="CrashToolBox_addin.toolbar" showInitially="true"><Items><Button refID="CrashToolBox_addin.button" /><Button refID="CrashToolBox_addin.button_1" /><Button refID="CrashToolBox_addin.button_5" separator="true"/><Button refID="CrashToolBox_addin.button_6" /></Items></Toolbar> </Toolbars> <Menus> </Menus> </ArcMap></AddIn></ESRI.Configuration> Commented Sep 10, 2015 at 16:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.