display name when hover over plugin icon in qgis
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"?

qgis python qgis-plugins
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.
add a comment |
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"?

qgis python qgis-plugins
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.
add a comment |
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"?

qgis python qgis-plugins
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"?

qgis python qgis-plugins
qgis python qgis-plugins
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.
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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())
1
You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using thePlugin Reloaderto 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 thePlugin 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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())
1
You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using thePlugin Reloaderto 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 thePlugin 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
add a comment |
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())
1
You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using thePlugin Reloaderto 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 thePlugin 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
add a comment |
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())
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())
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 thePlugin Reloaderto 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 thePlugin 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
add a comment |
1
You are quick, I was writing the same answer :). Just I want to add that the OP should reload the plugin using thePlugin Reloaderto 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 thePlugin 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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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