mirror of
https://gitee.com/dimsmary/OpenSTM.git
synced 2026-11-18 16:10:57 +08:00
12 lines
268 B
Python
12 lines
268 B
Python
import time
|
|
|
|
|
|
class DebugGeneratorHandle:
|
|
def __init__(self, ui):
|
|
self.ui = ui
|
|
|
|
def print(self, label, message):
|
|
msg = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()) + ' ' + label + ': ' + message
|
|
self.ui.textBrowser.append(msg)
|
|
|