Did I find the right examples for you? yes no

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

src/c/h/chirp-1.2.2/chirp/gui/chirpgui.py   chirp(Download)
    def on_save(self, event):
        """ save elements to a file """
        # all of the patches are going to have 2D vertices
        el = wxgeom.patches_to_elist(self.spec.selections)
        if el:
        if len(elems) < 1: elems = self.spec.selections
        if len(elems) < 1: elems = None
        else: elems = wxgeom.patches_to_elist(elems)
        try:
            self.status.SetStatusText("Calculating pitch...")