display name when hover over plugin icon in qgis












2















I have made a QGIS plugin (python) and when i hover my mouse/cursor over the icon in qgis the name of the plugin seem to be "Plugins Toolbar". I have searched all .py scripts in the directory of the plugin and can't find any reference to "Plugins Toolbar".



How do i change the name of this "icon text"?



See picture










share|improve this question







New contributor




SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    I have made a QGIS plugin (python) and when i hover my mouse/cursor over the icon in qgis the name of the plugin seem to be "Plugins Toolbar". I have searched all .py scripts in the directory of the plugin and can't find any reference to "Plugins Toolbar".



    How do i change the name of this "icon text"?



    See picture










    share|improve this question







    New contributor




    SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      2












      2








      2








      I have made a QGIS plugin (python) and when i hover my mouse/cursor over the icon in qgis the name of the plugin seem to be "Plugins Toolbar". I have searched all .py scripts in the directory of the plugin and can't find any reference to "Plugins Toolbar".



      How do i change the name of this "icon text"?



      See picture










      share|improve this question







      New contributor




      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have made a QGIS plugin (python) and when i hover my mouse/cursor over the icon in qgis the name of the plugin seem to be "Plugins Toolbar". I have searched all .py scripts in the directory of the plugin and can't find any reference to "Plugins Toolbar".



      How do i change the name of this "icon text"?



      See picture







      qgis python qgis-plugins






      share|improve this question







      New contributor




      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 55 mins ago









      SunTourSunTour

      263




      263




      New contributor




      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      SunTour is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          2














          In your plugin.py file (or whatever you named the main file), look inside the initGui() function. You'll want to change the text parameter for the icon::



          def initGui(self):
          """Create the menu entries and toolbar icons inside the QGIS GUI."""

          icon_path = ':/plugins/example/icon.png'
          self.add_action(
          icon_path,
          text=self.tr(u'Plugin_button'),
          callback=self.run,
          parent=self.iface.mainWindow())





          share|improve this answer



















          • 1





            You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

            – ahmadhanb
            26 mins ago






          • 1





            @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

            – Joseph
            22 mins ago






          • 1





            works perfect. Thanks!

            – SunTour
            14 mins ago











          • @SunTour Please accept the answer if it solved your problem.

            – ahmadhanb
            7 mins ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          SunTour is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f309868%2fdisplay-name-when-hover-over-plugin-icon-in-qgis%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          In your plugin.py file (or whatever you named the main file), look inside the initGui() function. You'll want to change the text parameter for the icon::



          def initGui(self):
          """Create the menu entries and toolbar icons inside the QGIS GUI."""

          icon_path = ':/plugins/example/icon.png'
          self.add_action(
          icon_path,
          text=self.tr(u'Plugin_button'),
          callback=self.run,
          parent=self.iface.mainWindow())





          share|improve this answer



















          • 1





            You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

            – ahmadhanb
            26 mins ago






          • 1





            @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

            – Joseph
            22 mins ago






          • 1





            works perfect. Thanks!

            – SunTour
            14 mins ago











          • @SunTour Please accept the answer if it solved your problem.

            – ahmadhanb
            7 mins ago
















          2














          In your plugin.py file (or whatever you named the main file), look inside the initGui() function. You'll want to change the text parameter for the icon::



          def initGui(self):
          """Create the menu entries and toolbar icons inside the QGIS GUI."""

          icon_path = ':/plugins/example/icon.png'
          self.add_action(
          icon_path,
          text=self.tr(u'Plugin_button'),
          callback=self.run,
          parent=self.iface.mainWindow())





          share|improve this answer



















          • 1





            You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

            – ahmadhanb
            26 mins ago






          • 1





            @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

            – Joseph
            22 mins ago






          • 1





            works perfect. Thanks!

            – SunTour
            14 mins ago











          • @SunTour Please accept the answer if it solved your problem.

            – ahmadhanb
            7 mins ago














          2












          2








          2







          In your plugin.py file (or whatever you named the main file), look inside the initGui() function. You'll want to change the text parameter for the icon::



          def initGui(self):
          """Create the menu entries and toolbar icons inside the QGIS GUI."""

          icon_path = ':/plugins/example/icon.png'
          self.add_action(
          icon_path,
          text=self.tr(u'Plugin_button'),
          callback=self.run,
          parent=self.iface.mainWindow())





          share|improve this answer













          In your plugin.py file (or whatever you named the main file), look inside the initGui() function. You'll want to change the text parameter for the icon::



          def initGui(self):
          """Create the menu entries and toolbar icons inside the QGIS GUI."""

          icon_path = ':/plugins/example/icon.png'
          self.add_action(
          icon_path,
          text=self.tr(u'Plugin_button'),
          callback=self.run,
          parent=self.iface.mainWindow())






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 31 mins ago









          JosephJoseph

          56.7k798193




          56.7k798193








          • 1





            You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

            – ahmadhanb
            26 mins ago






          • 1





            @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

            – Joseph
            22 mins ago






          • 1





            works perfect. Thanks!

            – SunTour
            14 mins ago











          • @SunTour Please accept the answer if it solved your problem.

            – ahmadhanb
            7 mins ago














          • 1





            You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

            – ahmadhanb
            26 mins ago






          • 1





            @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

            – Joseph
            22 mins ago






          • 1





            works perfect. Thanks!

            – SunTour
            14 mins ago











          • @SunTour Please accept the answer if it solved your problem.

            – ahmadhanb
            7 mins ago








          1




          1





          You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

          – ahmadhanb
          26 mins ago





          You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using the Plugin Reloader to see the changes.

          – ahmadhanb
          26 mins ago




          1




          1





          @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

          – Joseph
          22 mins ago





          @ahmadhanb - I had my coffee :). Thank you for your tip, the plugin should indeed be reloaded such as with the Plugin Reloader... plugin.

          – Joseph
          22 mins ago




          1




          1





          works perfect. Thanks!

          – SunTour
          14 mins ago





          works perfect. Thanks!

          – SunTour
          14 mins ago













          @SunTour Please accept the answer if it solved your problem.

          – ahmadhanb
          7 mins ago





          @SunTour Please accept the answer if it solved your problem.

          – ahmadhanb
          7 mins ago










          SunTour is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          SunTour is a new contributor. Be nice, and check out our Code of Conduct.













          SunTour is a new contributor. Be nice, and check out our Code of Conduct.












          SunTour is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f309868%2fdisplay-name-when-hover-over-plugin-icon-in-qgis%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Callistus I

          Tabula Rosettana

          How to label and detect the document text images