Thursday, February 08, 2007

Stupid PyPop tricks

I've been playing with timers in PyPop (the current version has them enabled) because I had originally thought I'd do the directory monitor with a timer. Here's a neat little application for PyPop:

<ui>
<frame id="main" title="File monitor" h="100" w="200">
<html field="html">Nothing to see here, move along</html>
<timer field="timer" interval="1000" cmd="tick">
</frame>

<action id="initialize" lang="command" parms="">
set state tick
</action>

<action id="tick" lang="python" parms="">
state = [context]['state']
if state == 'tick':
: set state tock
: hide
else:
: set state tick
: show
</action>
</ui>
All it does is to show the frame and set up a timer that calls a "tick" command. The "tick" hides the frame if the state is "tick", and shows it if the state is "tock". End of story. The frame appears and disappears every second. When you've had enough, click on the close button quickly before it disappears. Ha.

Try it! Remember: PyPop installer here at SourceForge.

Tuesday, February 06, 2007

Forum despamming

Well, it's not an official app, but I spent a little time correlating forum posts with my access logs over at my own site, and came up with a nifty little script which is doing pretty well despamming my own very low-traffic forum at Toonbots.

Now if I could just get admin access to the Software Jedi's forum... Dana Hanna, Dana Hanna. Would Mr. Hanna please come to the courtesy phone?

Friday, February 02, 2007

Stick a fork in it, PyPop is done

Well, v0.1 isn't done, really, but then is software ever done?

PyPop is a Python-based GUI interpreter capable of flexibly implementing an application represented as an XML file containing a description of:
  • Frames and dialogs used in the application
  • The command-line arguments, if any
  • The data file read/written by the app, if any
  • The commands behind all button (and other) actions in the application
The commands are written in Python with some syntactic sugar to save typing.

You can get PyPop v0.1 from its SourceForge download page. Because I like you so much, I took the trouble of building an NSIS installer for it -- so there's nearly no work for you, just click it and install.

Once it's installed, get the filetagger app definition and try it out. There is a "Help|Registry associations" menu item in the filetagger now which will register .ftg for use as a filetagger database file extension. It's crude but it works. Now if I had some more time, I'd go ahead and write code for a real installer, with a SendTo link and all. That will have to wait for another day.

A day after I finish v1.0 of the filemonitor application Cabin Tom's patiently waiting for. Busy busy busy!

Oh, a side note: Dana is still alive, or was a couple of days ago when last I heard from him. Just really distracted. And lame! Don't forget lame.