Пример #1
0
def fft_menu(refresh = False):
	global mn

	b = []
	b += [ {"text":"Cancelation", "value":1 }]
	b += [ {"text":"Fill", "value":2 }]
	b += [ {"text":"Peak", "value":3 }]
	b += [ {"text":"Decay", "value":4 }]
	b += [ {"text":"Detect", "value":5}]
	b += [ {"text":"AutoZOOM", "value":6 }]
	b += [ {"text":"Intra SCAN","value":7}]

	for i in b:
		i["type"]	= "Switch"
		i["text2"]	= "OFF"
	if linecancel_enable: 	b[0]["text2"] = "ON"
	if fftfill_enable: 		b[1]["text2"] = "ON"
	if maxpts_enable: 		b[2]["text2"] = "ON"
	if maxdecay_enable: 	b[3]["text2"] = "ON"
	if detect_enable: 		b[4]["text2"] = "ON"
	if azoom_enable: 		b[5]["text2"] = "ON"
	if intrascan_enable:	b[6]["text2"] = "ON"
	b += [ {"text":"Back", "value":0}]

	mn = butonify.menu()
	mn.width 	= 200
	mn.cx 		= pg.mouse.get_pos()[0]
	mn.cy 		= TOPALTO+250
	if refresh: mn.frame = 48 # no scroll
	if mn.cx + mn.width > FFTANCHO: mn.cx = FFTANCHO - mn.width
	mn.init(sf,b,(0,0,0),"FFT Menu")
Пример #2
0
def main_menu():
	global mn
	global tupper,tdown

	b = [ 	{"type":"Switch","text":"Upper window","text2":tupper,"value":1},
			{"type":"Switch","text":"Lower window","text2":tdown,"value":2},
			{"text":"Frontend config","value":3},
			{"text":"Back","value":4}
	]
	mn = butonify.menu()
	mn.width = 300
	mn.cx = FFTANCHO - 150
	mn.header = "Main"
	if mn.cx + mn.width > FFTANCHO: mn.cx = FFTANCHO - mn.width
	mn.init(sf,b,(0,0,0),"Menu")
Пример #3
0
def waterfall_menu(refresh=False):
	global mn

	b = []
	b += [ {"text":"Autorange", "value":1 }]
	for i in b:
		i["type"]	= "Switch"
		i["text2"]	= "OFF"
	if autorange_enable: 	b[0]["text2"] = "ON"
	b += [ {"text":"Back", "value":0}]

	mn = butonify.menu()
	mn.width 	= 200
	mn.cx 		= pg.mouse.get_pos()[0]
	mn.cy 		= 150
	if refresh: mn.frame = 48 # no scroll
	mn.init(sf,b,(0,0,0),"WF Menu")
Пример #4
0
def demod_menu():
	global mn,tmode
	global rec

	bus = []
	bus += [ {"type":"Switch","text":"Mode","text2":tmode,"value":1}]
	bus += [ {"type":"Switch","text":"AutoSINT","text2":tmode,"value":2}]
	bus += [ {"type":"Switch","text":"Rec","value":3} ]
	if autosint_enable:	bus[1]["text2"]="ON"
	else:				bus[1]["text2"]="OFF"
	if rec:	bus[2]["text2"]="ON"
	else:	bus[2]["text2"]="OFF"
	bus += [{"text":"Back","value":0}]

	mn = butonify.menu()
	mn.cx = xdev
	mn.cy = 250
	mn.width = 200
	mn.init(sf,bus,(0,0,0),"Demodulator")
Пример #5
0
def demod_mode():
	global mn,opt,xdev
	global tmode

	b = [ 	{"text":"AUTO","value":10},
			{"text":"AM","value":0},
			{"text":"FM N","value":1},
			{"text":"USB","value":2},
			{"text":"LSB","value":3},
			{"text":"FM W","value":4},
			{"text":"FM ST","value":5}
	]
	for t in b:	
		if tmode == t["text"]: t["hight"] = True

	mn = butonify.menu()
	mn.width = 150
	mn.cx = xdev
	mn.cy = 300
	mn.init(sf,b,(0,0,0),"Demod mode")