Exemple #1
0
 def run(self):
     try:
         self.createTopWindow()
         spawn(self.mainloop).join()
     except KeyboardInterrupt:
         info('\r', end='')  # clearing CTRL+R character
     finally:
         info(' === Program ended ===')
Exemple #2
0
 def print_info(self):
     self.print_("Press CTRL+C to quit.")
     info(' === Program start ===')