<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Message: 3<br>
Date: Thu, 16 Apr 2015 15:26:06 +0000<br>
From: John Barnes <<a href="mailto:John.Barnes@ci.mcminnville.or.us">John.Barnes@ci.mcminnville.or.us</a>><br>
To: "<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>" <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>
Subject: [Qgis-user] Custom toolbars and custom tools<br>
Message-ID: <B0CAF2A7A9F5E94DBF56876CC499BF5501BB3B80A5@xch2010><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
QGIS 2.8.1<br>
Windows 7 64bit<br>
MS Office 2007 32bit<br>
.NET Framework 4.5.2<br>
Scrip Runner Version 2.0.1<br>
Installed via standalone installer<br>
<br>
I have only been using qgis for a couple of weeks and I am enjoying it very much.<br>
<br>
My background is ESRI for the last 19 years.  Mostly customization from VBA to <a href="http://vb.net" target="_blank">vb.net</a> addins with ArcGIS Desktop and Visual Studio.<br>
<br>
With the esri products it is very easy to create custom toolbars and add command buttons and tools created from .net addins.  Is there anything similar within qgis that would allow me to easily create a custom toolbar and add tools and buttons with a python script associated to them?  I'm new to python but it is going very well so far.<br>
<br>
My goal here with qgis is to get away from esri and be able to greatly expand my user base with qgis.<br>
<br>
Thank you everyone.  This listserve has been a huge help to me.<br>
<br>
John Barnes<br>
<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello John,</blockquote><div> </div><div>You will need to create python plugin. Try plugin Builder or follow other tutorial for basic set up.Now in you plugin you can create you own tool bar.</div><div><br></div><div> QtoolBar and add this toolBar to Qgis.</div><div><br></div><div>Take a look at this <a href="http://qgis.org/api/classQgisInterface.html">http://qgis.org/api/classQgisInterface.html</a></div><div><br></div><div>specificallyt addToolBar(NameOfToolBar)</div><div><br></div><div>toolBar.addAction(action)</div><div><br></div><div>you can add various action to toolbar and you you want to run whatever functionality you want  you can also customize with different icon. </div><div><br></div><div>Thanks,</div><div>Nikhil Murarka </div><div> </div></div></div></div>