Log reset is less wordy.
This commit is contained in:
parent
40f8e4505d
commit
98a3da138e
|
|
@ -20,12 +20,14 @@ from __future__ import print_function
|
||||||
from future import standard_library
|
from future import standard_library
|
||||||
standard_library.install_aliases()
|
standard_library.install_aliases()
|
||||||
import logging, os, pickle, sys
|
import logging, os, pickle, sys
|
||||||
|
from datetime import datetime
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
from configparser import RawConfigParser
|
from configparser import RawConfigParser
|
||||||
|
|
||||||
from joy.gui.utils import init_home, argparser, FileFaker
|
from joy.gui.utils import init_home, argparser, FileFaker
|
||||||
|
|
||||||
|
|
||||||
|
DATETIME_FORMAT = "Thun • %B %d %a • %I:%M %p"
|
||||||
VIEWER_DEFAULTS = dict(width=80, height=25)
|
VIEWER_DEFAULTS = dict(width=80, height=25)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -112,6 +114,11 @@ def commands():
|
||||||
|
|
||||||
def reset_log(*args):
|
def reset_log(*args):
|
||||||
log.delete('0.0', tk.END)
|
log.delete('0.0', tk.END)
|
||||||
|
print(datetime.now().strftime(DATETIME_FORMAT))
|
||||||
|
return args
|
||||||
|
|
||||||
|
|
||||||
|
def Thun(*args):
|
||||||
print(__doc__)
|
print(__doc__)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue