def clear_callback(self, sender):
     font = CurrentFont()
     if font is not None:
         delete_groups(font)
     # no font open
     else:
         print no_font_open
 def clear_callback(self, sender):
     ufo = CurrentFont()
     delete_groups(ufo)