Python GUI app to control X6100 Armbian
[Main.py] import sys from PyQt5.QtWidgets import QDialog, QApplication from FirstApp import * import Hamlib import time cur_mode="CW" #print("Hamlib") Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE) my_rig = Hamlib.Rig(Hamlib.RIG_MODEL_NETRIGCTL) #my_rig.set_conf("rig_patname","192.168.1.248:4532") #print("here") my_rig.set_conf("rig_pathname","127.0.0.1:4532") my_rig.set_conf("retry","5") my_rig.open() #print("hamib open") cur_freq = my_rig.get_freq() #print("Current freq",cur_freq) (mode, width) = my_rig.get_mode() if mode==1: cur_mode="AM" elif mode==32: cur_mode="NFM" elif mode==2: cur_mode="CW" elif mode==128: cur_mode="CWR" elif mode==8: cur_mode="LSB" elif mode==4: cur_mode="USB" #print(cur_mode) #print(cur_freq,mode) #my_rig.set_freq(Hamlib.RIG_VFO_A, 28000000) #time.sleep(5) set_mode=...