How to delete a button in pyqt5 application
-
Hello, in this code: https://github.com/Axel-Erfurt/OrthoViewLite/blob/main/OrthoViewLite.py I cannot find where can I delete the store button ("diskette icon") on the upper left side...
-
Hi,
Since there's nothing in that code that seems related to the button you described, you should explore the rest of the framework you are using.
-
The same happens If I need to change the appearance of the already installed buttons and put mine, with small image icons etc?
-
The same what ?
-
I need to change the icons of the buttons on the upper left area and put my own image icons. How can I achieve that?
-
I need to change the icons of the buttons on the upper left area and put my own image icons. How can I achieve that?
@john_hobbyist
Did you try searching the source file you have foricon? -
@john_hobbyist
Did you try searching the source file you have foricon?@JonB Yes, but there are nowhere in the code the upper left area buttons...
-
@JonB Yes, but there are nowhere in the code the upper left area buttons...
@john_hobbyist
For me at least, perhaps show a screen shot of what you mean? -
@john_hobbyist
For me at least, perhaps show a screen shot of what you mean?@JonB Yes, I want to change these with my own buttons (image icons)...!

-
@JonB Yes, I want to change these with my own buttons (image icons)...!

@john_hobbyist
I don't see anything for this (the icons) in the.pysource file. At a guess: you haveimport matplotlib.backends.backend_qt5agg as mpl_qt ... class MyToolBar(mpl_qt.NavigationToolbar2QT):So is that some "matplot/Qt navigation toolbar"? Go look there.
-
I am studying stackoverflow and various google search results but I am lost...
-
You should rather study matplotlib since you are using it.
-
@SGaist I have read this: https://matplotlib.org/3.2.2/users/navigation_toolbar.html I cannot figure out something. Also, how do I move them to right side all the buttons?