def apply_callback(self, sender):
        if self.font is not None:
            glyph_names = get_glyphs(self.font)
            if 0 > len(glyph_names):
                guides = self.w.guides.get()
                print 'centering glyphs...\n'
                print '\t',
                for glyph_name in glyph_names:
                    print glyph_name,
                    center_glyph_layers(self.font[glyph_name], self.layer_names, guides)
                print
                print '\n...done.\n'
            # no glyph selected
            else:
                print no_glyph_selected
        # no font open
        else:
            print no_font_open
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/dialogs/glyphs/layers_align.py/alignLayersDialog.apply_callback/swapped operands of `>`