Changeset 5463


Ignore:
Timestamp:
Jan 3, 2023 12:22:51 PM (11 months ago)
Author:
toby
Message:

spacing on plot toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r5462 r5463  
    717717        self.DeleteToolByPos(POS_CONFIG_SPLTS_BTN)
    718718        self.parent = self.GetParent()
     719        spacers = 4
     720        if wx.__version__.startswith('4.2'):
     721            spacers = 3
     722            self.SetToolBitmapSize(wx.Size(28, 20)) # seems needed in wx4.2, packs icons closer
     723        for i in range(spacers): # leave some space for MPL text
     724            self.AddSeparator()
    719725        self.AddToolBarTool('Key press','Select key press','key.ico',self.OnKey)
    720726        self.AddToolBarTool('Help on','Show help on this plot','help.ico',self.OnHelp)
     
    732738        if publish:
    733739            self.AddToolBarTool('Publish plot','Create publishable version of plot','publish.ico',publish)
     740        self.Realize()
    734741           
    735742    def AddToolBarTool(self,label,title,filename,callback):
Note: See TracChangeset for help on using the changeset viewer.