From a308a5425f6f7bed7fc15ba43d9bf3f1894083fa Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 27 Jul 2013 22:38:22 +0000 Subject: remove extra stuff --- (limited to 'pysamples/push_time.py') diff --git a/pysamples/push_time.py b/pysamples/push_time.py deleted file mode 100644 index 5f86be4..0000000 --- a/pysamples/push_time.py +++ /dev/null @@ -1,21 +0,0 @@ -#Copyright (c) 2009-11, Walter Bender - -# This procedure is invoked when the user-definable block on the -# "extras" palette is selected. - -# Usage: Import this code into a Python (user-definable) block; when -# this code is run, the current hour, minute, and second are pushed to -# the FILO heap. To use these values, pop second, then minute, then -# hour from the FILO. - - -def myblock(tw, x): # ignore second argument - ''' Push hours, minutes, seconds onto the FILO. ''' - - # Use three 'pop' blocks to retrieve these values. - # Note: because we use a FILO (first in, last out heap), - # the first value you pop off of the FILO will be seconds. - - tw.lc.heap.append(localtime().tm_hour) - tw.lc.heap.append(localtime().tm_min) - tw.lc.heap.append(localtime().tm_sec) -- cgit v0.9.1