[Joypy-announce] joypy/Joypy: Log reset is less wordy.

Back to archive index
scmno****@osdn***** scmno****@osdn*****
Mon May 18 04:58:46 JST 2020


changeset 79b07bb1d70c in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=79b07bb1d70c
user: Simon Forman <sform****@hushm*****>
date: Sun May 17 12:58:26 2020 -0700
description: Log reset is less wordy.

diffstat:

 joy/gui/main.py |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r 28c06d12caa3 -r 79b07bb1d70c joy/gui/main.py
--- a/joy/gui/main.py	Sun May 17 11:51:59 2020 -0700
+++ b/joy/gui/main.py	Sun May 17 12:58:26 2020 -0700
@@ -20,12 +20,14 @@
 from future import standard_library
 standard_library.install_aliases()
 import logging, os, pickle, sys
+from datetime import datetime
 from textwrap import dedent
 from configparser import RawConfigParser
 
 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)
 
 
@@ -112,6 +114,11 @@
 
 	def reset_log(*args):
 		log.delete('0.0', tk.END)
+		print(datetime.now().strftime(DATETIME_FORMAT))
+		return args
+
+
+	def Thun(*args):
 		print(__doc__)
 		return args
 


More information about the Joypy-announce mailing list
Back to archive index