GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Navigation toolbar icons not loading with Qt4 backend and py2exe · Issue #142 · matplotlib/matplotlib

Navigation toolbar icons not loading with Qt4 backend and py2exe #142

New issue
Copy link
New issue
Copy link
Closed
Closed
Navigation toolbar icons not loading with Qt4 backend and py2exe#142
Copy link

Description

@ruidc
ruidc
opened on Jun 14, 2011
Issue body actions

thread at http://www.mail-archive.com/[email protected]/msg20088.html or http://sourceforge.net/mailarchive/forum.php?thread_name=4D4EA423.5090802%40vanderHoeven.biz&forum_name=matplotlib-users

basically, use png files for all icon files in backend_qt4.py instead of svg to circumvent dependency

Activity

  1. ruidc commented on Jun 14, 2011

    @ruidc
    ruidc
    on Jun 14, 2011
    Author
    More actions

    ie.:
    @@ -420,32 +420,32 @@ class NavigationToolbar2QT( NavigationToolbar2, QtGui.QToolBar ):
    return QtGui.QIcon(os.path.join(self.basedir, name))

     def _init_toolbar(self):
         self.basedir = os.path.join(matplotlib.rcParams[ 'datapath' ],'images')
    
    •    a = self.addAction(self._icon('home.svg'), 'Home', self.home)
      
    •    a = self.addAction(self._icon('home.png'), 'Home', self.home)
       a.setToolTip('Reset original view')
      
    •    a = self.addAction(self._icon('back.svg'), 'Back', self.back)
      
    •    a = self.addAction(self._icon('back.png'), 'Back', self.back)
       a.setToolTip('Back to previous view')
      
    •    a = self.addAction(self._icon('forward.svg'), 'Forward', self.forward)
      
    •    a = self.addAction(self._icon('forward.png'), 'Forward', self.forward)
       a.setToolTip('Forward to next view')
       self.addSeparator()
      
    •    a = self.addAction(self._icon('move.svg'), 'Pan', self.pan)
      
    •    a = self.addAction(self._icon('move.png'), 'Pan', self.pan)
       a.setToolTip('Pan axes with left mouse, zoom with right')
      
    •    a = self.addAction(self._icon('zoom_to_rect.svg'), 'Zoom', self.zoom)
      
    •    a = self.addAction(self._icon('zoom_to_rect.png'), 'Zoom', self.zoom)
       a.setToolTip('Zoom to rectangle')
       self.addSeparator()
       a = self.addAction(self._icon('subplots.png'), 'Subplots',
               self.configure_subplots)
       a.setToolTip('Configure subplots')
      
       if figureoptions is not None:
      
    •        a = self.addAction(self._icon("qt4_editor_options.svg"),
      
    •        a = self.addAction(self._icon("qt4_editor_options.png"),
                              'Customize', self.edit_parameters)
           a.setToolTip('Edit curves line and axes parameters')
      
    •    a = self.addAction(self._icon('filesave.svg'), 'Save',
      
    •    a = self.addAction(self._icon('filesave.png'), 'Save',
               self.save_figure)
       a.setToolTip('Save the figure')
      
      
       self.buttons = {}
      
  2. ruidc commented on Jun 14, 2011

    @ruidc
    ruidc
    on Jun 14, 2011
    Author
    More actions

    oops, superceded by #143 that has pull request (sry did not know this was the behaviour)

  3. ruidc
    closed this as completedon Jun 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.