James Ahlstrom's pcr1000 control warez. http://james.ahlstrom.name/pcr1000/index.html
fucking whitespace
reflow, reformat, tabify, whitespace.

Argh.   Seriously. Don't fear the 81st column.  It's 2011. Get a bigger window.
One Tab, One Indent Level. That Is My Law. PEP-8 be damned.
Use vertical whitespace, for the love of all things readable.
Hell is other people's code.
linefeeds annoy unix git. I don't care about windows machines. not even a little.
rename for unix
stub for memscan button

The intent here is to make it behave like a programmable scanner, rapidly scanning pre-programmed frequencies.
first stab at trying to implement a memscan function
for testing memscan, these are some interesting local channels.
...o
make the NextFrequency() up/down button ROTATE instead of hitting an end and stopping
wait for squelch to close.. give it a bit in case it comes back before switching.

some printf debugging. ygh. probably gonna need pdb here in a minute.
yeah, use python syntax
uhm. I'm pretty close to deciding that this implementation of NextStation is dumb.

confining ourself to bands?  COME ON. Bands?  BANDS?  *sigh*
further understanding this NextStation() func
what on earth are you up to, john?   (removed band limits)

while 1:
	stuff
	return

?

Your coding style is odd enough that i'm going to give you the benefit of the doubt for a few more minutes..
throw away all of john's NextStation(). use bisect. wrap. get over it.
NextStation(), get rid of lst and value local vars in favor of self references
basically a finite state machine for getting in and out of squelch in memscan

(what i really want is a callback from squelch... but this might do.)
sleep for 3 seconds when we've hit an open channel, in case it comes back

...i am creating a bug right here...  what's going to happen is that a shorter than 3 second
transmission will happen during this hold timer, and we'll switch away instead of having the squelch
opening event reset our timer.
remove debug messages