Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/h/phaseshifts-0.1.2-dev/phaseshifts/gui/elements_gui.py   phaseshifts(Download)
from wx.lib import fancytext, buttons, rcsizer
 
from phaseshifts.elements import ELEMENTS, SERIES
 
 
    def OnCopy(self, evt):
        dobj = wx.TextDataObject()
        dobj.SetText(repr(ELEMENTS[self.selected + 1]))
        if wx.TheClipboard.Open():
            wx.TheClipboard.SetData(dobj)
        cols = len(self.layout.splitlines()[1].split())
        self.sizer = wx.FlexGridSizer(rows, cols, 0, 0)
        self.buttons = list(range(0, len(ELEMENTS)))
        self.selected = -1
 
                         wx.ALIGN_CENTER_VERTICAL|wx.FIXED_MINSIZE), SPACER//2)
                else:
                    ele = ELEMENTS[col]
                    button = ElementButton(self, ele.number+100, ele.symbol,
                                           size=(buttonsize, buttonsize))
        self.selected = select
        self.buttons[select].SetToggle(True)
        ele = ELEMENTS[select + 1]
        col = COLORS[ele.series]
        self.legend.SetBackgroundColour(wx.Colour(col[0], col[1], col[2]))